Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure SNMP Trap

Trap is the information that SNMP agents actively send to network workstations to report specific events. Trap packets can be divided into general Trap and custom Trap. General Trap includes Authentication, Linkdown, Linkup, Coldstart, Warmstart, crc-error, out- packet-error, out-usage-rate, in-packet-error, and in-usage-rate. Custom Trap is output according to the requirements of each module.

Table 8–12 Configure Trap

Step

Command

Description

Enter the global configuration mode

configure terminal

-

Enable the trap of the link interface down or up

snmp-server enable traps snmp [ linkup | linkdown ]

Mandatory

By default, SNMP Trap is disabled.

Enter the interface configuration mode

interface interface-type interface-num

Optional

Configure the trap of the interface status change

snmp trap link-status

Optional

Configure Trap target host

snmp-server host { ip-address | host-name } traps { community community-name version { 1 | 2 } | user username authnopriv | authpriv | noauth version 3 }[ port port-num | vrf vrf-name ]

Mandatory

It is necessary to specify ip-address as the IP address of the network work station.

Configure the source address of the Trap packet

snmp-server trap-source ip-address

Optional

note


  • Usually, there is much Trap information, so it will occupy equipment resources and affect equipment performance. Therefore, it is recommended that the Trap function of specified modules be enabled as needed, not all modules are enabled.