logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       Eric Miller

Description

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

   InheritedClasses
       SNMP::Info::Layer3;
       SNMP::Info::FDP;

   RequiredMIBsHP-SN-ROOT-MIBHP-SN-AGENT-MIBHP-SN-SWITCH-GROUP-MIB
       Inherited Classes' MIBs
           See "Required MIBs" in SNMP::Info::Layer3 for its own MIB requirements.

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

Globals

       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")

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

   GlobalMethodsimportedfromSNMP::Info::FDP
       See documentation in "GLOBALS" in SNMP::Info::FDP for details.

Name

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

Synopsis

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

        my $class = $hp9300->class();

        print "SNMP::Info determined this device to fall under subclass : $class\n";

Table Methods

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

   Overrides
       $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()SwitchPortInformationTable("snSwPortIfTable")
       $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")

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

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

perl v5.40.0                                       2024-11-09                    SNMP::Info::Layer3::HP9300(3pm)

See Also