1SNMP::Info::CiscoPower(U3s)er Contributed Perl DocumentatSiNoMnP::Info::CiscoPower(3)
2
3
4

NAME

6       SNMP::Info::CiscoPower - SNMP Interface to data stored in
7       CISCO-POWER-ETHERNET-EXT-MIB.
8

AUTHOR

10       Bill Fenner
11

SYNOPSIS

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

DESCRIPTION

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

GLOBALS

49       none.
50

TABLE METHODS

52       These are methods that return tables of information in the form of a
53       reference to a hash.
54
55   Power Port Table
56       $poe->peth_port_ifindex()
57           Maps the "pethPsePortTable" to "ifIndex" by way of the ENTITY-MIB.
58
59       $poe->peth_port_power()
60           Power supplied by PoE ports, in milliwatts
61           ("cpeExtPsePortPwrConsumption")
62
63   CDP Port table
64       $poe->peth_port_neg_power()
65           Power negotiated using CDP, in milliwatts
66           ("cdpCachePowerConsumption")
67
68
69
70perl v5.28.0                      2018-11-29         SNMP::Info::CiscoPower(3)
Impressum