This section provides information about configuring SNMP with CLI.
Topics in this chapter include:
This section describes how to configure SNMP components that apply to SNMPv1, SNMPv2c, and SNMPv3 on the 7705 SAR.
The 7705 SAR router is based on SNMPv3. To use 7705 SAR routers with SNMPv1 and/or SNMPv2c, SNMP community strings must be configured. Three predefined access methods are available when SNMPv1 or SNMPv2c access is required. Each access method (r, rw, or rwa) is associated with an SNMPv3 access group that determines the access privileges and the scope of managed objects available. The community command is used to associate a community string with a specific access method and the required SNMP version (SNMPv1 or SNMPv2c). The access methods are:
If the predefined access groups do not meet your access requirements, then additional access groups and views can be configured. The usm-community command is used to associate an access group with an SNMPv1 or SNMPv2c community string.
SNMP trap destinations are configured in the config>log>snmp-trap-group context.
The 7705 SAR implements SNMPv3. If security features other than the default views are required, the following parameters must be configured:
This section provides information to configure SNMP parameters and provides examples of common configuration tasks. The minimal SNMP parameters are:
For SNMPv1 and SNMPv2c:
For SNMPv3:
The following displays SNMP default views, access groups, and attempts parameters.
Use the CLI syntax displayed below to configure the following SNMP scenarios:
SNMPv1 and SNMPv2c community strings are used to define the relationship between an SNMP manager and agent. The community string acts like a password to permit access to the agent. The access granted with a community string is restricted to the scope of the configured group.
One or more of the following characteristics associated with the string can be specified:
Default access features are preconfigured by the agent for SNMPv1 and SNMPv2c.
Use the following CLI syntax to configure community options:
The following example displays community string command usage:
The following example displays the SNMP community configuration:
Use the following CLI syntax to configure view options:
The following example displays view command usage:
The following example displays the view configuration:
The access command creates an association between a user group, a security model, and the views that the user group can access. Access must be configured unless security is limited to the preconfigured access groups and views for SNMPv1 and SNMPv2c. An access group is defined by a unique combination of the group name, security model, and security level.
Use the following CLI syntax to configure access features:
The following example displays access command usage:
The following example displays the access configuration with the view configurations.
Use the following CLI syntax to configure user group and authentication parameters:
The following example displays user security command usage:
The following example displays the user’s SNMP configuration.
User-based security model (USM) community strings associate a community string with an SNMPv3 access group and its view. The access granted with a community string is restricted to the scope of the configured group.
By default, the 7705 SAR OS implementation of SNMP uses SNMPv3. To implement SNMPv1 and SNMPv2c, USM community strings must be explicitly configured.
Use the following CLI syntax to configure USM community options:
The following example displays USM community string command usage. Note that the group testgroup was configured in the config>system>security>snmp>access CLI context.
The following example displays the SNMP community configuration:
Use the following CLI syntax to modify the system SNMP options:
The following example displays the system SNMP default values: