Command Reference SNMP Commands
Global configuration mode.
Use this command to configure the SNMP trap format with the private field. Currently, the supported
data in the private field is alarm occurrence time. For the specific data type and range of each field,
refer to RUIJIE-TRAP-FORMAT-MIB.mib file.
This command does not work if the traps are sent with SNMPv1.
The following example configures the SNMP trap format with the private field.
Ruijie(config)# snmp-server trap-format private
1.18 snmp-server trap-source
Use this command to specify the source interface of the SNMP trap message. Use the no form of this
command to restore the default value.
snmp-server trap-source interface
no snmp-server trap-source
Specifies the source interface of the SNMP trap messages.
By default, the IP address of the interface from which the SNMP packet is sent is just the source
address.
Global configuration mode.
For easy management and identification, you can use this command to fix a local IP address as the
SNMP source address.
The following example specifies the IP address of Ethernet interface 0/1 as the source address of the
SNMP trap message:
Ruijie(config)# snmp-server trap-source fastethernet 0/1