1SNMP::Info::Layer2::BayUsstearckC(o3n)tributed Perl DocuSmNeMnPt:a:tIinofno::Layer2::Baystack(3)
2
3
4
6 SNMP::Info::Layer2::Baystack - SNMP Interface to Avaya Ethernet Switch
7 (Baystack) and VSP 7000 series switches
8
10 Eric Miller
11
13 # Let SNMP::Info determine the correct subclass for you.
14 my $baystack = 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 = $baystack->class();
24 print "SNMP::Info determined this device to fall under subclass : $class\n";
25
27 Provides abstraction to the configuration information obtainable from
28 an Avaya Ethernet Switch (formerly Nortel/Bay Baystack) and VSP 7000
29 series through SNMP.
30
31 Inherited Classes
32 SNMP::Info::SONMP
33 SNMP::Info::NortelStack
34 SNMP::Info::RapidCity
35 SNMP::Info::Layer3
36
37 Required MIBs
38 BAY-STACK-PETH-EXT-MIB
39
40 Inherited MIBs
41 See "Required MIBs" in SNMP::Info::SONMP for its MIB requirements.
42
43 See "Required MIBs" in SNMP::Info::NortelStack for its MIB
44 requirements.
45
46 See "Required MIBs" in SNMP::Info::RapidCity for its MIB requirements.
47
48 See "Required MIBs" in SNMP::Info::Layer3 for its MIB requirements.
49
51 These are methods that return scalar value from SNMP
52
53 $baystack->vendor()
54 Returns 'avaya'
55
56 $baystack->model()
57 Cross references $baystack->id() to the SYNOPTICS-MIB and returns
58 the results. 303s and 304s have the same ID, so we have a hack to
59 return depending on which it is.
60
61 Returns BPS for Business Policy Switch
62
63 For others extracts and returns the switch numeric designation.
64
65 $baystack->os()
66 Returns 'baystack' or 'boss' depending on software version.
67
68 $baystack->os_bin()
69 Returns the firmware version extracted from "sysDescr".
70
71 $baystack->stp_ver()
72 Returns the particular STP version running on this device.
73
74 Values: "nortelStpg", "pvst", "rstp", "mstp", "ieee8021d"
75
76 ("s5AgSysSpanningTreeOperMode")
77
78 Overrides
79 $baystack->index_factor()
80 Required by SNMP::Info::SONMP. Number representing the number of
81 ports reserved per slot within the device MIB.
82
83 Index factor on the Baystack switches are determined by the
84 formula: Index Factor = 64 if (model = 470 or (os eq 'boss' and
85 operating in pure mode)) or else Index factor = 32.
86
87 Returns either 32 or 64 based upon the formula.
88
89 Global Methods imported from SNMP::Info::SONMP
90 See "GLOBALS" in SNMP::Info::SONMP for details.
91
92 Globals imported from SNMP::Info::NortelStack
93 See "GLOBALS" in SNMP::Info::NortelStack for details.
94
95 Global Methods imported from SNMP::Info::RapidCity
96 See "GLOBALS" in SNMP::Info::RapidCity for details.
97
98 Globals imported from SNMP::Info::Layer3
99 See "GLOBALS" in SNMP::Info::Layer3 for details.
100
102 These are methods that return tables of information in the form of a
103 reference to a hash.
104
105 Overrides
106 $baystack->interfaces()
107 Returns reference to the map between IID and physical Port.
108
109 Slot and port numbers on the Baystack switches are determined by the
110 formula:
111
112 port = (Interface index % Index factor)
113 slot = (int(Interface index / Index factor)) + Slot offset
114
115 The physical port name is returned as slot.port.
116
117 $baystack->i_mac()
118 Returns the "ifPhysAddress" table entries.
119
120 Removes all entries matching '00:00:00:00:00:00' -- Certain
121 revisions of Baystack firmware report all zeros for each port mac.
122
123 $baystack->i_name()
124 Crosses "ifName" with "ifAlias" and returns the human set port name
125 if exists.
126
127 $baystack->peth_port_ifindex()
128 Maps the "pethPsePortTable" to "ifIndex" by way of the ENTITY-MIB.
129
130 $baystack->peth_port_power()
131 Power supplied by PoE ports, in milliwatts
132
133 ("bspePethPsePortExtMeasuredPower")
134
135 ENTITY-MIB Information
136 For older devices which do not support ENTITY-MIB, these methods
137 emulate Physical Table methods using S5-CHASSIS-MIB. See "TABLE
138 METHODS" in SNMP::Info::NortelStack for details on ns_e_* methods.
139
140 $baystack->e_index()
141 If the device doesn't support "entPhysicalDescr", this will try
142 ns_e_index(). Note that this is based on "entPhysicalDescr" due to
143 implementation details of SNMP::Info::Entity::e_index().
144
145 $baystack->e_class()
146 If the device doesn't support "entPhysicalClass", this will try
147 ns_e_class().
148
149 $baystack->e_descr()
150 If the device doesn't support "entPhysicalDescr", this will try
151 ns_e_descr().
152
153 $baystack->e_name()
154 If the device doesn't support "entPhysicalName", this will try
155 ns_e_name().
156
157 $baystack->e_fwver()
158 If the device doesn't support "entPhysicalFirmwareRev", this will
159 try ns_e_fwver().
160
161 $baystack->e_hwver()
162 If the device doesn't support "entPhysicalHardwareRev", this will
163 try ns_e_hwver().
164
165 $baystack->e_parent()
166 If the device doesn't support "entPhysicalContainedIn", this will
167 try ns_e_parent().
168
169 $baystack->e_pos()
170 If the device doesn't support "entPhysicalParentRelPos", this will
171 try ns_e_pos().
172
173 $baystack->e_serial()
174 If the device doesn't support "entPhysicalSerialNum", this will try
175 ns_e_serial().
176
177 $baystack->e_swver()
178 If the device doesn't support "entPhysicalSoftwareRev", this will
179 try ns_e_swver().
180
181 $baystack->e_type()
182 If the device doesn't support "entPhysicalVendorType", this will
183 try ns_e_type().
184
185 $baystack->e_vendor()
186 If the device doesn't support "entPhysicalMfgName", this will try
187 ns_e_vendor().
188
189 Layer 2 Forwarding Database
190 These methods try to obtain the layer 2 forwarding database entries via
191 the normal bridge methods as well as SPBM entries via rapid city
192 methods.
193
194 $baystack->fw_mac()
195 Returns reference to hash of forwarding table MAC Addresses
196
197 $baystack->fw_port()
198 Returns reference to hash of forwarding table entries port
199 interface identifier (iid)
200
201 $baystack->qb_fw_vlan()
202 Returns reference to hash of forwarding table entries VLAN ID
203
204 $baystack->fw_status()
205 Returns reference to hash of forwarding table entries status
206
207 Table Methods imported from SNMP::Info::SONMP
208 See "TABLE METHODS" in SNMP::Info::SONMP for details.
209
210 Table Methods imported from SNMP::Info::NortelStack
211 See "TABLE METHODS" in SNMP::Info::NortelStack for details.
212
213 Table Methods imported from SNMP::Info::RapidCity
214 See "TABLE METHODS" in SNMP::Info::RapidCity for details.
215
216 Table Methods imported from SNMP::Info::Layer3
217 See "TABLE METHODS" in SNMP::Info::Layer3 for details.
218
219
220
221perl v5.36.0 2022-07-22 SNMP::Info::Layer2::Baystack(3)