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_ignore()
118 Returns reference to hash of IIDs to ignore.
119
120 $baystack->i_mac()
121 Returns the "ifPhysAddress" table entries.
122
123 Removes all entries matching '00:00:00:00:00:00' -- Certain
124 revisions of Baystack firmware report all zeros for each port mac.
125
126 $baystack->i_name()
127 Crosses "ifName" with "ifAlias" and returns the human set port name
128 if exists.
129
130 $baystack->peth_port_ifindex()
131 Maps the "pethPsePortTable" to "ifIndex" by way of the ENTITY-MIB.
132
133 $baystack->peth_port_power()
134 Power supplied by PoE ports, in milliwatts
135
136 ("bspePethPsePortExtMeasuredPower")
137
138 ENTITY-MIB Information
139 For older devices which do not support ENTITY-MIB, these methods
140 emulate Physical Table methods using S5-CHASSIS-MIB. See "TABLE
141 METHODS" in SNMP::Info::NortelStack for details on ns_e_* methods.
142
143 $baystack->e_index()
144 If the device doesn't support "entPhysicalDescr", this will try
145 ns_e_index(). Note that this is based on "entPhysicalDescr" due to
146 implementation details of SNMP::Info::Entity::e_index().
147
148 $baystack->e_class()
149 If the device doesn't support "entPhysicalClass", this will try
150 ns_e_class().
151
152 $baystack->e_descr()
153 If the device doesn't support "entPhysicalDescr", this will try
154 ns_e_descr().
155
156 $baystack->e_name()
157 If the device doesn't support "entPhysicalName", this will try
158 ns_e_name().
159
160 $baystack->e_fwver()
161 If the device doesn't support "entPhysicalFirmwareRev", this will
162 try ns_e_fwver().
163
164 $baystack->e_hwver()
165 If the device doesn't support "entPhysicalHardwareRev", this will
166 try ns_e_hwver().
167
168 $baystack->e_parent()
169 If the device doesn't support "entPhysicalContainedIn", this will
170 try ns_e_parent().
171
172 $baystack->e_pos()
173 If the device doesn't support "entPhysicalParentRelPos", this will
174 try ns_e_pos().
175
176 $baystack->e_serial()
177 If the device doesn't support "entPhysicalSerialNum", this will try
178 ns_e_serial().
179
180 $baystack->e_swver()
181 If the device doesn't support "entPhysicalSoftwareRev", this will
182 try ns_e_swver().
183
184 $baystack->e_type()
185 If the device doesn't support "entPhysicalVendorType", this will
186 try ns_e_type().
187
188 $baystack->e_vendor()
189 If the device doesn't support "entPhysicalMfgName", this will try
190 ns_e_vendor().
191
192 Layer 2 Forwarding Database
193 These methods try to obtain the layer 2 forwarding database entries via
194 the normal bridge methods as well as SPBM entries via rapid city
195 methods.
196
197 $baystack->fw_mac()
198 Returns reference to hash of forwarding table MAC Addresses
199
200 $baystack->fw_port()
201 Returns reference to hash of forwarding table entries port
202 interface identifier (iid)
203
204 $baystack->qb_fw_vlan()
205 Returns reference to hash of forwarding table entries VLAN ID
206
207 $baystack->fw_status()
208 Returns reference to hash of forwarding table entries status
209
210 Table Methods imported from SNMP::Info::SONMP
211 See "TABLE METHODS" in SNMP::Info::SONMP for details.
212
213 Table Methods imported from SNMP::Info::NortelStack
214 See "TABLE METHODS" in SNMP::Info::NortelStack for details.
215
216 Table Methods imported from SNMP::Info::RapidCity
217 See "TABLE METHODS" in SNMP::Info::RapidCity for details.
218
219 Table Methods imported from SNMP::Info::Layer3
220 See "TABLE METHODS" in SNMP::Info::Layer3 for details.
221
222
223
224perl v5.32.0 2020-07-28 SNMP::Info::Layer2::Baystack(3)