DOKK / manpages / debian 10 / libsnmp-info-perl / SNMP::Info::Layer3::HP9300.3pm.en
SNMP::Info::Layer3::HP9300(3pm) User Contributed Perl Documentation SNMP::Info::Layer3::HP9300(3pm)

SNMP::Info::Layer3::HP9300 - SNMP Interface to HP Foundry OEM Network Devices

Eric Miller

 # Let SNMP::Info determine the correct subclass for you.
 my $hp9300 = new SNMP::Info(
                          AutoSpecify => 1,
                          Debug       => 1,
                          DestHost    => 'myswitch',
                          Community   => 'public',
                          Version     => 1
                        )
    or die "Can't connect to DestHost.\n";
 my $class = $hp9300->class();
 print "SNMP::Info determined this device to fall under subclass : $class\n";

Abstraction subclass for HP network devices which Foundry Networks was the Original Equipment Manufacturer (OEM) such as the HP ProCurve 9300 series.

For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above.

 my $hp9300 = new SNMP::Info::Layer3::HP9300(...);

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

$hp9300->model()
Returns model type. Checks $hp9300->id() against the HP-SN-ROOT-MIB and removes "hpSwitch".
$hp9300->vendor()
Returns 'hp'
$hp9300->os()
Returns 'hp'
$hp9300->os_ver()
Returns the software version
$hp9300->mac()
Returns MAC Address of root port.

("ifPhysAddress.1")

$hp9300->chassis()
Returns Chassis type.

("entPhysicalDescr.1")

$hp9300->serial()
Returns serial number of device.
$hp9300->temp()
Returns the chassis temperature

("snChasActualTemperature")

$hp9300->ps1_type()
Returns the Description for the power supply

("snChasPwrSupplyDescription.1")

$hp9300->ps1_status()
Returns the status of the power supply.

("snChasPwrSupplyOperStatus.1")

$hp9300->fan()
Returns the status of the chassis fan.

("snChasFanOperStatus.1")

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.

$hp9300->interfaces()
Returns reference to hash of interface names to iids.
$hp9300->i_ignore()
Returns reference to hash of interfaces to be ignored.

Ignores interfaces with descriptions of tunnel,loopback,null

$hp9300->i_duplex()
Returns reference to hash of interface link duplex status.

Crosses $hp9300->sw_duplex() with $hp9300->sw_index()

$hp9300->sw_index()
Returns reference to hash. Maps Table to Interface IID.

("snSwPortIfIndex")

$hp9300->sw_duplex()
Returns reference to hash. Current duplex status for switch ports.

("snSwPortInfoChnMode")

$hp9300->sw_type()
Returns reference to hash. Current Port Type .

("snSwPortInfoMediaType")

$hp9300->sw_speed()
Returns reference to hash. Current Port Speed.

("snSwPortInfoSpeed")

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.

2019-02-25 perl v5.28.1