Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

request snmp spoof-trap

Syntax

request snmp spoof-trap<trap> variable-bindings <object> <instance> <value>

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.

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”
Spoof trap request result: trap sent successfully

request snmp spoof-trap (Illegal Trap Name)

user@host> request snmp spoof-trap xx
Spoof trap request result: trap not found

Allowed Traps:
adslAtucInitFailureTrap  
  adslAtucPerfESsThreshTrap  
  adslAtucPerfLofsThreshTrap  
  adslAtucPerfLolsThreshTrap  
  adslAtucPerfLossThreshTrap  
  adslAtucPerfLprsThreshTrap  
  adslAtucRateChangeTrap  
  adslAturPerfESsThreshTrap  
  adslAturPerfLofsThreshTrap  
  adslAturPerfLossThreshTrap  
  adslAturPerfLprsThreshTrap  
  adslAturRateChangeTrap  
  apsEventChannelMismatch  
  apsEventFEPLF        
  apsEventModeMismatch  
  apsEventPSBF         
  apsEventSwitchover   
  authenticationFailure  
  bfdSessDown          
  bfdSessUp            
  bgpBackwardTransition  
  bgpEstablished       
  coldStart            
  dlswTrapCircuitDown  
  dlswTrapCircuitUp    
  dlswTrapTConnDown    
  dlswTrapTConnPartnerReject  
  dlswTrapTConnProtViolation  
  dlswTrapTConnUp      
  dsx1LineStatusChange  
  dsx3LineStatusChange  
  entConfigChange      
  fallingAlarm         
  frDLCIStatusChange   
  ggsnTrapChanged      
  ggsnTrapCleared      
  ggsnTrapNew          
  gmplsTunnelDown      
  ifMauJabberTrap      
  ipv6IfStateChange    
  isisAreaMismatch     
  isisAttemptToExceedMaxSequence  
  isisAuthenticationFailure  
  isisAuthenticationTypeFailure  
  isisCorruptedLSPDetected  
  isisDatabaseOverload  
  isisIDLenMismatch    
  isisLSPTooLargeToPropagate  
  isisManualAddressDrops  
  isisMaxAreaAddressesMismatch  
  isisOriginatingLSPBufferSizeMismatch  
  isisOwnLSPPurge      
  isisProtocolsSupportedMismatch  
  isisRejectedAdjacency  
  isisSequenceNumberSkip  
  isisVersionSkew      
  jnxAccessAuthServerDisabled  
  jnxAccessAuthServerEnabled  
  jnxAccessAuthServiceDown  
  jnxAccessAuthServiceUp  
  jnxBfdSessDetectionTimeHigh  
  jnxBfdSessTxIntervalHigh  
  jnxBgpM2BackwardTransition  
  jnxBgpM2Established  
  jnxCmCfgChange       
  jnxCmRescueChange    
  jnxCollFlowOverload  
  jnxCollFlowOverloadCleared  
  jnxCollFtpSwitchover  
  jnxCollMemoryAvailable  
  jnxCollMemoryUnavailable  
  jnxCollUnavailableDest  
  jnxCollUnavailableDestCleared  
  jnxCollUnsuccessfulTransfer  
  jnxDfcHardMemThresholdExceeded  
  jnxDfcHardMemUnderThreshold  
  jnxDfcHardPpsThresholdExceeded  
  jnxDfcHardPpsUnderThreshold  
  jnxDfcSoftMemThresholdExceeded  
  jnxDfcSoftMemUnderThreshold  
  jnxDfcSoftPpsThresholdExceeded  
  jnxDfcSoftPpsUnderThreshold  
  jnxEventTrap         
  jnxExampleStartup    
  jnxFEBSwitchover     
  jnxFanFailure        
  jnxFanOK             
  jnxFruCheck          
  jnxFruFailed         
  jnxFruInsertion      
  jnxFruOK             
  jnxFruOffline        
  jnxFruOnline         
  jnxFruPowerOff       
  jnxFruPowerOn        
  jnxFruRemoval        
  jnxHardDiskFailed    
  jnxHardDiskMissing   
  jnxJsAvPatternUpdateTrap  
  jnxJsChassisClusterSwitchover  
  jnxJsFwAuthCapacityExceeded  
  jnxJsFwAuthFailure   
  jnxJsFwAuthServiceDown  
  jnxJsFwAuthServiceUp  
  jnxJsNatAddrPoolThresholdStatus  
  jnxJsScreenAttack    
  jnxJsScreenCfgChange  
  jnxLdpLspDown        
  jnxLdpLspUp          
  jnxLdpSesDown        
  jnxLdpSesUp          
  jnxMIMstCistPortLoopProtectStateChangeTrap  
  jnxMIMstCistPortRootProtectStateChangeTrap  
  jnxMIMstErrTrap      
  jnxMIMstGenTrap      
  jnxMIMstInvalidBpduRxdTrap  
  jnxMIMstMstiPortLoopProtectStateChangeTrap  
  jnxMIMstMstiPortRootProtectStateChangeTrap  
  jnxMIMstNewRootTrap  
  jnxMIMstProtocolMigrationTrap  
  jnxMIMstRegionConfigChangeTrap  
  jnxMIMstTopologyChgTrap  
  jnxMacChangedNotification  
  jnxMplsLdpInitSesThresholdExceeded  
  jnxMplsLdpPathVectorLimitMismatch  
  jnxMplsLdpSessionDown  
  jnxMplsLdpSessionUp  
  jnxOspfv3IfConfigError  
  jnxOspfv3IfRxBadPacket  
  jnxOspfv3IfStateChange  
  jnxOspfv3LsdbApproachingOverflow  
  jnxOspfv3LsdbOverflow  
  jnxOspfv3NbrRestartHelperStatusChange  
  jnxOspfv3NbrStateChange  
  jnxOspfv3NssaTranslatorStatusChange  
  jnxOspfv3RestartStatusChange  
  jnxOspfv3VirtIfConfigError  
  jnxOspfv3VirtIfRxBadPacket  
  jnxOspfv3VirtIfStateChange  
  jnxOspfv3VirtNbrRestartHelperStatusChange  
  jnxOspfv3VirtNbrStateChange  
  jnxOtnAlarmCleared   
  jnxOtnAlarmSet       
  jnxOverTemperature   
  jnxPMonOverloadCleared  
  jnxPMonOverloadSet   
  jnxPingEgressJitterThresholdExceeded  
  jnxPingEgressStdDevThresholdExceeded  
  jnxPingEgressThresholdExceeded  
  jnxPingIngressJitterThresholdExceeded  
  jnxPingIngressStddevThresholdExceeded  
  jnxPingIngressThresholdExceeded  
  jnxPingRttJitterThresholdExceeded  
  jnxPingRttStdDevThresholdExceeded  
  jnxPingRttThresholdExceeded  
  jnxPortBpduErrorStatusChangeTrap  
  jnxPortLoopProtectStateChangeTrap  
  jnxPortRootProtectStateChangeTrap  
  jnxPowerSupplyFailure  
  jnxPowerSupplyOK     
  jnxRedundancySwitchover  
  jnxRmonAlarmGetFailure  
  jnxRmonGetOk         
  jnxSecAccessIfMacLimitExceeded  
  jnxSecAccessdsRateLimitCrossed  
  jnxSonetAlarmCleared  
  jnxSonetAlarmSet     
  jnxSpSvcSetCpuExceeded  
  jnxSpSvcSetCpuOk     
  jnxSpSvcSetZoneEntered  
  jnxSpSvcSetZoneExited  
  jnxStormEventNotification  
  jnxSyslogTrap        
  jnxTemperatureOK     
  jnxVccpPortDown      
  jnxVccpPortUp        
  jnxVpnIfDown         
  jnxVpnIfUp           
  jnxVpnPwDown         
  jnxVpnPwUp           
  jnxl2aldGlobalMacLimit  
  jnxl2aldInterfaceMacLimit  
  jnxl2aldRoutingInstMacLimit  
  linkDown             
  linkUp               
  lldpRemTablesChange  
  mfrMibTrapBundleLinkMismatch  
  mplsLspChange        
  mplsLspDown          
  mplsLspInfoChange    
  mplsLspInfoDown      
  mplsLspInfoPathDown  
  mplsLspInfoPathUp    
  mplsLspInfoUp        
  mplsLspPathDown      
  mplsLspPathUp        
  mplsLspUp            
  mplsNumVrfRouteMaxThreshExceeded  
  mplsNumVrfRouteMidThreshExceeded  
  mplsNumVrfSecIllglLblThrshExcd  
  mplsTunnelDown       
  mplsTunnelReoptimized  
  mplsTunnelRerouted   
  mplsTunnelUp         
  mplsVrfIfDown        
  mplsVrfIfUp          
  mplsXCDown           
  mplsXCUp             
  msdpBackwardTransition  
  msdpEstablished      
  newRoot              
  ospfIfAuthFailure    
  ospfIfConfigError    
  ospfIfRxBadPacket    
  ospfIfStateChange    
  ospfLsdbApproachingOverflow  
  ospfLsdbOverflow     
  ospfMaxAgeLsa        
  ospfNbrStateChange   
  ospfOriginateLsa     
  ospfTxRetransmit     
  ospfVirtIfAuthFailure  
  ospfVirtIfConfigError  
  ospfVirtIfRxBadPacket  
  ospfVirtIfStateChange  
  ospfVirtIfTxRetransmit  
  ospfVirtNbrStateChange  
  pethMainPowerUsageOffNotification  
  pethMainPowerUsageOnNotification  
  pethPsePortOnOffNotification  
  pingProbeFailed      
  pingTestCompleted    
  pingTestFailed       
  ptopoConfigChange    
  risingAlarm          
  rpMauJabberTrap      
  sdlcLSStatusChange   
  sdlcPortStatusChange  
  topologyChange       
  traceRoutePathChange  
  traceRouteTestCompleted  
  traceRouteTestFailed  
  vrrpTrapAuthFailure  
  vrrpTrapNewMaster    
  warmStart            

request snmp spoof-trap (Question Mark ?)

user@host> 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  
  apsEventChannelMismatch  
  apsEventFEPLF        
  apsEventModeMismatch  
  apsEventPSBF         
  apsEventSwitchover   
  authenticationFailure  
  bfdSessDown          
  bfdSessUp            
  bgpBackwardTransition  
  bgpEstablished       
  coldStart            
  dlswTrapCircuitDown  
  dlswTrapCircuitUp    
---(more 10%)---

Published: 2014-07-23

Published: 2014-07-23