SNMP::Info::Layer1::Cyclades - SNMP Interface to Cyclades terminal servers
Eric Miller
#Let SNMP::Info determine the correct subclass for you.
my $cyclades = new SNMP::Info( AutoSpecify => 1, Debug => 1, # These arguments are passed directly to SNMP::Session DestHost => 'myswitch', Community => 'public', Version => 2 )
or die "Can't connect to DestHost.\n";
my $class = $cyclades->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
Provides abstraction to the configuration information obtainable from a Cyclades 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 $cyclades = new SNMP::Info::Layer1::Cyclades(...);
See Required MIBs in the SNMP::Info::Layer1 manpage for its MIB requirements.
These are methods that return scalar value from SNMP
os_ver()
(cyACSversion
)
serial()
(cyACSDevId
)
root_ip()
(cyEthIPaddr
)
ps1_status()
(cyACSPw1
)
ps2_status()
(cyACSPw2
)
layers()
Returns 01000001. These devices don't have a FDB and we probably don't want to poll for an ARP cache so turn off reported Layer 2 and Layer 3.
vendor()
Returns 'cyclades'
os()
Returns 'cyclades'
model()
Returns lower case (cyACSpname
)
See GLOBALS in the SNMP::Info::Layer1 manpage for details.
These are methods that return tables of information in the form of a reference to a hash.
i_index()
Returns reference to map of IIDs to Interface index.
Extended to include serial ports. Serial ports are indexed with the
alternative labeling system for the serial port, the listening socket port
cySPortSocketPort
to avoid conflicts with ifIndex
.
interfaces()
Returns reference to map of IIDs to physical ports. Extended to include
serial ports, cyISPortTty
.
i_speed()
Returns interface speed. Extended to include serial ports, cyISPortSpeed
.
i_up()
Returns link status for each port. Extended to include serial ports,
cyISPortSigCD
.
i_description()
Returns description of each port. Extended to include serial ports,
cyISPortName
.
i_name()
Returns name of each port. Extended to include serial ports, cyISPortName
.
See TABLE METHODS in the SNMP::Info::Layer1 manpage for details.