request snmp spoof-trap
语法
request snmp spoof-trap <trap> variable-bindings <object> <instance> <value>
说明
欺骗(模仿)简单网络管理协议 (SNMP) 陷阱的行为。
选项
<trap> | 欺骗陷阱的名称。 |
variable-bindings <object> <instance> <value> | (可选)要包含在陷阱中的变量和值列表。每个变量绑定都指定为一个对象名称、对象实例和值(例如 ifIndex[14] = 14)。将变量绑定列表用引号 (“ ”) 括起来,并使用逗号分隔每个对象名称、实例和值定义(例如 variable-bindings “ifIndex[14] = 14, ifAdminStatus[14] = 1, ifOperStatus[14] = 2”)。陷阱定义中包含的没有实例的对象以及作为命令一部分指定的值将包含在陷阱中,并通过自动生成的实例和值进行欺骗。 |
<dummy name> | 用于显示可用陷阱列表的虚拟陷阱名称。 |
Question mark (?) | 可显示可能完成的问号? 。 |
必需的权限级别
请求
示例输出
请求 snmp 欺骗陷阱(带可变绑定)
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
user@host> request snmp spoof-trap jnxFruOnline variable-bindings "jnxFruContentsIndex[1][1][1][1]=10, jnxFruL1Index[1][1][1][1]=10, jnxFruL2Index[1][1][1][1]=10, jnxFruL3Index[1][1][1][1]=10, jnxFruName[1][1][1][1]=Fpc, jnxFruType[1][1][1][1]=10, jnxFruSlot[1][1][1][1]=10" Spoof trap request result: trap sent successfully
user@host> request snmp spoof-trap jnxFruOffline variable-bindings "jnxFruL2Index[1][1][1][1]=10, jnxFruL3Index[1][1][1][1]=10, jnxFruName[1][1][1][1]=Fpc, jnxFruType[1][1][1][1]=10, jnxFruSlot[1][1][1][1]=10, jnxFruOfflineReason[1][1][1][1]=10, jnxFruLastPowerOff[1][1][1][1]=10, jnxFruLastPowerOn[1][1][1][1]=10" Spoof trap request result: trap sent successfully
请求 Snmp 欺骗陷阱(非法陷阱名称)
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
请求 snmp 欺骗陷阱(问号 ?)
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%)---
发布信息
在 Junos OS 8.2 版中引入的命令。