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

Release Information

Command introduced in Junos OS Release 8.2.

Command introduced in Junos OS Release 9.0 for EX Series switches.

Command introduced in Junos OS Release 11.1 for the QFX Series.

Command introduced in Junos OS Release 14.1X53-D20 for the OCX Series.

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

List of Sample Output

request snmp spoof-trap (with Variable Bindings)

request snmp spoof-trap (Illegal Trap Name)

request snmp spoof-trap (Question Mark ?)

Sample Output

request snmp spoof-trap (with Variable Bindings)

user@host> request snmp spoof-trap linkUp variable-bindings “ifIndex[14] = 14, ifAdminStatus[14] = 1, ifOperStatus[14] = 2”

request snmp spoof-trap (Illegal Trap Name)

user@host> request snmp spoof-trap xx

request snmp spoof-trap (Question Mark ?)

user@host> request snmp spoof-trap ?