Configuring the device to send traps - common SNMP operations

3952 0 0 0

This post talks about configuring the device to send traps - Common SNMP Operations. Please see more details below.


After the trap function is enabled and the trap host has been configured, the device will automatically send traps to the trap host.


1. Enable the trap function. Enable the trap function for the SNMP module.


Note:


If the trap function is not enabled for the modules, each module uses the default trap configuration. To view the default trap configuration of each module, run the display snmp-agent trap all command. The trap function of the SNMP module is used as an example here.


2. Configure the interface to send traps.


Configure LoopBack0 with the IP address 10.1.1.1 as the interface to send traps.


Note:


After the interface has been configured, the IP address of the interface is used to send traps. To ensure device security, it is recommended that you configure a loopback interface to send traps.


The trap sending interface configured on the switch must be the same as the one configured on the NMS; otherwise, the NMS cannot receive traps. In addition, a reachable route must exist between the IP addresses of trap sending interface and trap host.


3. Configure the trap host.


Set the trap host address as 10.1.2.10, the UDP port number as 50000, security name as user001, trap version to v3 and the security level to privacy.


Note:

The trap version must be the same as the SNMP version configured on the device; otherwise, traps cannot be sent to the NMS. When the version is set to v3, the security name must be the same as the created user name; otherwise, traps cannot be sent to the NMS. v1 and v2c do not have limitation on the configuration of security names.


The default UDP port number is 162. After the UDP port number is changed, you must reconfigure the UDP port of the NMS that receives traps. If the UDP ports of the device and NMS are different, traps cannot be sent to the NMS.


The security level of the trap host cannot be lower than the security level of the user.

 

  • x
  • convention:

Comment

Reply
You need to log in to reply to the post Login | Register

Notice Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Login and enjoy all the member benefits

Login and enjoy all the member benefits

Login