1SNMP::Info::CiscoPower(U3s)er Contributed Perl DocumentatSiNoMnP::Info::CiscoPower(3)
2
3
4
6 SNMP::Info::CiscoPower - SNMP Interface to data stored in
7 CISCO-POWER-ETHERNET-EXT-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 The Info::PowerEthernet class needs a per-device helper function to
28 properly map the "pethPsePortTable" to "ifIndex" values. This class
29 provides that helper, using CISCO-POWER-ETHERNET-EXT-MIB. It does not
30 define any helpers for the extra values that this MIB contains.
31
32 Create or use a device subclass that inherit this class. Do not use
33 directly.
34
35 For debugging purposes you can call this class directly as you would
36 SNMP::Info
37
38 my $poe = new SNMP::Info::CiscoPower (...);
39
40 Inherited Classes
41 none.
42
43 Note that it requires that the device inherits from Info::Entity.
44
45 Required MIBs
46 CISCO-POWER-ETHERNET-EXT-MIB
47 CISCO-CDP-MIB
48
50 none.
51
53 These are methods that return tables of information in the form of a
54 reference to a hash.
55
56 Power Port Table
57 $poe->peth_port_ifindex()
58 Maps the "pethPsePortTable" to "ifIndex" by way of the ENTITY-MIB.
59
60 $poe->peth_port_power()
61 Power supplied by PoE ports, in milliwatts
62 ("cpeExtPsePortPwrConsumption")
63
64 CDP Port table
65 $poe->peth_port_neg_power()
66 Power negotiated using CDP, in milliwatts
67 ("cdpCachePowerConsumption")
68
69
70
71perl v5.32.0 2020-07-28 SNMP::Info::CiscoPower(3)