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 the SNMP::Info::Layer3 manpage for its own MIB requirements.
See Required MIBs in the SNMP::Info::FDP manpage for its own MIB requirements.
See Required MIBs in the SNMP::Info::LLDP manpage for its own MIB requirements.
These are methods that return scalar value from SNMP
model()
Returns model type. Checks $hp9300->id()
against the HP-SN-ROOT-MIB
and removes hpSwitch
.
vendor()
Returns 'hp'
os()
Returns 'hp'
os_ver()
Returns the software version
mac()
Returns MAC Address of root port.
(ifPhysAddress.1
)
chassis()
Returns Chassis type.
(entPhysicalDescr.1
)
serial()
Returns serial number of device.
temp()
Returns the chassis temperature
(snChasActualTemperature
)
ps1_type()
Returns the Description for the power supply
(snChasPwrSupplyDescription.1
)
ps1_status()
Returns the status of the power supply.
(snChasPwrSupplyOperStatus.1
)
fan()
Returns the status of the chassis fan.
(snChasFanOperStatus.1
)
See documentation in GLOBALS in the SNMP::Info::Layer3 manpage for details.
See documentation in GLOBALS in the SNMP::Info::FDP manpage for details.
See documentation in GLOBALS in the SNMP::Info::LLDP manpage for details.
These are methods that return tables of information in the form of a reference to a hash.
interfaces()
Returns reference to hash of interface names to iids.
i_ignore()
Returns reference to hash of interfaces to be ignored.
Ignores interfaces with descriptions of tunnel,loopback,null
i_duplex()
Returns reference to hash of interface link duplex status.
Crosses $hp9300->sw_duplex()
with $hp9300->sw_index()
snSwPortIfTable
)sw_index()
Returns reference to hash. Maps Table to Interface IID.
(snSwPortIfIndex
)
sw_duplex()
Returns reference to hash. Current duplex status for switch ports.
(snSwPortInfoChnMode
)
sw_type()
Returns reference to hash. Current Port Type .
(snSwPortInfoMediaType
)
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.
hasCDP()
Returns true if the device is running either FDP or LLDP.
c_if()
Returns reference to hash. Key: iid Value: local device port (interfaces)
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.
c_port()
Returns reference to hash. Key: iid Value: remote port (interfaces)
c_id()
Returns reference to hash. Key: iid Value: string value used to identify the chassis component associated with the remote system.
c_platform()
Returns reference to hash. Key: iid Value: Remote Device Type
See documentation in TABLE METHODS in the SNMP::Info::Layer3 manpage for details.
See documentation in TABLE METHODS in the SNMP::Info::FDP manpage for details.
See documentation in TABLE METHODS in the SNMP::Info::LLDP manpage for details.