NAME

SNMP::Info::Layer3::Foundry - Perl5 Interface to Foundry Network Devices

DESCRIPTION

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

AUTHOR

Max Baker (max@warped.org)

SYNOPSIS

my $foundry = new SNMP::Info::Layer3::Foundry(DestHost  => 'switch' , 
                             Community => 'public' ); 

CREATING AN OBJECT

new SNMP::Info::Layer3::Foundry()

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;
$foundry->session()

Sets or returns the SNMP::Session object

# Get
my $sess = $foundry->session();

# Set
my $newsession = new SNMP::Session(...);
$foundry->session($newsession);

GLOBAL VALUES

$foundry->model()
Returns model type.  Checks $foundry->id() against the 
FOUNDRY-SN-ROOT-MIB and then parses out xxNNNN
$foundry->vendor()
Returns 'foundry' :)
$foundry->mac()
Returns MAC Address of root port.

(B<ifPhysAddress.1>)
$foundry->chassis()
Returns Chassis type.

(B<entPhysicalDescr.1>)
$foundry->serial()
Returns serial number of device.

(B<snChasSerNum>)
$foundry->temp()
Returns the chassis temperature

(B<snChasActualTemperature>)
$foundry->ps1_type()
Returns the Description for the power supply

(B<snChasPwrSupplyDescription.1>)
$foundry->ps1_status()
Returns the status of the power supply.

(B<snChasPwrSupplyOperStatus.1>)
$foundry->fan()
Returns the status of the chassis fan.

(B<snChasFanOperStatus.1>)

TABLE ENTRIES

Overrides

$foundry->interfaces()
Returns reference to hash of interface names to iids.

Uses B<ifDescr>.
$foundry->i_name()
Returns reference to hash of interface names.  
Trys for B<ifAlias> and Defaults to B<ifName>
$foundry->i_ignore()
Returns reference to hash of interfaces to be ignored.

Ignores interfaces with descriptions of  tunnel,loopback,null 
$foundry->i_duplex()
Returns reference to hash of interface link duplex status. 

Crosses $foundry->sw_duplex() with $foundry->sw_index()
$foundry->i_type()
Returns reference to hash of interface types.

Crosses $foundry->sw_type() with $foundry->sw_index()
$foundry->i_speed()
Returns reference to hash of interface speeds .

Crosses $foundry->sw_speeD() with $foundry->sw_index() and 
does a little munging.

RFC1213 Arp Cache Table (ipNetToMediaTable)

$foundry->at_index()
Returns reference to hash.  Maps ARP table entries to Interface IIDs 

(B<ipNetToMediaIfIndex>)
$foundry->at_paddr()
Returns reference to hash.  Maps ARP table entries to MAC addresses. 

 (B<ipNetToMediaPhysAddress>)
$foundry->at_netaddr()
Returns reference to hash.  Maps ARP table entries to IPs 

 (B<ipNetToMediaNetAddress>)

Foundry Switch Port Information Table (snSwPortIfTable)

$foundry->sw_index()
Returns reference to hash.  Maps Table to Interface IID. 

(B<snSwPortIfIndex>)
$foundry->sw_duplex()
Returns reference to hash.   Current duplex status for switch ports. 

 (B<snSwPortInfoChnMode>)
$foundry->sw_type()
Returns reference to hash.  Current Port Type .

(B<snSwPortInfoMediaType>)
$foundry->sw_speed()
Returns reference to hash.  Current Port Speed. 

 (B<snSwPortInfoSpeed>)