[j-nsp] Testing SNMP traps

Curtis Call ccall at juniper.net
Mon Aug 16 12:58:53 EDT 2010


> 
> Based off this site, there is suppose to be a way to test SNMP traps:
> 
> http://juniper.cluepon.net/index.php/ER_SNMP_trap_testing
> 
> However, on my 4200EX, no such command is available via the CLI:
> 
> me at myrouter> test snmp
>                                  ^
> syntax error, expecting <command>.
> 
> I'm trying to test a few chassis events (i.e.  jnxFanFailure)
> 
> Is this a shell command? If so I can't figure out any sort of syntax to
> make it work.
> 

Here is the CLI command:

jnpr at srx210> 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
  dlswTrapTConnDown
  dlswTrapTConnPartnerReject
  dlswTrapTConnProtViolation
  dlswTrapTConnUp
  dsx1LineStatusChange
  dsx3LineStatusChange
  entConfigChange
  fallingAlarm
  frDLCIStatusChange
  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
  jnxCosAlmostOutOfDedicatedQueues
  jnxCosOutOfDedicatedQueues
  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
  jnxJsIdpAttackLog
  jnxJsIdpSignatureUpdate
  jnxJsNatAddrPoolThresholdStatus
  jnxJsPacketMirrorLiServiceActivated
  jnxJsPacketMirrorLiServiceActivationFailed
  jnxJsPacketMirrorLiServiceDeactivated
  jnxJsPacketMirrorLiSubscriberLogInFailed
  jnxJsPacketMirrorLiSubscriberLoggedIn
  jnxJsPacketMirrorLiSubscriberLoggedOut
  jnxJsPacketMirrorMirroringFailure
  jnxJsScreenAttack
  jnxJsScreenCfgChange
  jnxJsSrcNatPoolThresholdStatus
  jnxLacpTimeOut
  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
  variable-bindings    The list of variables & values to include in the trap
  vrrpTrapAuthFailure
  vrrpTrapNewMaster
  warmStart



More information about the juniper-nsp mailing list