SNMP::Info::Layer1::Asante - SNMP Interface to old Asante 1012 Hubs
Max Baker
# Let SNMP::Info determine the correct subclass for you. my $asante = new SNMP::Info( AutoSpecify => 1, Debug => 1, DestHost => 'myswitch', Community => 'public', Version => 2 ) or die "Can't connect to DestHost.\n";
my $class = $asante->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
Provides abstraction to the configuration information obtainable from a Asante device through SNMP.
See Required MIBs in the SNMP::Info::Layer1 manpage for its MIB requirements.
os()
Returns 'asante'
os_ver()
Culls software version from description()
vendor()
Returns 'asante' :)
model()
Cross references $asante->id()
to the ASANTE-HUB1012-MIB and returns
the results.
See GLOBALS in the SNMP::Info::Layer1 manpage for details.
interfaces()
Returns reference to the map between IID and physical Port.
i_description()
Description of the interface.
i_mac()
MAC address of the interface. Note this is just the MAC of the port, not anything connected to it.
i_name()
Returns reference to map of IIDs to human-set port name.
i_up()
Returns reference to map of IIDs to link status. Changes
the values of asante_up()
to 'up' and 'down'.
i_speed()
Speed of the link, human format.
ati_p_name()
(portName
)
ati_up()
(linkTestLED
)
See TABLE METHODS in the SNMP::Info::Layer1 manpage for details.