SNMP – Confirming Correct OID to Poll for Nexus Power Module Operational Status

cisco-nexus-7ksnmp

The OID I am polling at the moment is cefcModuleOperStatus 1.3.6.1.4.1.9.9.117.1.2.1.1.2. When I poll a Nexus 7k switch I am getting a result: 2,2. I am guessing this means OK and OK. The thing is I don't know what other outputs there are for this OID and what there values might mean. I am guessing I'm correct in assuming that the values 2,2 mean OK, OK because I logged on to the switch and saw that both power modules were in OK state

Why are OID's so opaque?! I can't find any decent documentation which gives a full thorough explanation of what each non intuitively named OID might mean and how to interpret the results. So frustrating!

Anyway does anybody know if this is indeed the correct OID to poll? and if so are you aware of the possible out puts and what the nemerical values returned might translate to eg. 0 = absent, 1 = failed, 2 = OK?

Best Answer

Cisco's SNMP Object Navigator is a great resource to answer most of these questions.

Entering your OID gives the following, so indeed 2 = OK :

Object  cefcModuleOperStatus
OID     1.3.6.1.4.1.9.9.117.1.2.1.1.2
Type    ModuleOperType 

        1:unknown
        2:ok
        3:disabled
        4:okButDiagFailed
        5:boot
        6:selfTest
        7:failed
        8:missing
        9:mismatchWithParent
        10:mismatchConfig
        11:diagFailed
        12:dormant
        13:outOfServiceAdmin
        14:outOfServiceEnvTemp
        15:poweredDown
        16:poweredUp
        17:powerDenied
        18:powerCycled
        19:okButPowerOverWarning
        20:okButPowerOverCritical
        21:syncInProgress
        22:upgrading
        23:okButAuthFailed
        24:mdr
        25:fwMismatchFound
        26:fwDownloadSuccess
        27:fwDownloadFailure

Permission  read-only
Status      current
MIB         CISCO-ENTITY-FRU-CONTROL-MIB 
Description This object shows the module's operational state.

Edit: you could also have a look at cefcFRUPower and everything below it, for more info about the po