Junos OS

Can I simulate traps on a device?

By Elevate posted 02-01-2016 14:09

  

Question

Can I simulate traps on a device?

Answer

Yes, you can use the request snmp spoof-trap trap name command for simulating a trap to the NMS that normally receives your device’s traps. You can also add required values using the variable-bindings parameter.

 

The following example shows how to simulate a trap to the local NMS using variable bindings:

 

user@host> request snmp spoof-trap linkDown variable-bindings "ifIndex[116]=116,
ifAdminStatus[116]=1 ,ifOperStatus[116]=2 , ifName[116]=ge-1/0/1"

 For more information, click SNMP MIBs and Traps.


#FAQ
0 comments
0 views

Permalink