s5AgMyIfTable
)s5ChasComTable
)s5ChasStoreTable
)
SNMP::Info::NortelStack - SNMP Interface to the Nortel S5-AGENT-MIB and S5-CHASSIS-MIB
Eric Miller
# Let SNMP::Info determine the correct subclass for you. my $stack = new SNMP::Info( AutoSpecify => 1, Debug => 1, # These arguments are passed directly on to SNMP::Session DestHost => 'myswitch', Community => 'public', Version => 2 ) or die "Can't connect to DestHost.\n";
my $class = $stack->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
SNMP::Info::NortelStack is a subclass of SNMP::Info that provides an interface to S5-AGENT-MIB and S5-CHASSIS-MIB. These MIBs are used across the Nortel Stackable Ethernet Switches (BayStack), as well as, older Nortel devices such as the Centillion family of ATM switches.
Use or create in a subclass of SNMP::Info. Do not use directly.
None.
These are methods that return scalar values from SNMP
os_ver()
Returns the software version extracted from (s5AgInfoVer
)
os_bin()
Returns the firmware version extracted from (s5AgInfoVer
)
serial()
Returns serial number of the chassis
(s5ChasSerNum
)
ns_ag_ver()
Returns the version of the agent in the form 'major.minor.maintenance[letters]'.
(s5AgInfoVer
)
ns_op_mode()
Returns the stacking mode.
(s5AgSysCurrentOperationalMode
)
tftp_action()
This object is used to download or upload a config file or an image file.
(s5AgInfoFileAction
)
tftp_result()
Returns the status of the latest action as shown by $stack->tftp_action().
(s5AgInfoFileStatus
)
ns_auto_pvid()
Returns the value indicating whether adding a port as a member of a VLAN automatically results in its PVID being set to be the same as that VLAN ID.
(s5AgSysAutoPvid
)
tftp_file()
Name of the binary configuration file that will be downloaded/uploaded when
the $stack->tftp_action()
object is set.
(s5AgSysBinaryConfigFilename
)
tftp_host()
The IP address of the TFTP server for all TFTP operations.
(s5AgSysTftpServerAddress
)
vlan()
Returns the VLAN ID of the system's management VLAN.
(s5AgSysManagementVlanId
)
ch_ser()
Returns the serial number of the chassis.
(s5ChasSerNum
)
ns_cfg_chg()
Returns the total number of configuration changes (other than attachment changes, or physical additions or removals) in the chassis that have been detected since cold/warm start.
(s5ChasGblConfChngs
)
ns_cfg_time()
Returns the value of sysUpTime
when the last configuration change (other
than attachment changes, or physical additions or removals) in the chassis
was detected.
(s5ChasGblConfLstChng
)
These are methods that return tables of information in the form of a reference to a hash.
s5AgMyIfTable
)i_cfg_file()
Returns reference to hash. Key: Table entry, Value: Name of the file
(s5AgMyIfCfgFname
)
i_cfg_host()
Returns reference to hash. Key: Table entry, Value: IP address of the load server
(s5AgMyIfLdSvrAddr
)
s5ChasComTable
)ns_com_grp_idx()
Returns reference to hash. Key: Table entry, Value: Index of the chassis level group which contains this component.
(s5ChasComGrpIndx
)
ns_com_idx()
Returns reference to hash. Key: Table entry, Value: Index of the component in the group. For modules in the 'board' group, this is the slot number.
(s5ChasComIndx
)
ns_com_sub_idx()
Returns reference to hash. Key: Table entry, Value: Index of the sub-component in the component.
(s5ChasComSubIndx
)
ns_com_type()
Returns reference to hash. Key: Table entry, Value: Type
(s5ChasComType
)
ns_com_descr()
Returns reference to hash. Key: Table entry, Value: Description
(s5ChasComDescr
)
ns_com_ver()
Returns reference to hash. Key: Table entry, Value: Version
(s5ChasComVer
)
ns_com_serial()
Returns reference to hash. Key: Table entry, Value: Serial Number
(s5ChasComSerNum
)
s5ChasStoreTable
)ns_store_grp_idx()
Returns reference to hash. Key: Table entry, Value: Index of the chassis level group.
(s5ChasStoreGrpIndx
)
ns_store_idx()
Returns reference to hash. Key: Table entry, Value: Index of the group.
(s5ChasStoreComIndx
)
ns_store_sub_idx()
Returns reference to hash. Key: Table entry, Value: Index of the sub-component.
(s5ChasStoreSubIndx
)
ns_store_idx()
Returns reference to hash. Key: Table entry, Value: Index of the storage area.
(s5ChasStoreIndx
)
ns_store_type()
Returns reference to hash. Key: Table entry, Value: Type
(s5ChasStoreType
)
ns_store_size()
Returns reference to hash. Key: Table entry, Value: Size
(s5ChasStoreCurSize
)
ns_store_ver()
Returns reference to hash. Key: Table entry, Value: Version
(s5ChasStoreCntntVer
)
These methods emulate ENTITY-MIB Physical Table methods using S5-CHASSIS-MIB.
ns_e_index()
Returns reference to hash. Key: IID, Value: Integer, Indices are combined into a six digit integer, each index is two digits padded with leading zero if required.
ns_e_class()
Returns reference to hash. Key: IID, Value: General hardware type
(s5ChasGrpDescr
).
Group is stripped from the string. Values may be Supervisory Module, Back Plane, Board, Power Supply, Sensor, Fan, Clock, Unit.
ns_e_descr()
Returns reference to hash. Key: IID, Value: Human friendly name
(s5ChasComDescr
)
ns_e_name()
Returns reference to hash. Key: IID, Value: Human friendly name
ns_e_hwver()
Returns reference to hash. Key: IID, Value: Hardware version
(s5ChasComVer
)
ns_e_vendor()
Returns reference to hash. Key: IID, Value: nortel
ns_e_serial()
Returns reference to hash. Key: IID, Value: Serial number
(s5ChasComSerNum
)
ns_e_pos()
Returns reference to hash. Key: IID, Value: The relative position among all entities sharing the same parent.
(s5ChasComSubIndx
)
ns_e_type()
Returns reference to hash. Key: IID, Value: Type of component/sub-component
as defined under s5ChasComTypeVal
in S5-REG-MIB.
ns_e_fwver()
Returns reference to hash. Key: IID, Value: Firmware revision.
Value of s5ChasStoreCntntVer
for entries with rom, boot, or firmware in
s5ChasStoreType
.
ns_e_swver()
Returns reference to hash. Key: IID, Value: Software revision.
Value of s5ChasStoreCntntVer
for entries with ``flash'' in
s5ChasStoreType
.
ns_e_parent()
Returns reference to hash. Key: IID, Value: The value of ns_e_index()
for the
entity which 'contains' this entity. A value of zero indicates this entity
is not contained in any other entity.
munge_ns_grp_type()
Munges s5ChasGrpType
into an ENTITY-MIB PhysicalClass
equivalent.