2347

Example # Configure the size of the Trap queue to 200.

<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

Parameter 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 message.

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 message.

Use this command to trace a specific event by the source IP address of a Trap message.

n Before you can configure the IP address of a particular interface as the source IP address of the Trap message, ensure that the interface already exists and that it has a legal IP address. Otherwise, it is likely that the configurations will either fail or be invalid.

Related command: snmp-agent trap enable, snmp-agenttarget-host.

Example # Configure the IP address for the port Ethernet 1/0 to be the source address for Trap packets.

<Sysname> system-view

[Sysname] snmp-agent trap source ethernet 1/0

snmp-agent usm-user

Syntax The following syntax applies to SNMPv1 and SNMPv2c:

snmp-agentusm-user{ v1 v2c } user-name group-name [ acl acl-number ]

undo snmp-agent usm-user { v1 v2c } user-namegroup-name

Page 2347
Image 2347
3Com MSR 50, MSR 30 manual Snmp-agent trap source, Snmp-agent usm-user, Example # Configure the size of the Trap queue to