cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
299
Views
0
Helpful
4
Replies

C9300 monitor system led status via SNMP

enrico.frediani
Level 1
Level 1

Hello to everybody. I need to monitor the status of several C9300 health in general. I mean that I want to know if the system led is green, amber or red via snmp variable: is there a such variable?

best regards

e.frediani - italy

4 Replies 4

marce1000
VIP
VIP

 

  - I don't think there is an snmp oid in the supported MIBS for the 9300 that can query the led status (directly) ; from
    https://github.com/cisco/cisco-mibs

    You can look at related mibs and find and or test related OID's such as form :
    https://github.com/cisco/cisco-mibs/blob/main/v2/CISCO-ENTITY-ALARM-MIB.my
    https://github.com/cisco/cisco-mibs/blob/main/v2/CISCO-ALARM-MIB.my                    (corrected)

  M.
   
    



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

I tried to snmpwalk through CISCO-ENTITY-ALARM-MIB and CISCO-ENTITY-MIB, but i suppose that these variables are not avalilable il C9300. 

enrico.frediani
Level 1
Level 1

I try to explain further my need. I would like to check if the system reports an error like a fan removed. I see that if I unplug a fan from the C9300, the system led becomes amber, but I do not find an snmp variable that makes evident this anomaly. I tried to use the CiscoEnvMonState but this variable only shows the fans connected (working or not) but it does not show the fans removed.

Before unplugging a fan:

 

snmpwalk -c xxxxx -v 2c 192.168.1.1 1.3.6.1.4.1.9.9.13.1.4.1.3
SNMPv2-SMI::enterprises.9.9.13.1.4.1.3.1017 = INTEGER: 1
SNMPv2-SMI::enterprises.9.9.13.1.4.1.3.1018 = INTEGER: 1
SNMPv2-SMI::enterprises.9.9.13.1.4.1.3.1019 = INTEGER: 1

 

After unplugging one fan:

 

snmpwalk -c xxxxx -v 2c 192.168.1.1 1.3.6.1.4.1.9.9.13.1.4.1.3
SNMPv2-SMI::enterprises.9.9.13.1.4.1.3.1018 = INTEGER: 1
SNMPv2-SMI::enterprises.9.9.13.1.4.1.3.1019 = INTEGER: 1

 

You can see that the command has one row less, but in general I don't know how many fans a switch has. I think that the snmpwalk should show always 3 lines, with one of them with a value grater than '1'.

Do you think could be another snmp variable that could tell me that a fan has been removed?

 

thank you

 

 

  - In can be difficult to find the correct OID for  'the alarm that we need' , you could also look into : 
   https://github.com/cisco/cisco-mibs/blob/main/v2/CISCO-ENTITY-FRU-CONTROL-CAPABILITY.my
   and start testing with stuff as  cefcMIBFanTrayStatusGroup  ,  cefcFanTrayOperStatus

   In that context it is then always advised to enable all snmp traps and also have an snmp trap receiver installed
  to get alarms based on snmp traps being send from the switch, 

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '
Review Cisco Networking for a $25 gift card