Wired Intelligent Edge (Campus Switching and Routing)

Finding OID's and monitoring the state of Fan and Power Supplies on switches

MVP
MVP
Problem:

This Article explains how the state of the fans and  power supplies of the switch be monitored using the OID's through SNMP queries.These are used by network monitoring tools to keep a check on the health of the switch and to report an alarm in case of failures.



Diagnostics:

OIDs or Object Identifiers uniquely identify managed objects in the MIB. MIB stands for Management Information Base and is a collection of definitions that define the properties of the managed object within the device to be managed. The MIB's can be obtained from the Software Downloads page of My Networking. OID's can be obtained by loading specific entities in  MIB's to a MIB Browser.



Solution

Quering the hpicfPsState OID:

Listed below is the  hpicfPsState OID,

Name hpicfPsState
OID .1.3.6.1.4.1.11.2.14.11.5.1.55.1.1.1.2
MIB POWERSUPPLY-MIB
Syntax HpicfDcPsState (INTEGER) {psNotPresent(1), psNotPlugged(2), psPowered(3), psFailed(4), psPermFailure(5), psMax(6), psAuxFailure(7), psNotPowered(8), psAuxNotPowered(9) }
Access read-only
Status current
Indexes hpicfPsBayNum
Descr The physical state of the switch power supply entity.

 

Below SNMPWalk was used on an end device running Ubuntu to query the state of the power supply on an Aruba 5406R Switch.

pnb@nsc-xubuntu-15:~$ snmpwalk -v2c -c public 192.168.1.5 1.3.6.1.4.1.11.2.14.11.5.1.55.1.1.1.2
iso.3.6.1.4.1.11.2.14.11.5.1.55.1.1.1.2.1 = INTEGER: 3
iso.3.6.1.4.1.11.2.14.11.5.1.55.1.1.1.2.2 = INTEGER: 1

 

The above results of the query can be verified by the output of 'show system power supply' obtained from the switch,

HP-Switch-5406Rzl2# show system power-supply

Power Supply Status:

 PS#    Model      Serial          State         AC/DC  + V    Wattage
 ---- --------- ------------ ----------------- -------------- ---------
   1   J9828A    IN46G4D0BT   Powered           AC 120V/240V      700
   2                          Not Present       -- ---------        0

   1 /  2 supply bays delivering power.
   Total power: 700 W

 

Quering the hpicfFabState OID:

Listed below is the  hpicfPsState OID,

Name hpicfFanState
OID .1.3.6.1.4.1.11.2.14.11.5.1.54.2.1.1.4
MIB FAN-MIB
Syntax HpicfDcFanState (INTEGER) {failed(0), removed(1), off(2), underspeed(3), overspeed(4), ok(5), maxstate(6) }
Access read-only
Indexes hpicfFanIndex
Descr The current state of the fan.

 

Below SNMPWalk was used on an end device running Ubuntu to query the state of the fans on an Aruba 5406R Switch.

pnb@nsc-xubuntu-15:~$  snmpwalk -v2c -c public 192.168.1.5 1.3.6.1.4.1.11.2.14.11.5.1.54.2.1.1.4
iso.3.6.1.4.1.11.2.14.11.5.1.54.2.1.1.4.1 = INTEGER: 5
iso.3.6.1.4.1.11.2.14.11.5.1.54.2.1.1.4.2 = INTEGER: 5
iso.3.6.1.4.1.11.2.14.11.5.1.54.2.1.1.4.3 = INTEGER: 5
iso.3.6.1.4.1.11.2.14.11.5.1.54.2.1.1.4.4 = INTEGER: 5
iso.3.6.1.4.1.11.2.14.11.5.1.54.2.1.1.4.5 = INTEGER: 5
iso.3.6.1.4.1.11.2.14.11.5.1.54.2.1.1.4.6 = INTEGER: 2

 

The above results of the query can be verified by the output of 'show system fans' obtained from the switch,

HP-Switch-5406Rzl2# show system fans

Fan Information
  Num  | State       | Failures | Location
-------+-------------+----------+----------
Fan-1  | Fan OK      |   0      | Fan Tray
Fan-2  | Fan OK      |   0      | Fan Tray
Fan-3  | Fan OK      |   0      | Fan Tray
Fan-4  | Fan OK      |   0      | Fan Tray
Fan-5  | Fan OK      |   0      | PS 1
Fan-6  | Fan Removed |   0      | PS 2

0 / 6 Fans in Failure State
0 / 6 Fans have been in Failure State
Version history
Revision #:
1 of 1
Last update:
‎07-16-2019 03:33 PM
Updated by: