This repository contains tools for Check Point (mainly Gaia) to work with SNMP and extend the built-in functionality.
The tools are sorted in directories:
This directory contains programs used to implement custom OIDs.
cert_info
- obtain information about ICA and SIC certificates, mainly expiration date- See examples in
userDefinedSettings_examples.conf
. - Info about certificates validity:
- ICA - valid for 20+ years, but not over the Unix epoch 32-bit 2038-01-19 03:14:07 UTC
- SIC - valid for 5 years
- IKE - valid for 1 year
- See examples in
- Add
extend
directives to/etc/snmp/userDefinedSettings.conf
Examples are in this repository inextend/userDefinedSettings_examples.conf
- Restart snmp daemon:
clish -c 'set snmp agent off' && clish -c 'set snmp agent on'
- Test reading the OIDs:
# Table showing first line of output of all extend custom OIDs:
snmptable localhost NET-SNMP-EXTEND-MIB::nsExtendOutput1Table
# Table showing all lines of output:
snmptable localhost NET-SNMP-EXTEND-MIB::nsExtendOutput2Table
# Showing values of all extended OIDs:
snmpwalk localhost NET-SNMP-EXTEND-MIB::nsExtendOutput1Line
# Showing value of single extended OID (double quotes are necessary):
snmpget localhost 'NET-SNMP-EXTEND-MIB::nsExtendOutput1Line."cert_ica_expi"'
# Parameters of the extended OIDs:
snmpwalk localhost NET-SNMP-EXTEND-MIB::nsExtendObjects
You can prepare the default parameters for the Net-snmp tools . The following settings were tested on Check Point Gaia.
mkdir -p ~/.snmp/mibs/
ln -s "$CPDIR/lib/snmp/chkpnt.mib" ~/.snmp/mibs/
cat > ~/.snmp/snmp.conf <<+++END
defVersion 3
defSecurityName username
defSecurityLevel authPriv
defAuthType SHA-256
defPrivType AES
defPassphrase password
+++END