SNMP::Info::Layer2::Centillion - SNMP Interface to Nortel Centillion based ATM Switches
Eric Miller
# Let SNMP::Info determine the correct subclass for you.
my $centillion = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $centillion->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
Provides abstraction to the configuration information obtainable from a Centillion device through SNMP.
For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above.
my $centillion = new SNMP::Info::Layer2::centillion(...); Note: This class supports version 4.X and 5.X which are VLAN based rather than bridge group based.
See Required MIBs in the SNMP::Info manpage for its own MIB requirements.
See Required MIBs in the SNMP::Info::Bridge manpage for its own MIB requirements.
See Required MIBs in the SNMP::Info::NortelStack manpage for its own MIB requirements.
See Required MIBs in the SNMP::Info::SONMP manpage for its own MIB requirements.
These are methods that return scalar value from SNMP
vendor()
Returns 'Nortel'
model()
Cross references $centillion->id() to the SYNOPTICS-MIB and returns
the results.
Removes sreg- from the model name
os()
Returns 'Centillion'
tftp_action()
(sysTFTPStart)
tftp_host()
(sysTFTPIpAddress)
tftp_file()
(sysTFTPFileName)
tftp_type()
(sysTFTPFileType)
tftp_result()
(sysTFTPResult)
layers()
Returns 00000011. Class emulates Layer 2 functionality through proprietary MIBs.
index_factor()
Required by SNMP::Info::SONMP. Number representing the number of ports reserved per slot within the device MIB. Returns 256.
slot_offset()
Required by SNMP::Info::SONMP. Offset if slot numbering does not start at 0. Returns 0.
See documentation in GLOBALS in the SNMP::Info manpage for details.
See documentation in GLOBALS in the SNMP::Info::Bridge manpage for details.
See documentation in GLOBALS in the SNMP::Info::NortelStack manpage for details.
See documentation in GLOBALS in the SNMP::Info::SONMP manpage for details.
These are methods that return tables of information in the form of a reference to a hash.
interfaces()
Returns reference to the map between IID and physical Port.
Slot and port numbers on the Passport switches are determined by the
formula:
port = index % 256
slot = int(index / 256)
The physical port name is returned as slot.port.
i_duplex()
Returns reference to map of IIDs to current link duplex
i_duplex_admin()
Returns reference to hash of IIDs to admin duplex setting
i_ignore()
Returns reference to hash of IIDs to ignore.
fw_mac()
(s5CmSNodeMacAddr)
fw_port()
(s5CmSNodeIfIndx)
bp_index()
Returns a mapping between ifIndex and the Bridge Table.
i_vlan()
Returns a mapping between ifIndex and the VLAN.
cnDot3ExtnTable)centillion_p_index()
Returns reference to hash. Maps table IIDs to Interface IIDs
(cnDot3ExtnIfIndex)
centillion_p_duplex()
Returns reference to hash. Maps port operational duplexes to IIDs
(cnDot3ExtnIfOperConnectionType)
rc_centillion_p_duplex_admin()
Returns reference to hash. Maps port admin duplexes to IIDs
(cnDot3ExtnIfAdminConnectionType)
cnVlanPortMemberTable)centillion_i_vlan_index()
Returns reference to hash. Key: Table entry, Value: Index
(cnVlanPortMemberIfIndex)
centillion_i_vlan()
Returns reference to hash. Key: Table entry, Value: VLAN ID
(cnVlanPortMemberVID)
centillion_i_vlan_type()
Returns reference to hash. Key: Table entry, Value: VLAN Type
(cnVlanPortMemberIngressType)
See documentation in TABLE METHODS in the SNMP::Info manpage for details.
See documentation in TABLE METHODS in the SNMP::Info::Bridge manpage for details.
See documentation in TABLE METHODS in the SNMP::Info::NortelStack manpage for details.
See documentation in TABLE METHODS in the SNMP::Info::SONMP manpage for details.