Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

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

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!

Everyone's tags (4)
1 ACCEPTED SOLUTION

Accepted Solutions
Green

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

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/
6 REPLIES
Green

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

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/
Community Member

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

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

Community Member

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

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.

Community Member

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

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

[...]

Green

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

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/
Community Member

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

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!

3362
Views
5
Helpful
6
Replies
CreatePlease to create content