SNMP::Info::NortelStack - SNMP Interface to the Avaya/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 Avaya/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
Returns the software version extracted from (s5AgInfoVer)
s5AgInfoVer
Returns the firmware version extracted from (s5AgInfoVer)
Returns serial number of the chassis
(s5ChasSerNum)
s5ChasSerNum
Returns the version of the agent in the form 'major.minor.maintenance[letters]'.
(s5AgInfoVer)
Returns the stacking mode.
(s5AgSysCurrentOperationalMode)
s5AgSysCurrentOperationalMode
This object is used to download or upload a config file or an image file.
(s5AgInfoFileAction)
s5AgInfoFileAction
Returns the status of the latest action as shown by $stack->tftp_action().
(s5AgInfoFileStatus)
s5AgInfoFileStatus
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)
s5AgSysAutoPvid
Name of the binary configuration file that will be downloaded/uploaded when the $stack->tftp_action() object is set.
(s5AgSysBinaryConfigFilename)
s5AgSysBinaryConfigFilename
The IP address of the TFTP server for all TFTP operations.
(s5AgSysTftpServerAddress)
s5AgSysTftpServerAddress
Returns the VLAN ID of the system's management VLAN.
(s5AgSysManagementVlanId)
s5AgSysManagementVlanId
Returns the serial number of the chassis.
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)
s5ChasGblConfChngs
Returns the value of sysUpTime when the last configuration change (other than attachment changes, or physical additions or removals) in the chassis was detected.
sysUpTime
(s5ChasGblConfLstChng)
s5ChasGblConfLstChng
These are methods that return tables of information in the form of a reference to a hash.
s5AgMyIfTable
Returns reference to hash. Key: Table entry, Value: Name of the file
(s5AgMyIfCfgFname)
s5AgMyIfCfgFname
Returns reference to hash. Key: Table entry, Value: IP address of the load server
(s5AgMyIfLdSvrAddr)
s5AgMyIfLdSvrAddr
s5ChasComTable
Returns reference to hash. Key: Table entry, Value: Index of the chassis level group which contains this component.
(s5ChasComGrpIndx)
s5ChasComGrpIndx
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)
s5ChasComIndx
Returns reference to hash. Key: Table entry, Value: Index of the sub-component in the component.
(s5ChasComSubIndx)
s5ChasComSubIndx
Returns reference to hash. Key: Table entry, Value: Type
(s5ChasComType)
s5ChasComType
Returns reference to hash. Key: Table entry, Value: Description
(s5ChasComDescr)
s5ChasComDescr
Returns reference to hash. Key: Table entry, Value: Version
(s5ChasComVer)
s5ChasComVer
Returns reference to hash. Key: Table entry, Value: Serial Number
(s5ChasComSerNum)
s5ChasComSerNum
s5ChasStoreTable
Returns reference to hash. Key: Table entry, Value: Index of the chassis level group.
(s5ChasStoreGrpIndx)
s5ChasStoreGrpIndx
Returns reference to hash. Key: Table entry, Value: Index of the group.
(s5ChasStoreComIndx)
s5ChasStoreComIndx
Returns reference to hash. Key: Table entry, Value: Index of the sub-component.
(s5ChasStoreSubIndx)
s5ChasStoreSubIndx
Returns reference to hash. Key: Table entry, Value: Index of the storage area.
(s5ChasStoreIndx)
s5ChasStoreIndx
(s5ChasStoreType)
s5ChasStoreType
Returns reference to hash. Key: Table entry, Value: Size
(s5ChasStoreCurSize)
s5ChasStoreCurSize
(s5ChasStoreCntntVer)
s5ChasStoreCntntVer
These methods emulate ENTITY-MIB Physical Table methods using S5-CHASSIS-MIB.
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.
Returns reference to hash. Key: IID, Value: General hardware type (s5ChasGrpDescr).
s5ChasGrpDescr
Group is stripped from the string. Values may be Supervisory Module, Back Plane, Board, Power Supply, Sensor, Fan, Clock, Unit.
Returns reference to hash. Key: IID, Value: Human friendly name
Returns reference to hash. Key: IID, Value: Hardware version
Returns reference to hash. Key: IID, Value: avaya
Returns reference to hash. Key: IID, Value: Serial number
Returns reference to hash. Key: IID, Value: The relative position among all entities sharing the same parent.
Returns reference to hash. Key: IID, Value: Type of component/sub-component as defined under s5ChasComTypeVal in S5-REG-MIB.
s5ChasComTypeVal
Returns reference to hash. Key: IID, Value: Firmware revision.
Value of s5ChasStoreCntntVer for entries with rom, boot, or firmware in s5ChasStoreType.
Returns reference to hash. Key: IID, Value: Software revision.
Value of s5ChasStoreCntntVer for entries with "flash" in s5ChasStoreType.
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.
Munges s5ChasGrpType into an ENTITY-MIB PhysicalClass equivalent.
s5ChasGrpType
ENTITY-MIB PhysicalClass
To install SNMP::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SNMP::Info
CPAN shell
perl -MCPAN -e shell install SNMP::Info
For more information on module installation, please visit the detailed CPAN module installation guide.