Simple Network Management Protocol (SNMP) is a network management protocol which helps to record, store, and share information about the devices in the network. This helps the administrator address network issues. SNMP uses Management Information Bases (MIBs) to store available information in a hierarchical manner.
An SNMP User is defined by login credentials such as username, password, and authentication method. It is operated in association with an SNMP group and an engine ID. For instructions on how to configure an SNMP Group through the Command Line Interface (CLI), click here. Only SNMPv3 use SNMP users. Users with access privileges are associated with an SNMP view.
For example, SNMP users could be configured by a network manager to associate them to a group so that access rights can be assigned to a group of users in that particular group rather than to a single user. A user can only belong to one group. In order to create an SNMPv3 User, an Engine ID must be configured and an SNMPv3 Group must be available.
This article aims to show you how to configure SNMP Users through the CLI of a Cisco Switch.
Step 1. Access the CLI of the switch.
Note: In this example, PuTTY is the application used to access the switch CLI. The default username and password is cisco/cisco. If you have customized your credentials, use your username and password.
Step 2. Switch to Global Configuration mode by entering the following command:
Step 3. Create an Engine ID using the following syntax:
snmp-server engineID local {engineid/default}
Note: The engine-id must be unique within your administrative domain. In this example, snmp-server engineID local 57AD57AD57AD is entered.
Step 4. Add an SNMP user using the following syntax:
snmp-server user username groupname {{v1/v2c/remote host/auth {{md5/sha}} auth-password [priv priv-password] ]}}
Where:
Note: In this example, snmp-server user John_Doe CiscoTesters v3 auth md5 Cisco1234$ is entered.
Step 5. Verify the SNMP User with the following command:
You should now have configured an SNMP User through the CLI of the switch.
Revision | Publish Date | Comments |
---|---|---|
1.0 |
13-Dec-2018 |
Initial Release |