Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

request snmp spoof-trap

Syntax

Description

Spoof (mimic) the behavior of a Simple Network Management Protocol (SNMP) trap.

Options

<trap>

Name of the trap to spoof.

variable-bindings <object> <instance> <value>

(Optional) List of variables and values to include in the trap. Each variable binding is specified as an object name, the object instance, and the value (for example, ifIndex[14] = 14). Enclose the list of variable bindings in quotation marks (“ “) and use a comma to separate each object name, instance, and value definition (for example, variable-bindings “ifIndex[14] = 14, ifAdminStatus[14] = 1, ifOperStatus[14] = 2”). Objects included in the trap definition that do not have instances and values specified as part of the command are included in the trap and spoofed with automatically generated instances and values.

<dummy name>

A dummy trap name to display the list of available traps.

Question mark (?)

Question mark? to display possible completions.

Required Privilege Level

request

Sample Output

request snmp spoof-trap (with Variable Bindings)

request snmp spoof-trap (Illegal Trap Name)

request snmp spoof-trap (Question Mark ?)

Release Information

Command introduced in Junos OS Release 8.2.