29reaches the configured value, the newly generated traps are saved into the queue, and the earliest onesare discarded.Examples# Set the maximum number of traps that can be stored in the trap sending queue to 200. system-view[Sysname] snmp-agent trap queue-size 200Related commands• snmp-agent target-host• snmp-agent trap enable• snmp-agent trap lifesnmp-agent trap sourceUse snmp-agent trap source to specify the source IP address contained in the trap.Use undo snmp-agent trap source to restore the default.Syntaxsnmp-agent trap source interface-type { interface-number | interface-number.subnumber }undo snmp-agent trap sourceDefaultSNMP chooses the IP address of an interface to be the source IP address of the trap.ViewsSystem viewDefault command level3: Manage levelParametersinterface-type { interface-number | interface-number.subnumber }: Specifies the interface type andinterface number. The parameter interface-number represents the main interface number. The parametersubnumber represents the subinterface number and ranges from 1 to 4094.Usage guidelinesUpon the execution of this command, the system uses the primary IP address of the specified interface asthe source IP address of the traps, and the NMS uses this IP address to uniquely identify the agent. Evenif the agent sends out traps through different interfaces, the NMS uses this IP address to filter all traps sentfrom the agent.Before you can configure the IP address of a particular interface as the source IP address of the trap,make sure the interface already exists and that it has a legal IP address. If the configured interface doesnot exist, the configuration 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.Examples# Specify the IP address of Vlan-interface 1 as the source address for traps. system-view[Sysname] snmp-agent trap source Vlan-interface1