cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4877
Views
5
Helpful
6
Replies

SG500-28P SNMP query for individual port power output?

w_smith
Level 1
Level 1

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!

1 Accepted Solution

Accepted Solutions

Tom Watts
VIP Alumni
VIP Alumni

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

-Tom Please mark answered for helpful posts http://blogs.cisco.com/smallbusiness/

View solution in original post

6 Replies 6

Tom Watts
VIP Alumni
VIP Alumni

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

-Tom Please mark answered for helpful posts http://blogs.cisco.com/smallbusiness/

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...

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.

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

[...]

Hi w_smith, here is the SX300 mib variables attached. Hope this will provide additional features for you.

-Tom
Please rate helpful posts

-Tom Please mark answered for helpful posts http://blogs.cisco.com/smallbusiness/

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!