SNMP::Info::Layer3::Foundry - SNMP Interface to Brocade (Foundry) Network Devices
Max Baker
# 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";
Abstraction subclass for Brocade (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(...);
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.
These are methods that return scalar value from SNMP
Returns model type. Checks $foundry->id() against the FOUNDRY-SN-ROOT-MIB and removes 'sn' and 'Switch'. EdgeIron models determined through ENTITY-MIB.
sn
Switch
Returns 'brocade'
Returns the software version
Returns MAC Address of root port.
(ifPhysAddress.1)
ifPhysAddress.1
Returns Chassis type.
(entPhysicalDescr.1)
entPhysicalDescr.1
Returns serial number of device.
Returns the chassis temperature
(snChasActualTemperature)
snChasActualTemperature
Returns the Description for the power supply
(snChasPwrSupplyDescription.1)
snChasPwrSupplyDescription.1
Returns the status of the power supply.
(snChasPwrSupplyOperStatus.1)
snChasPwrSupplyOperStatus.1
Returns the status of the chassis fan.
(snChasFanOperStatus.1)
snChasFanOperStatus.1
Returns device image version.
(snAgImgVer.0)
snAgImgVer.0
Returns chassis serial number.
(snChasSerNum.0)
snChasSerNum.0
See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
See documentation in "GLOBALS" in SNMP::Info::FDP for details.
See documentation in "GLOBALS" in SNMP::Info::LLDP 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.
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 the mapping of (dot1dStpPortState) to the interface index (iid).
dot1dStpPortState
Returns a HASH reference mapping from slave to master port for each member of a port bundle on the device. Keys are ifIndex of the slave ports, Values are ifIndex of the corresponding master ports.
ENTITY-MIB is supported on the Brocade NetIron XMR, NetIron MLX, MLXe, NetIron CES, NetIron CER, and older EdgeIron series devices. For other devices which do not support it, these methods emulate Physical Table methods using FOUNDRY-SN-AGENT-MIB. See Pseudo ENTITY-MIB information below for details on brcd_e_* methods.
If the device doesn't support entPhysicalDescr, this will try brcd_e_index().
entPhysicalDescr
Note that this is based on entPhysicalDescr due to implementation details of SNMP::Info::Entity::e_index().
If the device doesn't support entPhysicalClass, this will try brcd_e_class().
entPhysicalClass
If the device doesn't support entPhysicalDescr, this will try brcd_e_descr().
If the device doesn't support entPhysicalName, this will try brcd_e_name().
entPhysicalName
If the device doesn't support entPhysicalContainedIn, this will try brcd_e_parent().
entPhysicalContainedIn
If the device doesn't support entPhysicalParentRelPos, this will try brcd_e_pos().
entPhysicalParentRelPos
If the device doesn't support entPhysicalSerialNum, this will try brcd_e_serial().
entPhysicalSerialNum
If the device doesn't support entPhysicalVendorType, this will try brcd_e_type().
entPhysicalVendorType
If the device doesn't support entPhysicalMfgName, this will try brcd_e_vendor().
entPhysicalMfgName
These methods emulate ENTITY-MIB Physical Table methods using FOUNDRY-SN-AGENT-MIB.
Returns reference to hash. Key: IID, Value: Integer, Indices are combined into an integer, each index is two digits padded with leading zero if required.
Returns reference to hash. Key: IID, Value: General hardware type.
Returns 'stack' for the stack master in an active stack, 'chassis' for base switches that contain modules, and 'module' for others.
Returns reference to hash. Key: IID, Value: Human friendly name
(snAgentConfigModule2Description) or (snAgentConfigModuleDescription)
snAgentConfigModule2Description
snAgentConfigModuleDescription
Returns reference to hash. Key: IID, Value: brocade
Returns reference to hash. Key: IID, Value: Serial number
Serial number is $foundry->serial() for a stack master unit and (snAgentConfigModule2SerialNumber) or (snAgentConfigModuleSerialNumber) for all others.
snAgentConfigModule2SerialNumber
snAgentConfigModuleSerialNumber
Returns reference to hash. Key: IID, Value: Type of component/sub-component as defined under snAgentConfigModule2Type or snAgentConfigModule2Type in FOUNDRY-SN-AGENT-MIB.
snAgentConfigModule2Type
Returns reference to hash. Key: IID, Value: The relative position among all entities sharing the same parent.
(s5ChasComSubIndx)
s5ChasComSubIndx
Returns reference to hash. Key: IID, Value: The value of brcd_e_index() for the entity which 'contains' this entity. A value of zero indicates this entity is not contained in any other entity.
snSwPortIfTable
Returns reference to hash. Maps Table to Interface IID.
(snSwPortIfIndex)
snSwPortIfIndex
Returns reference to hash. Current duplex status for switch ports.
(snSwPortInfoChnMode)
snSwPortInfoChnMode
Returns reference to hash. Current Port Type .
(snSwPortInfoMediaType)
snSwPortInfoMediaType
Returns reference to hash. Current Port Speed.
(snSwPortInfoSpeed)
snSwPortInfoSpeed
These methods emulate the POWER-ETHERNET-MIB Power Source Entity (PSE) Port Table pethPsePortTable methods using the FOUNDRY-POE-MIB Power over Ethernet Port Table snAgentPoePortTable.
pethPsePortTable
snAgentPoePortTable
Creates an index of module.port to align with the indexing of the pethPsePortTable with a value of ifIndex. The module defaults 1 if otherwise unknown.
ifIndex
Administrative status: is this port permitted to deliver power?
pethPsePortAdminEnable
Current status: is this port delivering power.
Device class: if status is delivering power, this represents the 802.3af class of the device being powered.
The power, in milliwatts, that has been committed to this port. This value is derived from the 802.3af class of the device being powered.
The power, in milliwatts, that the port is delivering.
These methods emulate the POWER-ETHERNET-MIB Main Power Source Entity (PSE) Table pethMainPseTable methods using the FOUNDRY-POE-MIB Power over Ethernet Port Table snAgentPoeModuleTable .
pethMainPseTable
snAgentPoeModuleTable
The power supply's capacity, in watts.
The power supply's operational status.
How much power, in watts, this power supply has been committed to deliver.
See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.
See documentation in "TABLE METHODS" in SNMP::Info::FDP for details.
See documentation in "TABLE METHODS" in SNMP::Info::LLDP for details.
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.