50.2. Example of configuration of the SNMP resource

The example below shows how to configure the SNMP resource and to enable the SNMP Agent to the remote IP address 81.81.81.81 and to send TRAPS to the host 192.168.1.201.

[18:06:44] ABILIS_CPX:s p snmp act:yes ipsrc:81.81.81.81 trap:yes trapdest:192.168.1.201 traprep:60

COMMAND EXECUTED

[18:06:50] ABILIS_CPX:d p snmp

RES:Snmp - Not Saved (SAVE CONF), Not Refreshed (INIT) ----------------------
       -----------------------------------------------------------------------
Run    DESCR:Simple_Network_Management_Protocol
       LOG:NO        ACT:YES
       - Agent ----------------------------------------------------------------
       locport:161
       COMMUNITY:public
       IPSRC:081.081.081.081          IPSRCLIST:#
       - Traps ----------------------------------------------------------------
       TRAP:YES      AUTHTRAP:NO      TRAPREP:60
       TRAPDEST:192.168.001.201       TRAPSRC:R-ID (192.168.001.001)

This configuration allows Abilis to accept the SNMP request from host 81.81.81.81 and to send any traps to the host 192.168.1.201 every 60 minutes.

[Tip]Tip

Interesting chapter: Section 80.28, “How to activate the SNMP agent”.