NAME
SNMP::Info::Layer3::Maipu - SNMP Interface to Maipu switches
AUTHOR
SNMP::Info Developers
SYNOPSIS
# Let SNMP::Info determine the correct subclass for you.
my $maipu = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $maipu->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
DESCRIPTION
Subclass for Maipu switches running MyPower, registered under the Maipu mpSwitch branch (.1.3.6.1.4.1.5651.1.102). Reads the model from the chassis entity or sysDescr and the version from sysDescr, reports layer 2 for a switch that serves layer 3 only in sysServices, maps link aggregation members, and reads forwarding table entries the agent indexes and maps in non-standard ways.
Inherited Classes
Required MIBs
None. Objects from MAIPU-SYS-MIB, which netdisco-mibs does not carry, are read by numeric OID.
Inherited MIBs
- See "Required MIBs" in SNMP::Info::Layer3 for its own MIB requirements.
GLOBALS
These are methods that return scalar value from SNMP
Overrides
- $maipu->vendor()
-
Returns
'maipu'. - $maipu->os()
-
Returns
'mypower'. - $maipu->os_ver()
-
Returns the version that follows the word
versioninsysDescr, else the inherited value. - $maipu->model()
-
Returns the chassis
entPhysicalModelName, else the chassisentPhysicalDescr, such asS3230-54TXF(V1). Without either, returns the model that precedes the wordversioninsysDescr, such asS3230, else the inherited value. - $maipu->layers()
-
Returns the served
sysServiceslayers, or layer 3 where none are served, with layer 2 added when the device has bridge ports (dot1dBaseNumPorts). - $maipu->serial()
-
Returns the first non-empty
mpSysDeviceSerialNumberin device index order, else the inherited value. - $maipu->ps1_type()
- $maipu->ps2_type()
-
Returns
ACorDCfor the first or second power supply in index order, frommpSysPowerType. - $maipu->ps1_status()
- $maipu->ps2_status()
-
Returns
offlinewhenmpSysPowerOnlineStatussays so, elsenormaloralarmfrommpSysPowerAlarmStatus, for the first or second power supply in index order. - $maipu->fan()
-
Returns
normalwhen every fan is online and normal. Otherwise lists each other fan by position with its state, such asFan 2: offline.
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.
Maipu System Table (mpSysMIB)
Read by numeric OID; values are the raw integers the MIB defines.
- $maipu->mp_device_serial()
-
mpSysDeviceSerialNumber - $maipu->mp_power_type()
-
mpSysPowerType - $maipu->mp_power_online()
-
mpSysPowerOnlineStatus - $maipu->mp_power_alarm()
-
mpSysPowerAlarmStatus - $maipu->mp_fan_online()
-
mpSysFanCardOnlineStatus - $maipu->mp_fan_alarm()
-
mpSysFanCardAlarmStatus
Overrides
- $maipu->e_class()
-
Returns
entPhysicalClasswith numbers translated to theirPhysicalClasslabels. The agent serves the column as a Gauge32, and Net-SNMP translates enumerations only for values served as an INTEGER. - $maipu->qb_fw_mac()
-
Returns reference to hash of forwarding table MAC addresses, decoded from the
dot1qTpFdbTableindex. The agent puts a length octet before the MAC in the index; it is dropped. A standard index is decoded as well. - $maipu->bp_index()
-
Returns reference to hash of bridge port to interface index (
dot1dBasePortIfIndex), with each interface the table leaves out mapped to itself. Forwarding entries learned on a link aggregation name its ifIndex as the bridge port. - $maipu->agg_ports()
-
Returns a HASH reference mapping each link aggregation member's ifIndex to the aggregation's ifIndex, from
dot3adAggPortAttachedAggID. The agent serves nodot3adAggPortListPorts. Falls back to "agg_ports_lag()" in SNMP::Info::IEEE802dot3ad when no port names an attached aggregation.
Table Methods imported from SNMP::Info::Layer3
See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.