1SNMP::Info::PowerEthernUeste(r3)Contributed Perl DocumenStNaMtPi:o:nInfo::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 $poe->peth_port_neg_power()
82 The power, in milliwatts, that has been committed to this port.
83 This value is derived from the 802.3af class of the device being
84 powered, but may be overridden by a subclass that has information
85 from another source (e.g., if a different protocol, such as CDP,
86 was used to negotiate the power level.)
87
88 Power Supply Table
89 $poe->peth_power_watts()
90 The power supply's capacity, in watts.
91
92 "pethMainPsePower"
93
94 $poe->peth_power_status()
95 The power supply's operational status.
96
97 "pethMainPseOperStatus"
98
99 $poe->peth_power_consumption()
100 How much power, in watts, this power supply has been committed to
101 deliver. (Note: certain devices seem to supply this value in
102 milliwatts, so be cautious interpreting it.)
103
104 "pethMainPseConsumptionPower"
105
106 $poe->peth_power_threshold()
107 The threshold (in percent) of consumption required to raise an
108 alarm.
109
110 "pethMainPseUsageThreshold"
111
112
113
114perl v5.34.0 2022-01-21 SNMP::Info::PowerEthernet(3)