[c-nsp] Monitoring PoE usage

Frank Bulk frnkblk at iname.com
Tue May 5 15:42:00 EDT 2015


I have a Cisco 2960-48PST-L (running (15.0(2)SE6)) where we recently hit
some power limits while upgrading some Aruba access points.

I'd like to monitor this switch (and also a 3500 PoE switch) for power usage
by building a NAGIOS plugin.

What I don't understand is why the CLI reports 362.6 watts in use while the
standard SNMP OID reports just 113 watts in use.

switch-sc5#show power inline | inc Av
Available:370.0(w)  Used:362.6(w)  Remaining:7.4(w)
switch-sc5#

root at nagios:~# snmpwalk -v 2c -c public 192.168.0.19 1.3.6.1.2.1.105.1.3.1.1
SNMPv2-SMI::mib-2.105.1.3.1.1.2.1 = Gauge32: 370
SNMPv2-SMI::mib-2.105.1.3.1.1.3.1 = INTEGER: 1
SNMPv2-SMI::mib-2.105.1.3.1.1.4.1 = Gauge32: 113
SNMPv2-SMI::mib-2.105.1.3.1.1.5.1 = INTEGER: 10
root at nagios:~#

[actually in use, on a per-port basis, adds up to ~113 watts]
root at nagios:~# snmpwalk -v 2c -c public 192.168.0.19
1.3.6.1.4.1.9.9.402.1.2.1.9
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.1 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.2 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.3 = Gauge32: 1787
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.4 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.5 = Gauge32: 1986
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.6 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.7 = Gauge32: 9337
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.8 = Gauge32: 1738
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.9 = Gauge32: 1735
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.10 = Gauge32: 1685
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.11 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.12 = Gauge32: 1685
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.13 = Gauge32: 1735
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.14 = Gauge32: 9320
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.15 = Gauge32: 9469
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.16 = Gauge32: 1437
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.17 = Gauge32: 9164
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.18 = Gauge32: 1733
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.19 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.20 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.21 = Gauge32: 1832
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.22 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.23 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.24 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.25 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.26 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.27 = Gauge32: 1734
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.28 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.29 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.30 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.31 = Gauge32: 9216
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.32 = Gauge32: 9216
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.33 = Gauge32: 1539
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.34 = Gauge32: 1638
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.35 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.36 = Gauge32: 1688
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.37 = Gauge32: 1886
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.38 = Gauge32: 1936
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.39 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.40 = Gauge32: 2929
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.41 = Gauge32: 1688
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.42 = Gauge32: 9433
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.43 = Gauge32: 9135
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.44 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.45 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.46 = Gauge32: 1688
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.47 = Gauge32: 1390
SNMPv2-SMI::enterprises.9.9.402.1.2.1.9.1.48 = Gauge32: 3673
root at nagios:~#

Is it that the CLI reports what's been allocated (either 7000 or 15400 mw)
and standard SNMP MIB reports what's actually in use?

Frank



More information about the cisco-nsp mailing list