NAME¶
SNMP::Info::Layer3::Foundry - SNMP Interface to Foundry Network Devices
AUTHOR¶
Max Baker
SYNOPSIS¶
# Let SNMP::Info determine the correct subclass for you.
my $foundry = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
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¶
Abstraction subclass for Foundry Networks devices.
For speed or debugging purposes you can call the subclass directly, but not
after determining a more specific class using the method above.
my $foundry = new SNMP::Info::Layer3::Foundry(...);
Inherited Classes¶
- SNMP::Info::Layer3;
- SNMP::Info::FDP;
- SNMP::Info::LLDP;
Required MIBs¶
- FOUNDRY-SN-ROOT-MIB
- FOUNDRY-SN-AGENT-MIB
- FOUNDRY-SN-SWITCH-GROUP-MIB
- Inherited Classes' MIBs
- See "Required MIBs" in SNMP::Info::Layer3 for its
own MIB requirements.
See "Required MIBs" in SNMP::Info::FDP for its own MIB
requirements.
See "Required MIBs" in SNMP::Info::LLDP for its own MIB
requirements.
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 removes '"sn"'. EdgeIron
models determined through ENTITY-MIB.
- $foundry->vendor()
- Returns 'foundry'
- $foundry->os()
- Returns 'foundry'
- $foundry->os_ver()
- Returns the software version
- $foundry->mac()
- Returns MAC Address of root port.
("ifPhysAddress.1")
- $foundry->chassis()
- Returns Chassis type.
("entPhysicalDescr.1")
- $foundry->serial()
- Returns serial number of device.
- $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")
Global Methods imported from SNMP::Info::Layer3¶
See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
Global Methods imported from SNMP::Info::FDP¶
See documentation in "GLOBALS" in SNMP::Info::FDP for details.
Global Methods imported from SNMP::Info::LLDP¶
See documentation in "GLOBALS" in SNMP::Info::LLDP for details.
TABLE METHODS¶
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.
- $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->stp_p_state()
- "The port's current state as defined by application of
the Spanning Tree Protocol.
Skipped if device is an EdgeIron 24G due to reports of hangs.
("dot1dStpPortState")
- $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")
Based upon the software version devices may support Foundry Discovery Protocol
(FDP) and Link Layer Discovery Protocol (LLDP). These methods will query both
and return the combination of all information. As a result, there may be
identical topology information returned from the two protocols causing
duplicate entries. It is the calling program's responsibility to identify any
duplicate entries and remove duplicates if necessary.
- $foundry->hasCDP()
- Returns true if the device is running either FDP or
LLDP.
- $foundry->c_if()
- Returns reference to hash. Key: iid Value: local device
port (interfaces)
- $foundry->c_ip()
- Returns reference to hash. Key: iid Value: remote IPv4
address
If multiple entries exist with the same local port, c_if(), with the
same IPv4 address, c_ip(), it may be a duplicate entry.
If multiple entries exist with the same local port, c_if(), with
different IPv4 addresses, c_ip(), there is either a non-FDP/LLDP
device in between two or more devices or multiple devices which are not
directly connected.
Use the data from the Layer2 Topology Table below to dig deeper.
- $foundry->c_port()
- Returns reference to hash. Key: iid Value: remote port
(interfaces)
- $foundry->c_id()
- Returns reference to hash. Key: iid Value: string value
used to identify the chassis component associated with the remote
system.
- $foundry->c_platform()
- Returns reference to hash. Key: iid Value: Remote Device
Type
Table Methods imported from SNMP::Info::Layer3¶
See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for
details.
Table Methods imported from SNMP::Info::FDP¶
See documentation in "TABLE METHODS" in SNMP::Info::FDP for details.
Table Methods imported from SNMP::Info::LLDP¶
See documentation in "TABLE METHODS" in SNMP::Info::LLDP for
details.