1SNMP::Info::Layer1::BayUhsuebr(3C)ontributed Perl DocumeSnNtMaPt:i:oInnfo::Layer1::Bayhub(3)
2
3
4
6 SNMP::Info::Layer1::Bayhub - SNMP Interface to Bay/Nortel/Avaya Hubs
7
9 Eric Miller
10
12 #Let SNMP::Info determine the correct subclass for you.
13
14 my $bayhub = new SNMP::Info(
15 AutoSpecify => 1,
16 Debug => 1,
17 DestHost => 'myswitch',
18 Community => 'public',
19 Version => 2
20 )
21
22 or die "Can't connect to DestHost.\n";
23
24 my $class = $bayhub->class();
25 print "SNMP::Info determined this device to fall under subclass : $class\n";
26
28 Provides abstraction to the configuration information obtainable from a
29 Bay hub device through SNMP. Also provides device MAC to port mapping
30 through the proprietary MIB.
31
32 Inherited Classes
33 SNMP::Info::Layer2
34 SNMP::Info::NortelStack
35 SNMP::Info::SONMP
36
37 Required MIBs
38 S5-ETHERNET-COMMON-MIB
39 S5-COMMON-STATS-MIB
40
41 Inherited MIBs
42 See "Required MIBs" in SNMP::Info::Layer2 for its MIB requirements.
43
44 See "Required MIBs" in SNMP::Info::NortelStack for its MIB
45 requirements.
46
47 See "Required MIBs" in SNMP::Info::SONMP for its MIB requirements.
48
50 These are methods that return scalar value from SNMP
51
52 $bayhub->vendor()
53 Returns 'avaya'
54
55 $bayhub->os()
56 Returns 'bay_hub'
57
58 $bayhub->model()
59 Cross references $bayhub->id() to the SYNOPTICS-MIB and returns the
60 results.
61
62 Removes either Baystack Hub, 5000, or 5005 depending on the model.
63
64 Overrides
65 $bayhub->layers()
66 Returns 00000011. Class emulates Layer 2 functionality through
67 proprietary MIBs.
68
69 $bayhub->index_factor()
70 Required by SNMP::Info::SONMP. Number representing the number of
71 ports reserved per slot within the device MIB. Returns 256.
72
73 $bayhub->slot_offset()
74 Required by SNMP::Info::SONMP. Offset if slot numbering does not
75 start at 0. Returns 0.
76
77 Globals imported from SNMP::Info::Layer2
78 See "GLOBALS" in SNMP::Info::Layer2 for details.
79
80 Global Methods imported from SNMP::Info::NortelStack
81 See "GLOBALS" in SNMP::Info::NortelStack for details.
82
83 Global Methods imported from SNMP::Info::SONMP
84 See "GLOBALS" in SNMP::Info::SONMP for details.
85
87 These are methods that return tables of information in the form of a
88 reference to a hash.
89
90 Overrides
91 $bayhub->i_index()
92 Returns reference to map of IIDs to Interface index.
93
94 Since hubs do not support "ifIndex", the interface index is created
95 using the formula (board * 256 + port).
96
97 $bayhub->interfaces()
98 Returns reference to map of IIDs to physical ports.
99
100 $bayhub->i_duplex()
101 Returns half, hubs do not support full duplex.
102
103 $bayhub->i_duplex_admin()
104 Returns half, hubs do not support full duplex.
105
106 $bayhub->i_speed()
107 Returns interface speed.
108
109 $bayhub->i_up()
110 Returns ("s5EnPortLinkStatus") for each port. Translates on/off to
111 up/down.
112
113 $bayhub->i_up_admin()
114 Returns ("s5EnPortPartStatus") for each port.
115
116 $bayhub->set_i_up_admin(state, ifIndex)
117 Sets port state, must be supplied with state and port "ifIndex"
118
119 State choices are 'up' or 'down'
120
121 Example:
122 my %if_map = reverse %{$bayhub->interfaces()};
123 $bayhub->set_i_up_admin('down', $if_map{'1.1'})
124 or die "Couldn't change port state. ",$bayhub->error(1);
125
126 $bayhub->bp_index()
127 Simulates bridge MIB by returning reference to a hash containing
128 the index for both the keys and values.
129
130 $bayhub->fw_port()
131 Returns reference to map of IIDs of the
132 "S5-COMMON-STATS-MIB::s5CmSNodeTable" to the Interface index.
133
134 $bayhub->fw_mac()
135 ("s5CmSNodeMacAddr")
136
137 Pseudo ENTITY-MIB Information
138 These devices do not support ENTITY-MIB. These methods emulate
139 Physical Table methods using S5-CHASSIS-MIB. See "TABLE METHODS" in
140 SNMP::Info::NortelStack for details.
141
142 $bayhub->e_index()
143 Returns ns_e_index().
144
145 $bayhub->e_class()
146 Returns ns_e_class().
147
148 $bayhub->e_descr()
149 Returns ns_e_descr().
150
151 $bayhub->e_name()
152 Returns ns_e_name().
153
154 $bayhub->e_fwver()
155 Returns ns_e_fwver().
156
157 $bayhub->e_hwver()
158 Returns ns_e_hwver().
159
160 $bayhub->e_parent()
161 Returns ns_e_parent().
162
163 $bayhub->e_pos()
164 Returns ns_e_pos().
165
166 $bayhub->e_serial()
167 Returns ns_e_serial().
168
169 $bayhub->e_swver()
170 Returns ns_e_swver().
171
172 $bayhub->e_type()
173 Returns ns_e_type().
174
175 $bayhub->e_vendor()
176 Returns ns_e_vendor().
177
178 Table Methods imported from SNMP::Info::Layer2
179 See "TABLE METHODS" in SNMP::Info::Layer2 for details.
180
181 Table Methods imported from SNMP::Info::NortelStack
182 See "TABLE METHODS" in SNMP::Info::NortelStack for details.
183
184 Table Methods imported from SNMP::Info::SONMP
185 See "TABLE METHODS" in SNMP::Info::SONMP for details.
186
187
188
189perl v5.32.0 2020-07-28 SNMP::Info::Layer1::Bayhub(3)