How can I enable SNMP on Cisco IOS, IOS-XR, and IOS-XE network devices?
SNMP enables you to monitor your Cisco IOS devices and send information to Site24x7's On-Premise Poller by configuring its SNMP agent.
Configuring SNMP v1 and v2c
- Connect to the Cisco device using SSH, Telnet, or the device console.
- To enter enable mode, type enable and provide the appropriate password, if needed.
- To enter global configuration mode, type configure terminal.
- Enable SNMP v1 by entering the following command:
snmp-server community <community-string> to
NoteReplace <community-string> with the required SNMP community string. Due to it acting as a password for SNMP access, choose a strong and secure community string. - Exit configuration mode by typing exit next to the prompt.
- Save the configuration by typing write.
Configuring SNMP v3
- Connect to the Cisco device using SSH, Telnet, or the device console.
- For privileged mode, type enable and provide the appropriate password, if needed.
- To enter global configuration mode, type configure terminal.
- Enable SNMP v3 by entering the following commands:
Ensure that you replace the following parameters with the appropriate values for each combination of SNMP v3 security models and levels:snmp-server group [group-name {v1 | v2c | v3 [auth | noauth | priv]}] [read read-view] [write write-view] [notify notify-view] [access access-list]
snmp-server user user-name group-name [remote ip-address [udp-port port]] {v1 | v2c | v3 [encrypted] [auth {md5 | sha} auth-password]} [access access-list]- <noAuthNoPriv> - Uses an SNMP v3 username for authentication.
- <authNoPriv> - Authenticates based on the Hashed Message Authentication Code (HMAC MD5 or SHA) algorithms.
- <authPriv> - Authenticates based on the HMAC-MD5 or HMAC-SHA algorithms. Additionally, provides DES 56-bit encryption based on the Cipher Block Chaining (CBC)-DES (DES-56) standard.
- Exit configuration mode by typing the command end.
For more information, please refer to Cisco's official documentation:
-
On this page
- Configuring SNMP v1 and v2c
- Configuring SNMP v3