Config Router

  • Google Sheets
  • CCNA Online training
    • CCNA
  • CISCO Lab Guides
    • CCNA Security Lab Manual With Solutions
    • CCNP Route Lab Manual with Solutions
    • CCNP Switch Lab Manual with Solutions
  • Juniper
  • Linux
  • DevOps Tutorials
  • Python Array
You are here: Home / Juniper / How to generate spoof SNMP traps for testing trap receiver

How to generate spoof SNMP traps for testing trap receiver

May 28, 2016 by James Palmer

This article will explain how a spoof SNMP trap can generate to verify that the traps are being received at the trap viewer after configuration of the traps.

Traps are only generate when there is an event on the chassis.

In an initial configuration or when there is change in the target knob for sending the traps there will be a need to test and see how the traps are being received at the viewer.

The knob that we can use to generate spoof traps is the following and it is executed in operational mode. keep in mind that that all the snmp/trap configuration needs to be done and there must be network reachability to the trap viewer.

kvillegas@Contrabando> request snmp spoof-trap ?
Possible completions:

<trap> The name of the trap to spoof
adslAtucInitFailureTrap
adslAtucPerfESsThreshTrap
adslAtucPerfLofsThreshTrap
adslAtucPerfLolsThreshTrap
adslAtucPerfLossThreshTrap
adslAtucPerfLprsThreshTrap
adslAtucRateChangeTrap
adslAturPerfESsThreshTrap
adslAturPerfLofsThreshTrap
adslAturPerfLossThreshTrap
adslAturPerfLprsThreshTrap
adslAturRateChangeTrap
alarmActiveState
(Long output, it was cut)

Using this knob, we can generate traps to test the SNMP configuration, otherwise a technical will need to be at the site and generate a trap for example removing a FRU.

There is the possibility to create variables to send to the NSM, using “variable-bindings”, this knob will allow us to add in specific into the trap message which will
help in testing the trap viewer, for example,

> request snmp spoof-trap linkdown variable-bindings "ifIndex[ge-0/1/0.0] = ge-0/1/0.0, ifAdminStatus[ge-0/1/0.0] = 2, ifOperStatus[ge-0/1/0.0] = 2"

 

Related

Filed Under: Juniper Tagged With: SNMP, SNMP Traps

Recent Posts

  • How do I give user access to Jenkins?
  • What is docker volume command?
  • What is the date format in Unix?
  • What is the difference between ARG and ENV Docker?
  • What is rsync command Linux?
  • How to Add Music to Snapchat 2021 Android? | How to Search, Add, Share Songs on Snapchat Story?
  • How to Enable Snapchat Notifications for Android & iPhone? | Steps to Turn on Snapchat Bitmoji Notification
  • Easy Methods to Fix Snapchat Camera Not Working Black Screen Issue | Reasons & Troubleshooting Tips to Solve Snapchat Camera Problems
  • Detailed Procedure for How to Update Snapchat on iOS 14 for Free
  • What is Snapchat Spotlight Feature? How to Make a Spotlight on Snapchat?
  • Snapchat Hack Tutorial 2021: Can I hack a Snapchat Account without them knowing?

Copyright © 2025 · News Pro Theme on Genesis Framework · WordPress · Log in