A network administrator can configure SNMPv2 to obtain network information from network devices. As shown in the figure, the basic steps to configuring SNMP are all in global configuration mode.

Step 1. (Required) Configure the community string and access level (read-only or read-write) with the snmp-server community string ro | rw command.

Step 2. (Optional) Document the location of the device using the snmp-server location text command.

Step 3. (Optional) Document the system contact using the snmp-server contact text command.

Step 4. (Optional) Restrict SNMP access to NMS hosts (SNMP managers) that are permitted by an ACL: define the ACL and then reference the ACL with the snmp-server community string access-list-number-or-name command. This command can be used both to specify a community string and to restrict SNMP access via ACLs. Step 1 and Step 4 can be combined into one step, if desired; the Cisco networking device combines the two commands into one if they are entered separately.

Step 5. (Optional) Specify the recipient of the SNMP trap operations with the snmp-server host host-id [version{1| 2c | 3 [auth | noauth | priv]}] community-string command. By default, no trap manager is defined.

Step 6. (Optional) Enable traps on an SNMP agent with the snmp-server enable traps notification-types command. If no trap notification types are specified in this command, then all trap types are sent. Repeated use of this command is required if a particular subset of trap types is desired.

Note: By default, SNMP does not have any traps set. Without this command, SNMP managers must poll for all relevant information.