SNMP::Info::Layer3::Foundry - Perl5 Interface to Foundry FastIron Network Devices
Max Baker (max@warped.org)
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(...);
See classes listed above for their required MIBs.
The Foundry MIBS can be downloaded from www.mibdepot.com and ??
These are methods that return scalar value from SNMP
Returns model type. Checks $foundry->id() against the FOUNDRY-SN-ROOT-MIB and then parses out xxNNNN
Returns 'foundry' :)
Returns MAC Address of root port.
(ifPhysAddress.1)
Returns Chassis type.
(entPhysicalDescr.1)
Returns serial number of device.
(snChasSerNum)
Returns the chassis temperature
(snChasActualTemperature)
Returns the Description for the power supply
(snChasPwrSupplyDescription.1)
Returns the status of the power supply.
(snChasPwrSupplyOperStatus.1)
Returns the status of the chassis 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.
Returns reference to hash of interface names to iids.
Uses ifDescr.
Returns reference to hash of interface names. Trys for ifAlias and Defaults to ifName
Returns reference to hash of interfaces to be ignored.
Ignores interfaces with descriptions of tunnel,loopback,null
Returns reference to hash of interface link duplex status.
Crosses $foundry->sw_duplex() with $foundry->sw_index()
Returns reference to hash of interface types.
Crosses $foundry->sw_type() with $foundry->sw_index()
Returns reference to hash of interface speeds .
Crosses $foundry->sw_speeD() with $foundry->sw_index() and does a little munging.
Returns reference to hash. Maps ARP table entries to Interface IIDs
(ipNetToMediaIfIndex)
Returns reference to hash. Maps ARP table entries to MAC addresses.
(ipNetToMediaPhysAddress)
Returns reference to hash. Maps ARP table entries to IPs
(ipNetToMediaNetAddress)
Returns reference to hash. Maps Table to Interface IID.
(snSwPortIfIndex)
Returns reference to hash. Current duplex status for switch ports.
(snSwPortInfoChnMode)
Returns reference to hash. Current Port Type .
(snSwPortInfoMediaType)
Returns reference to hash. Current Port Speed.
(snSwPortInfoSpeed)
To install SNMP::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SNMP::Info
CPAN shell
perl -MCPAN -e shell install SNMP::Info
For more information on module installation, please visit the detailed CPAN module installation guide.