SNMP::Info::Layer3::Foundry - Perl5 Interface to Foundry FastIron Network Devices
Max Baker (max@warped.org)
# Let SNMP::Info determine the correct subclass for you.
my $foundry = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
# These arguments are passed directly on to SNMP::Session
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 subclass no longer supported.
This module provides limited functionality from older Foundry devices.
Specifically designed for a FI4802.
For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above. Turn off the AutoSpecify flag.
my $foundry = new SNMP::Info::Layer3::Foundry(...);
The Foundry MIBS can be downloaded from www.mibdepot.com and ??
These are methods that return scalar value from SNMP
model()id() against the
FOUNDRY-SN-ROOT-MIB and then parses out xxNNNN
vendor()mac()(ifPhysAddress.1)
chassis()(entPhysicalDescr.1)
serial()(snChasSerNum)
temp()(snChasActualTemperature)
ps1_type()(snChasPwrSupplyDescription.1)
ps1_status()(snChasPwrSupplyOperStatus.1)
fan()(snChasFanOperStatus.1)
See documentation in SNMP::Info for details.
See documentation in SNMP::Info::Bridge for details.
These are methods that return tables of information in the form of a reference to a hash.
interfaces()Uses ifDescr.
i_name()i_ignore()Ignores interfaces with descriptions of tunnel,loopback,null
i_duplex()Crosses $foundry->sw_duplex() with $foundry->sw_index()
i_type()Crosses $foundry->sw_type() with $foundry->sw_index()
i_speed()Crosses $foundry->sw_speeD() with $foundry->sw_index() and
does a little munging.
at_index()(ipNetToMediaIfIndex)
at_paddr()(ipNetToMediaPhysAddress)
at_netaddr()(ipNetToMediaNetAddress)
sw_index()(snSwPortIfIndex)
sw_duplex()(snSwPortInfoChnMode)
sw_type()(snSwPortInfoMediaType)
sw_speed()(snSwPortInfoSpeed)
See documentation in SNMP::Info for details.
See documentation in SNMP::Info::Bridge for details.