08-27-2012 08:56 PM
Is there a way to ask the above switch how much power it's supplying to various ports?
I've found some stuff in POWER-ETHERNET-MIB, but it's only the main power supply and the up/down status of the various ports.
It looks like what I want is
http://www.oidview.com/mibs/9/CISCO-POWER-ETHERNET-EXT-MIB.html
but my SG500 tells me:
snmpwalk -v2c -cpublic serverswitch 1.3.6.1.4.1.9.9.402
CISCO-SMI::ciscoMgmt.402 = No Such Object available on this agent at this OID
Is there any other trick I'm missing?
Thanks!
Solved! Go to Solution.
08-27-2012 09:54 PM
Hi w_smith, attached is a console log of all MIB supported by the switch.
Below are the POE object names found on the switch.
lldpXMedLocXPoEDeviceType
lldpXMedLocXPoEPSEPortTable
lldpXMedLocXPoEPSEPowerSource
lldpXMedRemXPoEPDTable
lldpXMedRemXPoEPSETable
lldpXMedRemXPoETable
rlPhdNumberOfPoeUnits
lldpXMedLocXPoEDeviceType
lldpXMedLocXPoEPSEPortTable
lldpXMedLocXPoEPSEPowerSource
lldpXMedRemXPoEPDTable
lldpXMedRemXPoEPSETable
lldpXMedRemXPoETable
rlPhdNumberOfPoeUnits
-Tom
Please rate helpful posts
08-27-2012 09:54 PM
Hi w_smith, attached is a console log of all MIB supported by the switch.
Below are the POE object names found on the switch.
lldpXMedLocXPoEDeviceType
lldpXMedLocXPoEPSEPortTable
lldpXMedLocXPoEPSEPowerSource
lldpXMedRemXPoEPDTable
lldpXMedRemXPoEPSETable
lldpXMedRemXPoETable
rlPhdNumberOfPoeUnits
lldpXMedLocXPoEDeviceType
lldpXMedLocXPoEPSEPortTable
lldpXMedLocXPoEPSEPowerSource
lldpXMedRemXPoEPDTable
lldpXMedRemXPoEPSETable
lldpXMedRemXPoETable
rlPhdNumberOfPoeUnits
-Tom
Please rate helpful posts
08-28-2012 05:02 AM
Thanks Thomas!
Unfortunately, it looks like lldpXMedLocXPoEPSEPortTable should do something useful, but:
LLDP-EXT-MED-MIB::lldpXMedLocXPoEPSEPortPowerAv.49 = Gauge32: 130 tenth of watt
LLDP-EXT-MED-MIB::lldpXMedLocXPoEPSEPortPowerAv.50 = Gauge32: 130 tenth of watt
LLDP-EXT-MED-MIB::lldpXMedLocXPoEPSEPortPowerAv.51 = Gauge32: 130 tenth of watt
LLDP-EXT-MED-MIB::lldpXMedLocXPoEPSEPortPowerAv.52 = Gauge32: 130 tenth of watt
LLDP-EXT-MED-MIB::lldpXMedLocXPoEPSEPortPowerAv.53 = Gauge32: 130 tenth of watt
LLDP-EXT-MED-MIB::lldpXMedLocXPoEPSEPortPowerAv.54 = Gauge32: 130 tenth of watt
LLDP-EXT-MED-MIB::lldpXMedLocXPoEPSEPortPowerAv.55 = Gauge32: 130 tenth of watt
LLDP-EXT-MED-MIB::lldpXMedLocXPoEPSEPortPowerAv.56 = Gauge32: 130 tenth of watt
LLDP-EXT-MED-MIB::lldpXMedLocXPoEPSEPortPowerAv.57 = Gauge32: 38 tenth of watt
This switch is currently supplying:
4500
9100
5600
5300
4900
0
0
0
0
milliwatts.
Ah, but I did find some stuff under:
snmpwalk -v2c -cpublic serverswitch rlPethPsePortTable
though I can't parse the details, must be missing a MIB file...
08-29-2012 12:57 PM
Ah, OK, so:
rlPethPsePortOutputPower
aka
.1.3.6.1.4.1.9.6.1.101.108.1.1.5
is the relevant OID, and specifially:
.1.3.6.1.4.1.9.6.1.101.108.1.1.5.1.{49-72 inclusive)
Where the last .1. is the unit number and .49 thru .72 are the 24 gigabit ports.
I'm going to credit Tom with the correct answer, or at least the posting that lead me there.
08-30-2012 03:47 AM
And for what it's worth, a similar thing works on the SF300-24P, though the port numbering is slightly different:
snmpwalk -v2c -cpublic 192.168.1.160 1.3.6.1.4.1.9.6.1.101.108.1.1.5.1
CISCOSMB-MIB::switch001.108.1.1.5.1.1 = INTEGER: 9900
[...]
08-30-2012 08:26 AM
08-31-2012 08:34 AM
Not sure I can parse that console log, but if you can do something like:
snmpwalk -v2c -cpublic 192.168.1.160 1.3.6.1.4.1.9.6.1.101.108.1.1.5
You should see the details of what the port numbering scheme are and what details are reported by the switch.
Let us know!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide