CLI Guide

Table Of Contents
Minimum role manage
Syntax
set snmp-parameters
[add-trap-host address]
[del-trap-host address]
[enable crit|error|warn|resolved|info|none]
[read-community string]
[trap-host-list addresses]
[write-community string]
Parameters
[add-trap-host address]
Optional. Specifies the network address of a destination host that will receive traps. The value can be
an IPv4 address, IPv6 address, or FQDN. Three trap hosts can be set.
[del-trap-host address]
Optional. Specifies the network address of a destination host to delete. The value can be an IPv4
address, IPv6 address, or FQDN.
[enable crit|error|warn|resolved|info|none]
Optional. Sets the level of trap notification:
crit: Sends notifications for Critical events only.
error: Sends notifications for Error and Critical events.
warn: Sends notifications for Warning, Error, and Critical events.
resolved: Sends notifications for Resolved, Warning, Error, and Critical events.
info: Sends notifications for all events.
none: All events are excluded from trap notification and traps are disabled. This is the
default. However, Critical events and managed-logs events 400402 are sent regardless of the
notification setting.
[read-community string]
Optional. Specifies the SNMP read password for your network. This string is included in traps that
are sent. This string must differ from the write-community string. Input rules:
The value is case sensitive.
The value can have a maximum of 31 bytes.
The value can include any character except: " <>
A value that includes a space must be enclosed in double quotes.
The default is public.
[trap-host-list addresses]
Optional. Specifies the network addresses of hosts that are configured to receive SNMP traps. Each
value can be an IPv4 address, IPv6 address, or FQDN. Three trap hosts can be set. The value can
have a maximum of 79 bytes.
[write-community string]
Optional. Sets a community string for write access. This string must differ from the read-community
string. Input rules:
The value is case sensitive.
The value can have a maximum of 31 bytes.
The value can include any characters characters except: " <>
A value that includes a space must be enclosed in double quotes.
The default is private.
Examples
Enable Critical events only, specify a trap host, and set the community string for read-only access.
# set snmp-parameters enable crit add-trap-host 172.22.4.171 read-
community public
See also
set protocols
Alphabetical list of commands 151