Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



Man Pages
SNMP::Info::PowerEthernet(3) User Contributed Perl Documentation SNMP::Info::PowerEthernet(3)

SNMP::Info::PowerEthernet - SNMP Interface to data stored in POWER-ETHERNET-MIB.

Bill Fenner

 # Let SNMP::Info determine the correct subclass for you. 
 my $poe = new SNMP::Info(
                          AutoSpecify => 1,
                          Debug       => 1,
                          DestHost    => 'myswitch',
                          Community   => 'public',
                          Version     => 2
    or die "Can't connect to DestHost.\n";
 my $class      = $poe->class();
 print "SNMP::Info determined this device to fall under subclass : $class\n";

POWER-ETHERNET-MIB is used to describe PoE (IEEE 802.3af)
Create or use a device subclass that inherit this class. Do not use directly.
For debugging purposes you can call this class directly as you would SNMP::Info
 my $poe = new SNMP::Info::PowerEthernet (...);




These are methods that return tables of information in the form of a reference to a hash.

Selected values from the "pethPsePortTable"
Administrative status: is this port permitted to deliver power?
Current status: is this port delivering power, searching, disabled, etc?
Device class: if status is delivering power, this represents the 802.3af class of the device being powered.
A mapping function from the "pethPsePortTable" INDEX of module.port to an "ifIndex". The default mapping ignores the module (returning undef if there are any module values greater than 1) and returns the port number, assuming that there is a 1:1 mapping.
This mapping is more or less left up to the device vendor to implement; the MIB gives only very weak guidance. A given device class may implement its own version of this function (e.g., see Info::CiscoPower).
The power, in milliwatts, that has been committed to this port. This value is derived from the 802.3af class of the device being powered, but may be overridden by a subclass that has information from another source (e.g., if a different protocol, such as CDP, was used to negotiate the power level.)

The power supply's capacity, in watts.
The power supply's operational status.
How much power, in watts, this power supply has been committed to deliver. (Note: certain devices seem to supply this value in milliwatts, so be cautious interpreting it.)
The threshold (in percent) of consumption required to raise an alarm.
2019-01-02 perl v5.28.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.