Difference between revisions of "snmp"
From cpwiki.net
(Created page with "mib files location $CPDIR/lib/snmp/ translating to/from OIDs and mib descriptions $ snmptranslate -Tz | grep -i <description | OID> category:snmp category:monitoring") |
|||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | mib files location | + | mib files location on check point device |
$CPDIR/lib/snmp/ | $CPDIR/lib/snmp/ | ||
− | + | ==mib descriptions and OID of interest== | |
− | $ snmptranslate -Tz | grep -i | + | |
+ | |||
+ | |||
+ | appliance model | ||
+ | "svnApplianceProductName" "1.3.6.1.4.1.2620.1.6.16.7" | ||
+ | |||
+ | get check point version | ||
+ | "svnVersion" "1.3.6.1.4.1.2620.1.6.4.1" | ||
+ | |||
+ | example: | ||
+ | [Expert@chkpfw1:0]# '''snmpget -v2c -c public localhost 1.3.6.1.4.1.2620.1.6.4.1.0''' | ||
+ | SNMPv2-SMI::enterprises.2620.1.6.4.1.0 = STRING: "R80.20" | ||
+ | |||
+ | firewall connections | ||
+ | $ '''snmptranslate -Tz -m CHECKPOINT-MIB | grep -i fwnumconn''' | ||
+ | "fwNumConn" "1.3.6.1.4.1.2620.1.1.25.3" | ||
+ | |||
+ | $ '''snmpget -v 2c -c public 10.0.0.254 1.3.6.1.4.1.2620.1.1.25.3.0''' | ||
+ | SNMPv2-SMI::enterprises.2620.1.1.25.3.0 = Gauge32: 3310 | ||
+ | |||
[[category:snmp]] | [[category:snmp]] | ||
[[category:monitoring]] | [[category:monitoring]] |
Latest revision as of 20:56, 8 July 2024
mib files location on check point device
$CPDIR/lib/snmp/
mib descriptions and OID of interest
appliance model
"svnApplianceProductName" "1.3.6.1.4.1.2620.1.6.16.7"
get check point version "svnVersion" "1.3.6.1.4.1.2620.1.6.4.1"
example:
[Expert@chkpfw1:0]# snmpget -v2c -c public localhost 1.3.6.1.4.1.2620.1.6.4.1.0 SNMPv2-SMI::enterprises.2620.1.6.4.1.0 = STRING: "R80.20"
firewall connections
$ snmptranslate -Tz -m CHECKPOINT-MIB | grep -i fwnumconn "fwNumConn" "1.3.6.1.4.1.2620.1.1.25.3"
$ snmpget -v 2c -c public 10.0.0.254 1.3.6.1.4.1.2620.1.1.25.3.0 SNMPv2-SMI::enterprises.2620.1.1.25.3.0 = Gauge32: 3310