R3204P16-HP Load Balancing Module System Maintenance Command Reference-6PW101
66
<Sysname> system-view
[Sysname] snmp-agent trap queue-size 200
snmp-agent trap source
Syntax
snmp-agent trap source interface-type { interface-number | interface-number.subnumber }
undo snmp-agent trap source
View
System view
Default level
3: Manage level
Parameters
interface-type { interface-number | interface-number.subnumber }: Specifies the interface type and
interface number. The parameter interface-number represents the main interface number. The parameter
subnumber represents the subinterface number and ranges from 1 to 4,094.
Description
Use the snmp-agent trap source command to specify the source IP address contained in the trap.
Use the undo snmp-agent trap source command to restore the default.
By default, SNMP chooses the IP address of an interface to be the source IP address of the trap.
Upon the execution of this command, the system uses the primary IP address of the specified interface as
the source IP address of the traps, and the NMS uses this IP address to uniquely identify the agent. Even
if the agent sends out traps through different interfaces, the NMS uses this IP address to filter all traps sent
from the agent.
Use this command to trace a specific event by the source IP address of a trap.
Before you can configure the IP address of a particular interface as the source IP address of the trap,
ensure that the interface already exists and that it has a legal IP address. Otherwise, if the configured
interface does not exist, the configurations fails. If the specified IP address is illegal, the configuration
becomes invalid. When a legal IP address is configured for the interface, the configuration automatically
becomes valid.
Related commands: snmp-agent target-host and snmp-agent trap enable.
Examples
# Configure the IP address for the port Ten-GigabitEthernet 0/0.1 as the source address for traps.
<Sysname> system-view
[Sysname] snmp-agent trap source Ten-GigabitEthernet 0/0.1
snmp-agent usm-user { v1 | v2c }
Syntax
snmp-agent usm-user { v1 | v2c } user-name group-name [ acl acl-number ]
undo snmp-agent usm-user { v1 | v2c } user-name group-name