SNMP::Info::Layer3::Arista - SNMP Interface to Arista Networks EOS
Bill Fenner
# Let SNMP::Info determine the correct subclass for you. my $arista = 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 = $arista->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
Subclass for Arista Networks EOS-based devices
See Required MIBs in the SNMP::Info::Layer3 manpage for its own MIB requirements.
See Required MIBs in the SNMP::Info::MAU manpage for its own MIB requirements.
See Required MIBs in the SNMP::Info::LLDP manpage for its own MIB requirements.
These are methods that return scalar values from SNMP
vendor()
Returns 'Arista Networks, Inc.'
hasCDP()
Returns whether LLDP is enabled.
model()
Tries to reference $arista->id()
to one of the product MIBs listed above
Removes 'arista' from the name for readability.
os()
Returns 'EOS'
os_ver()
Grabs the os version from sysDescr
See documentation in GLOBALS in the SNMP::Info::Layer3 manpage for details.
See documentation in GLOBALS in the SNMP::Info::MAU manpage for details.
See documentation in GLOBALS in the SNMP::Info::Layer3 manpage for details.
These are methods that return tables of information in the form of a reference to a hash.
fw_mac()
Use the Q-BRIDGE-MIB instead of BRIDGE-MIB
fw_port()
Use the Q-BRIDGE-MIB instead of BRIDGE-MIB
c_id()
Returns LLDP information.
c_if()
Returns LLDP information.
c_ip()
Returns LLDP information.
c_platform()
Returns LLDP information.
c_port()
Returns LLDP information.
i_duplex_admin()
Returns info from MAU-MIB
i_speed_admin()
Returns info from MAU-MIB
See documentation in TABLE METHODS in the SNMP::Info::Layer3 manpage for details.
See documentation in TABLE METHODS in the SNMP::Info::MAU manpage for details.
See documentation in TABLE METHODS in the SNMP::Info::LLDP manpage for details.