NAME

SNMP::Info::Layer3::AlcatelLucent - SNMP Interface to Alcatel-Lucent OmniSwitch

AUTHOR

Bill Fenner

SYNOPSIS

# Let SNMP::Info determine the correct subclass for you.
my $alu = new SNMP::Info(
                       AutoSpecify => 1,
                       Debug       => 1,
                       # These arguments are passed directly to SNMP::Session
                       DestHost    => 'myswitch',
                       Community   => 'public',
                       Version     => 2
                       )
   or die "Can't connect to DestHost.\n";

my $class      = $alu->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";

DESCRIPTION

Subclass for Alcatel-Lucent OmniSwitch devices

Inherited Classes

SNMP::Info::Layer3
SNMP::Info::MAU
SNMP::Info::LLDP

Required MIBs

ALCATEL-IND1-DEVICES
ALCATEL-IND1-CHASSIS-MIB
ALCATEL-IND1-VLAN-MGR-MIB
ALU-POWER-ETHERNET-MIB

Note that Alcatel-Lucent distributes their own proprietary version of the POWER-ETHERNET-MIB, but the MIB module name that they distribute is simply POWER-ETHERNET-MIB. This module must be hand-edited to change the module name to ALU-POWER-ETHERNET-MIB so that it can be used simultaneously with the standard POWER-ETHERNET-MIB. AOS 6 populates this vendor copy; AOS 8 populates the standard POWER-ETHERNET-MIB instead.

Inherited Classes' MIBs

See "Required MIBs" in SNMP::Info::Layer3 for its own MIB requirements.

See "Required MIBs" in SNMP::Info::MAU 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

$alu->vendor()

Returns 'alcatel-lucent'

$alu->model()

Tries to reference $alu->id() to one of the product MIBs listed above

Removes 'device' from the name for readability.

AOS 8 device IDs do not translate, as ALCATEL-IND1-DEVICES only defines the AOS 6 tree, nor do AOS 6 IDs newer than that MIB. For those, returns the model sysDescr names before the release, such as OS6360-P48X. Failing that, returns entPhysicalModelName of the lowest-numbered chassis entity, the first member of a virtual chassis.

$alu->os()

Returns 'AOS'

$alu->os_ver()

Grabs the os version from sysDescr

$alu->ps1_type()

Return the type of the first power supply from the ENTITY-MIB

$alu->ps2_type()

Return the type of the second power supply from the ENTITY-MIB

$alu->ps1_status()

Return the status of the first power supply from the ALCATEL-IND1-CHASSIS-MIB

$alu->ps2_status()

Return the status of the second power supply from the ALCATEL-IND1-CHASSIS-MIB

Both read chasEntPhysOperStatus from the AOS 6 location, or when that is empty, from the AOS 8 copy.

Global Methods imported from SNMP::Info::Layer3

See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.

Global Methods imported from SNMP::Info::MAU

See documentation in "GLOBALS" in SNMP::Info::MAU for details.

Global Methods imported from SNMP::Info::Layer3

See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.

TABLE METHODS

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

$alu->interfaces()

Returns interface name from ifName, since the default return value of ifDescr includes the OS version.

$alu->bp_index()

Work around various bugs in the BRIDGE-MIB and Q-BRIDGE-MIB implementations, by returning both ifIndex and dot1dBasePort mappings to ifIndex values.

$alu->i_duplex_admin()

Returns info from MAU-MIB

$alu->i_speed_admin()

Returns info from MAU-MIB

$alu->i_vlan()

Returns the default VLAN of each port from dot1qPvid. When that is empty, as on AOS 8, returns the VLAN of vpaTable rows whose vpaType is cfgDefault, keyed by vpaIfIndex. A port that is cfgDefault in more than one VLAN is omitted.

$alu->v_name()

Returns the VLAN names from the first of these sources that has rows, keyed by VLAN number: vlanDescription in the AOS 8 copy of vlanTable, dot1qVlanStaticName from Q-BRIDGE-MIB, and vlanDescription in the AOS 6 vlanTable.

$alu->alu_vlan_descr()

(vlanDescription)

$alu->alu_chas_oper_status()

(chasEntPhysOperStatus)

$alu->alu8_chas_oper_status()

Returns chasEntPhysOperStatus from the AOS 8 copy of chasEntPhysicalTable (.1.3.6.1.4.1.6486.801.1.1.1.1.1.1.1.2), keyed by entPhysicalIndex. It is read by number because ALCATEL-IND1-CHASSIS-MIB only defines the AOS 6 location.

$alu->alu8_vlan_descr()

Returns vlanDescription from the AOS 8 copy of vlanTable (.1.3.6.1.4.1.6486.801.1.2.1.3.1.1.1.1.1.2), keyed by vlanNumber. It is read by number because ALCATEL-IND1-VLAN-MGR-MIB only defines the AOS 6 location.

$alu->alu8_vpa_type()

Returns vpaType from the AOS 8 copy of vpaTable (.1.3.6.1.4.1.6486.801.1.2.1.3.1.1.2.1.1.3), keyed by vpaVlanNumber.vpaIfIndex. It is read by number because ALCATEL-IND1-VLAN-MGR-MIB only defines the AOS 6 location.

$alu->peth_port_ifindex()

Returns the ifIndex value for power-ethernet ports using the OmniSwitch algorithm.

$alu->peth_port_admin()
$alu->peth_port_status()
$alu->peth_port_class()
$alu->peth_power_watts()
$alu->peth_power_status()
$alu->peth_power_consumption()
$alu->peth_power_threshold()

Return the standard POWER-ETHERNET-MIB column when its pethPsePortDetectionStatus has rows (AOS 8), otherwise the same column from ALU-POWER-ETHERNET-MIB (AOS 6). Rows from the two MIBs are never mixed for one device.

Table Methods imported from SNMP::Info::Layer3

See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.

Table Methods imported from SNMP::Info::MAU

See documentation in "TABLE METHODS" in SNMP::Info::MAU for details.

Table Methods imported from SNMP::Info::LLDP

See documentation in "TABLE METHODS" in SNMP::Info::LLDP for details.

Data Munging Callback Subroutines

$alu->munge_alu8_chas_oper_status()

Maps the number an AOS 8 chasEntPhysOperStatus returns to its label. No loaded MIB defines the AOS 8 column, so its values arrive unlabeled.