request snmp spoof-trap
構文
request snmp spoof-trap <trap> variable-bindings <object> <instance> <value>
説明
SNMP(簡易ネットワーク管理プロトコル)トラップの動作をスプーフィング(模倣)します。
オプション
<trap> | スプーフィングするトラップの名前。 |
variable-bindings <object> <instance> <value> | (オプション)トラップに含める変数と値のリスト。各変数バインドは、オブジェクト名、オブジェクト インスタンス、および値 (たとえば、 ifIndex[14] = 14) として指定されます。変数バインディングのリストを引用符 (" ") で囲み、コンマを使用して各オブジェクト名、インスタンス、および値定義を区切ります (たとえば、変数バインディング "ifIndex[14] = 14、 ifAdminStatus[14] = 1、ifOperStatus[14] = 2")。コマンドの一部として指定されたインスタンスと値を持たないトラップ定義に含まれるオブジェクトは、トラップに含まれ、自動的に生成されたインスタンスと値でスプーフィングされます。 |
<dummy name> | 使用可能なトラップのリストを表示するダミートラップ名。 |
Question mark (?) | 疑問符? をクリックして、可能な補完を表示します。 |
必要な権限レベル
要求
サンプル出力
request 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で導入されたコマンド。