snmp-config

Usage

avcli snmp-config [--enable-requests] [--enable-traps] [--port number] [--community name] [--recipients recipient ...] [--recipients-v1 recipient-v1 ...]

Description

The snmp-config command configures SNMP for use in an everRun system. Specifically, the command performs the following actions:

Options

--enable-requests Enable SNMP requests. If you do not specify the option, requests are disabled.
--enable-traps Enable SNMP traps. If you do not specify this option, traps are disabled. When you enable traps, you must specify one or more recipients.
--community name The name of the SNMP community.
--port number The port to use for SNMP. The default is 162.
--recipients recipient ... The list of hosts to which to send traps using SNMP version 2c.
--recipients-v1 recipient-v1 ... The list of hosts to which to send traps using SNMP version 1.

Examples

The following example enables SNMP requests, and then traps and sends them to host1 and host2 using SNMP version 2c, and to snmp.my-domain.com and snmp2.my-domain.com using SNMP version 1.
$ avcli snmp-config --enable-requests --enable-traps --recipients host1 host2 --recipients-v1 snmp.my-domain.com snmp2.my-domain.com
The following example disables SNMP requests, enables traps, and sends them to localhost using SNMP version 2c.
$ avcli snmp-config --enable-traps --community public --recipients localhost