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::CheckPoint - SNMP Interface to CheckPoint Devices

Authors

       Ambroise Rosset

Description

       Subclass for CheckPoint Devices.

   WARNING
       To correctly and completely work on IPSO based devices, you should add the following line in the file
       "/etc/snmp/snmpd.local.conf" on each of your CheckPoint devices:

        # Netdisco SNMP configuration
        extend  ckpVersion /opt/CPsuite-R77/fw1/bin/fw ver
        extend  ckpAsset /bin/clish -c 'show asset all'

   InheritedClasses
       SNMP::Info::Layer3

   RequiredMIBsCHECKPOINT-MIBUCD-SNMP-MIBNET-SNMP-EXTEND-MIBNET-SNMP-TCHOST-RESOURCES-MIB
       Inherited Classes' MIBs
           See SNMP::Info::Layer3 for its own MIB requirements.

Globals

       These are methods that return scalar value from SNMP

       $ckp->vendor()
           Returns "svnApplianceManufacturer" in lowercase, else 'checkpoint'.

       $ckp->model()
           Returns "svnApplianceProductName", else the model type based on the sysObjectOID translation.

       $ckp->os()
           Returns the OS extracted from "sysDescr".

       $ckp->os_ver()
           Returns "svnVersion", else the software version is extracted from "sysDescr", along with the Net-SNMP
           version.

       $ckp->uptime()
           Returns  the  system  uptime  instead of the agent uptime.  NOTE: discontinuity timers and other Time
           Stamp based objects are based on agent uptime, so use orig_uptime().

       $ckp->serial()
           Returns <svnApplianceSerialNumber>, else the serial number of  the  device  if  the  SNMP  server  is
           configured as indicated previously.  Returns '' in other case.

       $ckp->layers()
           Return '01001100'.

   GlobalsimportedfromSNMP::Info::Layer3
       See documentation in SNMP::Info::Layer3 for details.

Name

       SNMP::Info::Layer3::CheckPoint - SNMP Interface to CheckPoint Devices

Notes

       If  your  device is not recognized by SNMP::Info as being in the class SNMP::Info::Layer3::CheckPoint you
       might need additional snmp configuration on the CheckPoint device.

       In order to cause SNMP::Info to classify your device into this class,  it  may  be  necessary  to  put  a
       configuration line into your snmpd.conf similar to

         sysobjectid .1.3.6.1.4.1.8072.3.2.N

       where  N  is  the object ID for your OS from the "NET-SNMP-TC" MIB (or 255 if not listed).  Some Net-SNMP
       installations default to an incorrect return value for "system.sysObjectId".

       In order to recognize a Net-SNMP device as Layer3, it may  be  necessary  to  put  a  configuration  line
       similar to

         sysservices 76

       in your snmpd.conf.

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

Synopsis

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

        my $class      = $ckp->class();
        print "SNMP::Info determined this device to fall under subclass : $class\n";

Table Entries

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

   Overrides
       $ckp->i_ignore()
           Returns reference to hash.  Increments value of IID if port is to be ignored.

           Ignores loopback

   TableMethodsimportedfromSNMP::Info::Layer3
       See documentation in SNMP::Info::Layer3 for details.

See Also