The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

SNMP::Info::Layer2::HP - SNMP Interface to HP Procurve Switches

DESCRIPTION

Provides abstraction to the configuration information obtainable from a HP device through SNMP. Information is stored in a number of MIB's such as IF-MIB, ENTITY-MIB, RFC1271-MIB, HP-ICF-OID, MAU-MIB

MIBs required:

RFC1271-MIB
HP-ICF-OID

HP MIBs can be found at http://www.hp.com/rnd/software

AUTHOR

Max Baker (max@warped.org)

SYNOPSIS

 my $hp = new SNMP::Info::Layer2::HP(DestHost  => 'router' , 
                              Community => 'public' ); 

 See SNMP::Info and SNMP::Info::Layer2 for all the inherited methods.

CREATING AN OBJECT

new SNMP::Info::Layer2::HP()

Arguments passed to new() are passed on to SNMP::Session::new()

    my $hp = new SNMP::Info::Layer2::HP(
        DestHost => $host,
        Community => 'public',
        Version => 3,...
        ) 
    die "Couldn't connect.\n" unless defined $hp;

HP Global Configuration Values

$hp->log()

Returns all the log entries from the switch's log that are not Link up or down messages.

$hp->model()

Returns the model number of the HP Switch. Will translate between the HP Part number and the common model number with this map :

 %MODEL_MAP = ( 
               'J4812A' => '2512',
               'J4819A' => '5308XL',
               'J4813A' => '2524',
               'J4805A' => '5304XL',
               'J4815A' => '3324XL',
               'J4865A' => '4108GL',
               'J4887A' => '4104GL',
               'J4874A' => '9315',
              );
$hp->serial()

Returns serial number if available through SNMP

$hp->slots()

Returns number of entries in $hp->e_name that have 'slot' in them.

$hp->vendor()

hp

HP Table Values

Entity Table

$hp->e_class()

(entPhysicalClass)

$hp->e_descr()

(entPhysicalClass)

$hp->e_fwver()

(entPhysicalFirmwareRev)

$hp->e_hwver()

(entPhysicalHardwareRev)

$hp->e_map()

(entAliasMappingIdentifier)

$hp->e_model()

(entPhysicalModelName)

$hp->e_name()

(entPhysicalName)

$hp->e_parent()

(entPhysicalContainedIn)

$hp->e_port()

Maps EntityTable entries to the Interface Table (IfTable) using $hp->e_map()

$hp->e_serial()

(entPhysicalSerialNum)

$hp->e_swver()

(entPhysicalSoftwareRev)

$hp->e_type()

(entPhysicalVendorType)

Overriden Methods from SNMP::Info::Layer2

$hp->interfaces()
$hp->i_duplex()

Maps $hp->mau_index() with $hp->mau_link(). Methods inherited from SNMP::Info::MAU.

$hp->i_duplex_admin()

Maps $hp->mau_index() with $hp->mau_auto(), $hp->mau_autostat(), $hp->typeadmin(), and $mau_autosent(). Methods inherited from SNMP::Info::MAU.

$hp->i_name()

Crosses i_name() with $hp->e_name() using $hp->e_port() and i_alias()

$hp->i_type()

Crosses i_type() with $hp->e_descr() using $hp->e_port()