1SNMP::Info::Layer7::APCU(s3e)r Contributed Perl DocumentaStNiMoPn::Info::Layer7::APC(3)
2
3
4

NAME

6       SNMP::Info::Layer7::APC - SNMP Interface to APC UPS devices
7

AUTHOR

9       Jeroen van Ingen
10

SYNOPSIS

12        # Let SNMP::Info determine the correct subclass for you.
13        my $apc = new SNMP::Info(
14                                 AutoSpecify => 1,
15                                 Debug       => 1,
16                                 DestHost    => 'myswitch',
17                                 Community   => 'public',
18                                 Version     => 2
19                               )
20           or die "Can't connect to DestHost.\n";
21
22        my $class      = $apc->class();
23        print "SNMP::Info determined this device to fall under subclass : $class\n";
24

DESCRIPTION

26       Provides abstraction to the configuration information obtainable from a
27       APC UPS via SNMP.
28
29   Inherited Classes
30       SNMP::Info::Layer7
31
32   Required MIBs
33       POWERNET-MIB
34
35       All required MIBs can be found in the netdisco-mibs package.
36

GLOBALS

38       These are methods that return scalar value from SNMP
39
40       $apc->os()
41           Returns 'aos'
42
43       $apc->os_bin()
44           "POWERNET-MIB::experimental.2.4.1.4.2"
45
46       $apc->os_ver()
47           "POWERNET-MIB::experimental.2.4.1.4.1"
48
49       $apc->serial()
50           Combines the UPS serial "upsAdvIdentSerialNumber.0" with the
51           management card serial "POWERNET-MIB::experimental.2.4.1.2.1" into
52           a pretty string.
53
54       $apc->vendor()
55           Returns 'apc'
56
57       $apc->model()
58           "upsBasicIdentModel.0"
59
60       $apc->ps1_type()
61           Returns 'UPS status'
62
63       $apc->ps1_status()
64           Returns the main UPS status from "upsBasicOutputStatus.0"
65
66       $apc->ps2_type()
67           Returns 'Battery status'
68
69       $apc->ps2_status()
70           Returns the battery status from "upsBasicBatteryStatus.0"
71
72   Globals imported from SNMP::Info::Layer7
73       See documentation in "GLOBALS" in SNMP::Info::Layer7 for details.
74

TABLE METHODS

76       These are methods that return tables of information in the form of a
77       reference to a hash.
78
79   Table Methods imported from SNMP::Info::Layer7
80       See documentation in "TABLE METHODS" in SNMP::Info::Layer7 for details.
81

SET METHODS

83       These are methods that provide SNMP set functionality for overridden
84       methods or provide a simpler interface to complex set operations.  See
85       "SETTING DATA VIA SNMP" in SNMP::Info for general information on set
86       operations.
87
88
89
90perl v5.32.1                      2021-01-27        SNMP::Info::Layer7::APC(3)
Impressum