The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

AUTHOR

Max Baker (max@warped.org)

SYNOPSIS

 # 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";

DESCRIPTION

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(...);

Inherited Classes

SNMP::Info
SNMP::Info::Bridge

Required MIBs

FOUNDRY-SN-ROOT-MIB
Inherited Classes' MIBs

See classes listed above for their required MIBs.

The Foundry MIBS can be downloaded from www.mibdepot.com and ??

GLOBALS

These are methods that return scalar value from SNMP

$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.

(ifPhysAddress.1)

$foundry->chassis()

Returns Chassis type.

(entPhysicalDescr.1)

$foundry->serial()

Returns serial number of device.

(snChasSerNum)

$foundry->temp()

Returns the chassis temperature

(snChasActualTemperature)

$foundry->ps1_type()

Returns the Description for the power supply

(snChasPwrSupplyDescription.1)

$foundry->ps1_status()

Returns the status of the power supply.

(snChasPwrSupplyOperStatus.1)

$foundry->fan()

Returns the status of the chassis fan.

(snChasFanOperStatus.1)

Globals imported from SNMP::Info

See documentation in SNMP::Info for details.

Globals imported from SNMP::Info::Bridge

See documentation in SNMP::Info::Bridge for details.

TABLE ENTRIES

These are methods that return tables of information in the form of a reference to a hash.

Overrides

$foundry->interfaces()

Returns reference to hash of interface names to iids.

Uses ifDescr.

$foundry->i_name()

Returns reference to hash of interface names. Trys for ifAlias and Defaults to 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

(ipNetToMediaIfIndex)

$foundry->at_paddr()

Returns reference to hash. Maps ARP table entries to MAC addresses.

(ipNetToMediaPhysAddress)

$foundry->at_netaddr()

Returns reference to hash. Maps ARP table entries to IPs

(ipNetToMediaNetAddress)

Foundry Switch Port Information Table (snSwPortIfTable)

$foundry->sw_index()

Returns reference to hash. Maps Table to Interface IID.

(snSwPortIfIndex)

$foundry->sw_duplex()

Returns reference to hash. Current duplex status for switch ports.

(snSwPortInfoChnMode)

$foundry->sw_type()

Returns reference to hash. Current Port Type .

(snSwPortInfoMediaType)

$foundry->sw_speed()

Returns reference to hash. Current Port Speed.

(snSwPortInfoSpeed)

Table Methods imported from SNMP::Info

See documentation in SNMP::Info for details.

Table Methods imported from SNMP::Info::Bridge

See documentation in SNMP::Info::Bridge for details.