SNMP::Info::Layer2::Foundry - SNMP Interface to Foundry FastIron Network Devices
Max Baker
This module is Deprecated. Please use Layer3::Foundry instead.
# Let SNMP::Info determine the correct subclass for you.
my $foundry = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myswitch',
Community => 'public',
Version => 1
)
or die "Can't connect to DestHost.\n";
my $class = $foundry->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
This module is Deprecated. Please use Layer3::Foundry instead.
This module provides support for Foundry EdgeIron Switches
See classes listed above for their required MIBs.
These are methods that return scalar value from SNMP
model()
Returns model type.
vendor()
Returns 'foundry'
os()
Returns 'foundry'
os_ver()
Returns the software version
serial()
Returns the serial number
See documentation in GLOBALS in the SNMP::Info::Layer2 manpage for details.
See documentation in GLOBALS in the SNMP::Info::FDP manpage for details.
These are methods that return tables of information in the form of a reference to a hash.
interfaces()
Returns reference to hash of interface names to iids.
i_ignore()
Returns reference to hash of interfaces to be ignored.
Ignores interfaces with descriptions of tunnel,loopback,null
i_duplex()
Returns reference to hash of interface link duplex status.
Crosses $foundry->sw_duplex() with $foundry->sw_index()
i_duplex_admin()
Returns reference to hash of interface administrative duplex status.
stp_p_state()
``The port's current state as defined by application of the Spanning Tree Protocol.
Skipped if device is an EdgeIron 24G due to reports of hangs.
(dot1dStpPortState)
i_vlan()
Returns a mapping between ifIndex and the PVID or default VLAN.
See documentation in TABLE METHODS in the SNMP::Info::Layer2 manpage for details.
See documentation in TABLE METHODS in the SNMP::Info::FDP manpage for details.