SNMP::Info::Layer3::Foundry - Perl5 Interface to Foundry Network Devices
This module provides limited functionality from older Foundry devices. Specifically designed for a FI4802
Data comes RFC1213 and FOUNDRY-SN-ROOT-MIB
Inherits all methods from both SNMP::Info and SNMP::Info::Bridge
Max Baker (max@warped.org)
max@warped.org
my $foundry = new SNMP::Info::Layer3::Foundry(DestHost => 'switch' , Community => 'public' );
Arguments passed to new() are passed on to SNMP::Session::new()
my $foundry = new SNMP::Info::Layer3::Foundry( DestHost => $host, Community => 'public', Version => 3,... ) die "Couldn't connect.\n" unless defined $foundry;
Sets or returns the SNMP::Session object
# Get my $sess = $foundry->session(); # Set my $newsession = new SNMP::Session(...); $foundry->session($newsession);
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. (B<ifPhysAddress.1>)
Returns Chassis type. (B<entPhysicalDescr.1>)
Returns serial number of device. (B<snChasSerNum>)
Returns the chassis temperature (B<snChasActualTemperature>)
Returns the Description for the power supply (B<snChasPwrSupplyDescription.1>)
Returns the status of the power supply. (B<snChasPwrSupplyOperStatus.1>)
Returns the status of the chassis fan. (B<snChasFanOperStatus.1>)
Returns reference to hash of interface names to iids. Uses B<ifDescr>.
Returns reference to hash of interface names. Trys for B<ifAlias> and Defaults to B<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 (B<ipNetToMediaIfIndex>)
Returns reference to hash. Maps ARP table entries to MAC addresses. (B<ipNetToMediaPhysAddress>)
Returns reference to hash. Maps ARP table entries to IPs (B<ipNetToMediaNetAddress>)
Returns reference to hash. Maps Table to Interface IID. (B<snSwPortIfIndex>)
Returns reference to hash. Current duplex status for switch ports. (B<snSwPortInfoChnMode>)
Returns reference to hash. Current Port Type . (B<snSwPortInfoMediaType>)
Returns reference to hash. Current Port Speed. (B<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.