5.02021-11-21T21:50:55ZNetwork ApplianceTemplatesSNMP OfficeConnect 19XXSNMP OfficeConnect 19XX## Overview
SNMPV2
Works on Office Connect Switches
1910
1920
1950
Low Level Discovery for:
* CPU
* Fan Status
* Interfaces (Ports) - includes Rx/Tx/Errors/Status
* Mac Address
* Memory Stats
* PSU
* Tempature Sensors
* Entity - includes Serial Number, Model Name, Firmware, Hardware revision, OS
## Author
Union College
Network ApplianceTemplatesBytes RxBytes TxCRC Errors RxCRC Errors TxFansGeneralPort StatusPower SupplyTemperature- UptimeSNMP_AGENT1.3.6.1.2.1.1.3.0Uptime607d90dsGeneralMULTIPLIER0.01{last(0)}<600{HOST.NAME} has just been restartedAVERAGE
CPUSNMP_AGENTdiscovery[{#SNMPVALUE},1.3.6.1.4.1.25506.2.6.1.1.1.1.6]cpu.discovery3600{#SNMPVALUE}[^0]A7dCPU Percent UtilizationSNMP_AGENT1.3.6.1.4.1.25506.2.6.1.1.1.1.6.{#SNMPINDEX}cpu[{#SNMPINDEX}]307d90dGeneral{last()}>85CPU too highHIGHEntity DiscoverySNMP_AGENTdiscovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7]entity.discovery3600{#ENT_CLASS}3AFirmware versionSNMP_AGENT1.3.6.1.2.1.47.1.1.1.1.9.{#SNMPINDEX}system.hw.firmware[entPhysicalFirmwareRev.{#SNMPINDEX}]36000TEXTGeneralHardware model nameSNMP_AGENT1.3.6.1.2.1.47.1.1.1.1.2.{#SNMPINDEX}system.hw.model[entPhysicalDescr.{#SNMPINDEX}]36000TEXTGeneralHardware serial numberSNMP_AGENT1.3.6.1.2.1.47.1.1.1.1.11.{#SNMPINDEX}system.hw.serialnumber[entPhysicalSerialNum.{#SNMPINDEX}]36000TEXTGeneralHardware version(revision)SNMP_AGENT1.3.6.1.2.1.47.1.1.1.1.8.{#SNMPINDEX}system.hw.version[entPhysicalHardwareRev.{#SNMPINDEX}]36000TEXTGeneralOperating systemSNMP_AGENT1.3.6.1.2.1.47.1.1.1.1.10.{#SNMPINDEX}system.sw.os[entPhysicalSoftwareRev.{#SNMPINDEX}]36000TEXTGeneralFan DiscoverySNMP_AGENTdiscovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7,{#ENT_DESCR},1.3.6.1.2.1.47.1.1.1.1.2]fan.discovery3600{#ENT_CLASS}7A7dDiscovering all entities of PhysicalClass - 7: fan(7){#ENT_NAME}: Fan statusSNMP_AGENT1.3.6.1.4.1.25506.2.6.1.1.1.1.19.{#SNMPINDEX}sensor.fan.status[hh3cEntityExtErrorStatus.{#SNMPINDEX}]607d90dMIB: HH3C-ENTITY-EXT-MIB
Indicate the error state of this entity object.
fanError(41) means that the fan stops working.Fans{count(#1,41)}=1 or
{count(#1,91)}=1{#ENT_NAME}: Fan is in critical stateHIGH41 = Fan Error
91 = Hardware FaultyInterfacesSNMP_AGENTdiscovery[{#SNMPVALUE},IF-MIB::ifDescr]interfaces.discovery3600DISABLED{#SNMPVALUE}TenA{#SNMPVALUE}GigabitB7dIn Errors {#SNMPINDEX}SNMP_AGENT1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}ifInErrors[{#SNMPINDEX}]307d90dCRC Errors Rx{last()}>100CRC Errors RX on {#SNMPINDEX}WARNINGIncoming traffic on interface {#SNMPINDEX}SNMP_AGENTIF-MIB::ifInOctets.{#SNMPINDEX}ifInOctets[{#SNMPVALUE}]10bpsBytes RxCHANGE_PER_SECONDMULTIPLIER8Status Port {#SNMPINDEX}SNMP_AGENT1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}ifOperStatus[{#SNMPINDEX}]607d90dPort StatusOut Errors {#SNMPINDEX}SNMP_AGENT1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}ifOutErrors[{#SNMPINDEX}]307d90dCRC Errors Tx{last()}>100CRC Errors TX on {#SNMPINDEX}WARNINGOutgoing traffic on interface {#SNMPINDEX}SNMP_AGENTIF-MIB::ifOutOctets.{#SNMPINDEX}ifOutOctets[{#SNMPVALUE}]10bpsBytes TxCHANGE_PER_SECONDMULTIPLIER8Traffic on interface {#SNMPINDEX}3001A7C11- SNMP OfficeConnect 19XXifInOctets[{#SNMPVALUE}]
1F63100- SNMP OfficeConnect 19XXifOutOctets[{#SNMPVALUE}]
Mac AddressSNMP_AGENTdiscovery[{#SNMPVALUE},1.3.6.1.4.1.25506.2.6.1.1.1.1.18]macaddress.discovery3600{#SNMPVALUE}[^00 ]A7dBase MAC AddressSNMP_AGENT1.3.6.1.4.1.25506.2.6.1.1.1.1.18.{#SNMPINDEX}macaddress[{#SNMPINDEX}]864007d0TEXTGeneralMemory UseageSNMP_AGENTdiscovery[{#SNMPVALUE},1.3.6.1.4.1.25506.2.6.1.1.1.1.8]memoryusage.discovery3600{#SNMPVALUE}[^0]A7dMemory TotalSNMP_AGENT1.3.6.1.4.1.25506.2.6.1.1.1.1.10.{#SNMPINDEX}memory.total[{#SNMPINDEX}]864007d90dBGeneralMemory UseageCALCULATEDmemoryusage.calc[{#SNMPINDEX}]607d90dBlast(memory.total[{#SNMPINDEX}])*last(memoryusage.perc[{#SNMPINDEX}])*0.01GeneralMemory Usage %SNMP_AGENT1.3.6.1.4.1.25506.2.6.1.1.1.1.8.{#SNMPINDEX}memoryusage.perc[{#SNMPINDEX}]607d90dGeneral{avg(15m)}>80Low free memory on {HOST.NAME}AVERAGEPSU DiscoverySNMP_AGENTdiscovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7,{#ENT_DESCR},1.3.6.1.2.1.47.1.1.1.1.2]psu.discovery3600{#ENT_CLASS}6A7dDiscovering all entities of PhysicalClass - 6: powerSupply(6){#ENT_NAME}: Power supply statusSNMP_AGENT1.3.6.1.4.1.25506.2.6.1.1.1.1.19.{#SNMPINDEX}sensor.psu.status[hh3cEntityExtErrorStatus.{#SNMPINDEX}]607d90dMIB: HH3C-ENTITY-EXT-MIB
Indicate the error state of this entity object.
psuError(51) means that the Power Supply Unit is in the state of fault.
rpsError(61) means the Redundant Power Supply is in the state of fault.Power Supply{count(#1,51,eq)}=1 or {count(#1,61,eq)}=1{#ENT_NAME}: Power supply is in critical stateDISASTERTemperature DiscoverySNMP_AGENTdiscovery[{#SNMPVALUE},1.3.6.1.2.1.47.1.1.1.1.2,{#MODULE_NAME},1.3.6.1.2.1.47.1.1.1.1.7]temp.discovery3600OR{#SNMPVALUE}SENSORA7dDiscovering modules temperature (same filter as in Module Discovery) plus and temperature sensors{#MODULE_NAME}: Temperature °CSNMP_AGENT1.3.6.1.4.1.25506.2.6.1.1.1.1.12.{#SNMPINDEX}sensor.temp.value[hh3cEntityExtTemperature.{#SNMPINDEX}]607d90d°CMIB: HH3C-ENTITY-EXT-MIB
The temperature for the {#MODULE_NAME}.Temperature{last()}>50{#SNMPVALUE}: Temp to highHIGH{#MODULE_NAME}: Temperature °FCALCULATEDsensor.tempf.value[hh3cEntityExtTemperature.{#SNMPINDEX}]607d90d°F32+9/5*last(sensor.temp.value[hh3cEntityExtTemperature.{#SNMPINDEX}])MIB: HH3C-ENTITY-EXT-MIB
The temperature for the {#MODULE_NAME}.Temperature