Configuration Guide SNMP Configuration
Configuring the SNMP Agent to Send the Trap Message to the NMS Initiatively
The TRAP message is a message automatically sent by the SNMP Agent to the
NMS unsolicitedly, and is used to report some critical and important events. By
default the SNMP Agent is not allowed to send the TRAP message. To enable it,
run the following command in the global configuration mode:
Ruijie(config)# snmp-server enable
traps [type] [option]
Allow the SNMP Agent to send the
TRAP message proactively.
Ruijie(config)# no snmp-server
enable traps [type] [option]
Forbid the SNMP Agent to send the
TRAP message proactively.
Configuring LinkTrap Policy
You can configure whether to send the LinkTrap message of an interface. When
this function is enabled and the link status of the interface changes, the SNMP
will send the LinkTrap message. Otherwise, it will not. By default, this function is
enabled.
Ruijie(config)# interface interface-id
Enter the interface configuration mode.
Ruijie(config-if)# [no] snmp trap
link-status
Enable or disable sending the LinkTrap
message of the interface.
The following configures the intereface not to send LinkTrap Message:
Ruijie(config)# interface gigabitEthernet 1/1
Ruijie(config-if)#no snmp trap link-status
Configuring Trap Messages to Carry Private Fields
You can specify the Agent to send Trap messages that carry private fields.
Currently, the private fields contain information as follows:
Alarm sequence number
NE identifier
Initial alarm levels: levels of alarm messages sent by the device: 1. Critical; 2.
Important; 3. Less important; 4. Ordinary; 5. Uncertain.
Initial alarm type: types of alarm messages send by the device, including alarms
of communications, enviroment, device, handling error, service quality.
Alarm cause ID: the internal alarm ID to identify alarm causes.
Alarm cause: Description of alarm causes.