Operation Manual

IP Services Commands
Mobility System Software Command Reference Guide
Version 7.3
8 – 124
Defaults
The default UDP port number on the target is 162. The default minimum required security
level is unsecured. The default number of retries is 0 and the default timeout is 2 seconds.
Access
Enabled.
History
Introduced in MSS Version 4.0.
Usage
The inform or trap option specifies whether the MSS SNMP engine expects the target to
acknowledge notifications sent to the target by the MX . Use inform if you want acknowledgements.
Use trap if you do not want acknowledgements. The inform option is applicable to SNMP version
v2c or usm only.
Examples
The following command configures a notification target for acknowledged notifications:
MX# set snmp notify target 1 10.10.40.9 usm inform user securesnmpmgr1 snmp-engine-id ip
success: change accepted.
This command configures target 1 at IP address 10.10.40.9. The target SNMP engine ID is based on
its address. The MSS SNMP engine sends notifications based on the default profile, and requires the
target to acknowledge receiving them.
The following command configures a notification target for unacknowledged notifications:
MX# set snmp notify target 2 10.10.40.10 v1 trap
success: change accepted.
See Also
clear snmp notify target on page 8-98
set ip snmp server on page 8-111
set snmp community on page 8-116
set snmp notify profile on page 8-118
set snmp protocol on page 8-124
set snmp usm on page 8-126
show snmp notify target on page 8-142
set snmp protocol
Enables an SNMP protocol. MSS supports SNMPv1, SNMPv2c, and SNMPv3.
Syntax
set snmp protocol {v1 | v2c | usm | all} {enable | disable}
Defaults
All SNMP versions are disabled by default.
Access
Enabled.
History
Introduced in MSS Version 4.0.
Usage
SNMP requires the MX system IP address to be set. SNMP does not work without the system
IP address.
You also must enable the SNMP service using the set ip snmp server command.
v1 SNMPv1
v2c SNMPv2c
usm SNMPv3 (with the user security model)
all Enables all supported versions of SNMP.
enable Enables the specified SNMP version(s).
disable Disables the specified SNMP version(s).