You are here: Supporting Documents > everRun Command Line Interface Reference > AVCLI Command Descriptions > snmp-config

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.

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 the option, traps are disabled.
--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; required only when traps are enabled and no --recipients-v1 are listed.
--recipients-v1 recipient-v1 ... The list of hosts to which to send traps using SNMP version 1; required only when traps are enabled and no --recipients are listed.

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
of