| SNMP::Info::PowerEthernet(3pm) | User Contributed Perl Documentation | SNMP::Info::PowerEthernet(3pm) |
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 (...);
none.
none.
These are methods that return tables of information in the form of a reference to a hash.
Selected values from the "pethPsePortTable"
"pethPsePortAdminEnable"
"pethPsePortDetectionStatus"
"pethPsePortPowerClassifications"
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).
"pethMainPsePower"
"pethMainPseOperStatus"
"pethMainPseConsumptionPower"
"pethMainPseUsageThreshold"
| 2023-09-30 | perl v5.36.0 |