Using SNMP in Cisco (Cisco) Routers

What is SNMP

SNMP, known as the Simple Network Management Protocol, was found to address complex network environments with complex network devices, SNMP uses a standardized protocol to query devices on the network, providing network administrators with vital information needed to keep the network environment stable and away from downtime .

Why You Should Enable SNMP in Cisco Devices

SNMP plays a key role in easily managing network devices. If it is a large enterprise with a large number of devices in the network environment, SNMP needs to be enabled so that the network administrator can know the information of all devices. Likewise, if the network environment also includes Cisco devices, this article provides the steps to enable SNMP in Cisco routers and enable SNMP in Cisco switches (Cisco Router SNMP Configuration/Cisco Switch SNMP Configuration).

It will be possible to create corresponding Configlet commands to configure Cisco routers or configure Cisco switches using Network Configuration Manager, which will help administrators perform the same operation on multiple devices at the same time.

How to Enable SNMP in Cisco Router/Switch

SNMP can be enabled in Cisco switches using automated templates called configurations, administrators can select script execution mode and enter device-specific commands and execute it, which will immediately enable SNMP on Cisco switches.

How to configure SNMP in Cisco router/switch

Configuring SNMP in Cisco switches requires execution of certain device-specific commands, administrators can use Configlet to enable/disable SNMP in Cisco switches.

Steps to configure or enable SNMP in a Cisco router/switch

1. Log in to the device using SSH/TELNET and go to enable mode.

2. Enter configuration mode.

Router#configure terminal

Enter configuration commands, one per line. Ends with CNTL/Z.

Router(config)#

3. Use the following command to configure the read-only community string

Router(config)#snmp-server community public RO

(Where "public" is the read community string.)

4. Use the following command to configure the read-write community string

outer(config)#snmp-server community private RW

(where "private" is the read-write community string)

5. Exit configuration mode

Router(config)#exit

Copy the running configuration into the startup configuration using the command

Router#write memory

Building configuration… [OK]

Router#

The corresponding configuration can be created in the Network Configuration Manager application as shown in the screenshot below.

insert image description here

The Configlet can also be downloaded as XML and imported into the NCM application using the file import option.

configuration name Use SNMP
describe This configuration is used to enable SNMP in a Cisco router/switch on multiple devices at the same time
execution mode script execution mode
configuration file configure terminal
snmp-server community $READ-ONLY-COMMUNITY RO
snmp-server community $READ-WRITE-COMMUNITY RW
exit
write memory

Guess you like

Origin blog.csdn.net/ITmoster/article/details/132340274