Specific Code process for configuring an SNMP Group

Source: Internet
Author: User

For the SNMP protocol, it can help us effectively manage and rectify the network. Its powerful functions and diversified protocol clusters are required by every administrator. Now let's take a simple look at the process of configuring an SNMP group.

To configure an SNMP group and a user, follow these steps.

Configure the SNMP group in step 1 to enter the global configuration mode.

Cisco# configure terminal 

Step 1 of configuring an SNMP group: copy the configuration name for each local or remote SNMP. Engineid-string is a 24-character SNMP copy ID string. For example, if the engine ID of the local device to be configured is 12340000000000000 0000000, you only need to enter "snmp-server engineID local 1234. If you select a remote device, you must specify the IP address and UDP port number for the SNMP replication. The default port is 162 ".

Cisco(config)# snmp-server engineID{local engineid-string |remote ip-address[udp-port port-number]engineid-string} 

Step 4: configure the SNMP group and configure the new SNMP group on the remote device. Groupname is used to specify the group name. V1, v2c, and v3 are used to specify the security mode. Among them, v1 has the lowest security mode and v3 has the highest security mode. Auth is used to enable Message Digest 5MD5) and Secure Hash AlgorithmSHA) package authentication. Priv is used to enable Enables Data Encryption StandardDES) Encryption. Noauthet is used to enable noAuthNoPriv encryption level.

Cisco(config)#snmp-server group groupname{v1|v2c|v3{auth|noauth|priv}} [read readview] [write writeview] [notify notifyview] [access access-list] 

Configure the SNMP Group to add new users to the SNMP group. Username is used to specify the user name on the host, and groupname is used to specify the user group to which the user is added. Remote is used to specify the Remote SNMP entry to which the user belongs. host is used to specify the host Name and IP address, and udp-port is used to specify the port number. The default value is 162 ). V1, v2c, and v3 are used to specify the SNMP version. Access-list is used to specify the access list. If you specify it as v3, you also need to specify the corresponding authentication method.

Cisco(config)# snmp-server user username groupname {remote host [udp-port port]} {v1[access access-list]|v2c[access access-list]|v3[encrypted][access access-list][auth{md5|sha}auth-password]} 

Configure the SNMP group step 1 and return the privileged mode.

Cisco(config)# end 

Step 1 of configuring the SNMP group, save the modified configuration.

Cisco# copy running-config startup-config

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.