1Info::MAU(3)          User Contributed Perl Documentation         Info::MAU(3)
2
3
4

NAME

6       SNMP::Info::MAU - SNMP Interface to Medium Access Unit (MAU) MIB (RFC
7       2668) via SNMP
8

AUTHOR

10       Max Baker
11

SYNOPSIS

13        my $mau = new SNMP::Info (
14                                    AutoSpecify => 1,
15                                    Debug       => 1,
16                                    DestHost    => 'hpswitch',
17                                    Community   => 'public',
18                                    Version     => 2
19                                  );
20
21        my $class = $mau->class();
22        print " Using device sub class : $class\n";
23

DESCRIPTION

25       SNMP::Info::MAU is a subclass of SNMP::Info that supplies access to the
26       MAU-MIB (RFC 2668). This MIB is sometimes implemented on Layer 2
27       network devices like HP Switches.  MAU = Media Access Unit.
28
29       The MAU table contains link and duplex info for the port itself and the
30       device connected to that port.
31
32       Normally you use or create a subclass of SNMP::Info that inherits this
33       one.  Do not use directly.
34
35       For debugging purposes call the class directly as you would SNMP::Info
36
37        my $mau = new SNMP::Info::MAU(...);
38
39   Inherited Classes
40       None.
41
42   Required MIBs
43       MAU-MIB
44

GLOBALS

46       These are methods that return scalar value from SNMP
47
48       None
49

TABLE METHODS

51       These are methods that return tables of information in the form of a
52       reference to a hash.
53
54       $mau->mau_i_duplex()
55           Parses mau_index and mau_link to return the duplex information for
56           interfaces.
57
58       $mau->mau_i_duplex_admin()
59           Parses "mac_index","mau_autostat","mau_type_admin" in order to find
60           the admin duplex setting for all the interfaces.
61
62           Returns either (auto,full,half).
63
64       $mau->mau_i_duplex_admin_old()
65           Called by mau_i_duplex_admin() if "mau_type_admin" is empty.
66           Parses "mau_index","mau_autostat","mau_autosent" in order to find
67           the admin duplex setting for all the interfaces.
68
69           Returns either (auto,none,full,half).
70
71       $mau->mau_i_speed_admin()
72           Returns admin speed setting for all the interfaces.
73
74   MAU INTERFACE TABLE METHODS
75       $mau->mau_index() -  Returns a list of interfaces and their index in
76       the MAU IF Table.
77           ("ifMauIfIndex")
78
79       $mau->mau_link() - Returns the type of Media Access used.
80               This is essentially the type of link in use.
81               eg. dot3MauType100BaseTXFD - 100BaseT at Full Duplex
82
83           ("ifMauType")
84
85       $mau->mau_status() - Returns the admin link condition as
86               1 - other
87               2 - unknown
88               3 - operational
89               4 - standby
90               5 - shutdown
91               6 - reset
92
93           Use 5 and !5 to see if the link is up or down on the admin side.
94
95           ("ifMauStatus")
96
97       $mau->mau_up() -  Returns the current link condition
98            (C<ifMauMediaAvailable>)
99
100       $mau->mau_type() - Returns a 32bit string reporting the capabilities of
101       the port from a MAU POV.
102             Directly from F<MAU-MIB> :
103                     Bit   Capability
104                       0      other or unknown
105                       1      AUI
106                       2      10BASE-5
107                       3      FOIRL
108                       4      10BASE-2
109                       5      10BASE-T duplex mode unknown
110                       6      10BASE-FP
111                       7      10BASE-FB
112                       8      10BASE-FL duplex mode unknown
113                       9      10BROAD36
114                      10      10BASE-T  half duplex mode
115                      11      10BASE-T  full duplex mode
116                      12      10BASE-FL half duplex mode
117                      13      10BASE-FL full duplex mode
118                      14      100BASE-T4
119                      15      100BASE-TX half duplex mode
120                      16      100BASE-TX full duplex mode
121                      17      100BASE-FX half duplex mode
122                      18      100BASE-FX full duplex mode
123                      19      100BASE-T2 half duplex mode
124                      20      100BASE-T2 full duplex mode
125
126           ("ifMauTypeList")
127
128       $mau->mau_type_admin()
129           ("ifMauDefaultType")
130
131       $mau->mau_auto() - Returns status of auto-negotiation mode for ports.
132           ("ifMauAutoNegAdminStatus")
133
134       $mau->mau_autostat()
135           ("ifMauAutoNegAdminStatus")
136
137       $mau->mau_autosent() - Returns a 32 bit bit-string representing the
138       capabilities we are broadcasting on that port
139               Uses the same decoder as $mau->mau_type().
140
141           ("ifMauAutoNegCapAdvertised")
142
143       $mau->mau_autorec() - Returns a 32 bit bit-string representing the
144       capabilities of the device on the other end.
145               Uses the same decoder as $mau->mau_type().
146
147           ("ifMauAutoNegCapReceived")
148

Utility Functions

150       munge_int2bin() - Unpacks an integer into a 32bit bit string.
151       $mau->_isfullduplex(bitstring)
152               Boolean. Checks to see if any of the full_duplex types from mau_type()
153               are     high.  Currently bits 11,13,16,18,20.
154
155       $mau->_ishalfduplex(bitstring)
156               Boolean.  Checks to see if any of the half_duplex types from mau_type()
157               are high.  Currently bits 10,12,15,17,19.
158
159
160
161perl v5.12.0                      2009-06-12                      Info::MAU(3)
Impressum