CLI Commands : snmp-server

snmp-server
Configure SNMP server options. To set trap event notification recipients, use the email commands.
Note! At this time, Media Flow Controller does not support provisioning over SNMP V3.
snmp-server
community <community_name> [ro]
contact <contact_name>
enable [communities] [traps]
host <IP_address>
disable
traps [version <trap_version> | 1 | 2c] [<community_string>]
listen [enable] [interface <interface_name>]
location <system_location>
traps event <event_name>
user {<user_name> | admin} v3
Notes:
community—Set a community name for either read-only (ro) or read/write (rw) SNMP requests. Default, and if unspecified, is ro. The read-only community means only queries are performed. Use no to reset default. Note! In Release 2.0.2 only SNMP ro (Read-Only) is supported.
contact—Set (remove with no) the syscontact variable served from the System MIB in MIB-II.
enable—Enable the SNMP server. Use no snmp-server enable to disable; this stops serving SNMP variables and the sending of SNMP traps.
communities—Enable or disable (with no) community-based authentication on this system. If disabled, the community configured is ignored.
traps—Enable or disable (with no) sending SNMP traps from this system. The SNMP server must be enabled first. See “snmp traps," below for details. Note traps are only sent if there are trap sinks configured and enabled with snmp-server host.
host <IP_address>—Add or delete (with no) hosts to receive SNMP traps.
disable—Temporarily disable sending traps to this host. All trap sinks are created enabled. Use no snmp host <IP_address> disable to re?enable.
traps—Send traps to the specified host. This setting is only meaningful if traps are enabled, though the list of hosts may still be edited if traps are disabled.
version—Specify the SNMP version of traps to send to this host.
community string—Set a password for the reading and writing of SNMP traps; this is an alternate option to the default community string, which is "public". If you set this, it must be set on the server and the client.
listen—Configure SNMP server interface access restrictions.
enable—Enable or disable (with no) the listen interface restricted list for SNMP. If enabled and at least one non-DHCP interface is specified in the list, the SNMP connections are only accepted on those specified interfaces. When disabled, SNMP connections are accepted on any interface. Default is enabled.
interface—Add or delete (with no) interfaces to the listen list. If the interface is also running as a DHCP client, it is as if the interface was not added. If DHCP is later turned off on this interface, it is as if the interface was then added to the listen list.
location—Set the syslocation variable served from the System MIB in MIB?II.
traps event <event_name>—Specify which types of events to send as SNMP traps (options display). By default, the entire list of notify-able events are sent as SNMP traps to any declared trap sinks. Use no to delete.
user <username> v3—Not Supported in Release 2.0.2.
show snmp [user] [engineID]
Notes:
snmp—All SNMP settings, except for what is displayed by the other show snmp commands described below.
user—Not Supported in Release 2.0.2.
engineID—SNMP engine ID of this system.

Report an Error
Media Flow Manager Administrator's Guide and CLI Command Reference
Copyright © Juniper Networks, Inc.