1Info::PowerEthernet(3)User Contributed Perl DocumentationInfo::PowerEthernet(3)
2
3
4
6 SNMP::Info::PowerEthernet - SNMP Interface to data stored in
7 POWER-ETHERNET-MIB.
8
10 Bill Fenner
11
13 # Let SNMP::Info determine the correct subclass for you.
14 my $poe = new SNMP::Info(
15 AutoSpecify => 1,
16 Debug => 1,
17 DestHost => 'myswitch',
18 Community => 'public',
19 Version => 2
20 )
21 or die "Can't connect to DestHost.\n";
22
23 my $class = $poe->class();
24 print "SNMP::Info determined this device to fall under subclass : $class\n";
25
27 POWER-ETHERNET-MIB is used to describe PoE (IEEE 802.3af)
28
29 Create or use a device subclass that inherit this class. Do not use
30 directly.
31
32 For debugging purposes you can call this class directly as you would
33 SNMP::Info
34
35 my $poe = new SNMP::Info::PowerEthernet (...);
36
37 Inherited Classes
38 none.
39
40 Required MIBs
41 POWER-ETHERNET-MIB
42
44 none.
45
47 These are methods that return tables of information in the form of a
48 reference to a hash.
49
50 Power Port Table
51 Selected values from the "pethPsePortTable"
52
53 $poe->peth_port_admin()
54 Administrative status: is this port permitted to deliver power?
55
56 "pethPsePortAdminEnable"
57
58 $poe->peth_port_status()
59 Current status: is this port delivering power, searching, disabled,
60 etc?
61
62 "pethPsePortDetectionStatus"
63
64 $poe->peth_port_class()
65 Device class: if status is delivering power, this represents the
66 802.3af class of the device being powered.
67
68 "pethPsePortPowerClassifications"
69
70 $poe->peth_port_ifindex()
71 A mapping function from the "pethPsePortTable" INDEX of module.port
72 to an "ifIndex". The default mapping ignores the module (returning
73 undef if there are any module values greater than 1) and returns
74 the port number, assuming that there is a 1:1 mapping.
75
76 This mapping is more or less left up to the device vendor to
77 implement; the MIB gives only very weak guidance. A given device
78 class may implement its own version of this function (e.g., see
79 Info::CiscoPower).
80
81 Power Supply Table
82 $poe->peth_power_watts()
83 The power supply's capacity, in watts.
84
85 "pethMainPsePower"
86
87 $poe->peth_power_status()
88 The power supply's operational status.
89
90 "pethMainPseOperStatus"
91
92 $poe->peth_power_consumption()
93 How much power, in watts, this power supply has been committed to
94 deliver. (Note: certain devices seem to supply this value in
95 milliwatts, so be cautious interpreting it.)
96
97 "pethMainPseConsumptionPower"
98
99 $poe->peth_power_threshold()
100 The threshold (in percent) of consumption required to raise an
101 alarm.
102
103 "pethMainPseUsageThreshold"
104
105
106
107perl v5.12.0 2009-06-12 Info::PowerEthernet(3)