show services ip-monitoring status
Syntax
show services ip-monitoring status
Description
Display a brief summary of IP monitoring status along with the current state for a given policy.
Required Privilege Level
view
Output Fields
Table 1 lists the output
fields for the show services ip-monitoring status
command.
Output fields are listed in the approximate order in which they appear.
Field Name |
Field Description |
---|---|
|
Name of the policy configured. |
|
Name of the probe configured. |
|
Displays the configured target address. |
|
Displays the status of the probe on the target address. If the status is PASS, then the target address is reached. |
|
Displays route injection information configured for the policy and its failover status. |
|
Displays the routing instance of the route to be injected during failover. |
|
Routing address of the route to be injected during failover. |
|
Specifies the next-hop address of the route to be injected during failover. P2P interfaces only. |
|
Display the state of the route injection action. If the state is APPLIED, then the ip-monitoring policy is in failover state. |
|
Displays the interface action type as enable or disable. |
|
Displays the policy action type as enable or disable. |
|
Displays the current admin state of the interface. |
|
Displays the current action status of the interface. |
Sample Output
show services ip-monitoring status
user@host> show services ip-monitoring status Policy - policy1 (Non-preemptive. Status: FAIL) RPM Probes: Probe name Test Name Address Status ---------------------- --------------- ---------------- --------- probe_a a1 15.1.1.10 FAIL probe_a a2 200.1.1.1 FAIL Route-Action: route-instance route next-hop State ----------------- ----------------- ---------------- ------------- inet.0 200.1.1.0 150.1.1.1 APPLIED Interface-Action: interface policy action admin state action status ----------------- --------------- ----------- ----------------- fe-0/0/5.2 Enable UP FAILOVER fe-0/0/5.4 Disable DOWN FAILOVER t1-1/0/0 Enable UP FAILOVER dl0 Enable UP FAILOVER ge-0/0/1 Enable UP FAILOVER
Sample Output
show services ip-monitoring status
In this example, the policy is in the failback state, and the no-preempt option is not configured.
user@host> show services ip-monitoring status Policy - policy1 (Status: PASS) RPM Probes: Probe name Test Name Address Status ---------------------- --------------- ---------------- --------- probe1 a1 99.1.1.2 PASS Route-Action: route-instance route next-hop state ----------------- ----------------- ---------------- ------------- inet.0 99.1.1.0 12.12.12.2 NOT-APPLIED Interface-Action: interface policy action admin state action status ----------------- --------------- ----------- ----------------- at-2/0/0 Enable DOWN MARKED-DOWN ge-0/0/2.2 Enable DOWN MARKED-DOWN ge-0/0/2.3 Enable DOWN MARKED-DOWN
Sample Output
show services ip-monitoring status
In this example, the policy is in the failover state, and the primary is restored. The no-preempt option is configured.
user@host> show services ip-monitoring status Policy - policy1 (Non-preemptive. Status: FAILOVER-NO-PREEMPT) RPM Probes: Probe name Test Name Address Status ---------------------- --------------- ---------------- --------- probe1 a1 99.1.1.2 PASS Route-Action: route-instance route next-hop state ----------------- ----------------- ---------------- ------------- inet.0 99.1.1.0 12.12.12.2 APPLIED Interface-Action: interface policy action admin state action status ----------------- --------------- ----------- ----------------- at-2/0/0 Enable UP FAILOVER ge-0/0/2.2 Enable UP FAILOVER ge-0/0/2.3 Enable UP FAILOVER
Sample Output
show services ip-monitoring status
When the probe succeeds and the policy is not applied, the output is as follows:
user@host> show services ip-monitoring status Policy payment (Status: PASS) RPM Probes: Probe name Test Name Address Status ---------------------- --------------- ---------------- --------- Probe-Payment-Server paysvr 9.9.9.2 PASS Route-Action: route-instance route next-hop state ----------------- ----------------- ---------------- ------------- inet.0 9.9.9.0/24 e1-6/0/0.0 NOT-APPLIED
Sample Output
show services ip-monitoring status
When the probe fails and the policy is applied, the output is as follows:
user@host> show services ip-monitoring status Policy payment (Status: FAIL) RPM Probes: Probe name Test Name Address Status ---------------------- --------------- ---------------- --------- Probe-Payment-Server paysvr 9.9.9.2 FAIL Route-Action: route-instance route next-hop state ----------------- ----------------- ---------------- ------------- inet.0 9.9.9.0/24 e1-6/0/0.0 APPLIED
Sample Output
show services ip-monitoring status
When the probe fails and the policy is applied, the output is
as follows. The status of the route WITHDRAWED
indicates that this route is removed.
user@host> show services ip-monitoring status Policy - p1 (Status: FAIL) RPM Probes: Probe name Test Name Address Status ---------------------- --------------- ---------------- --------- p1 t1 200.20.2.2 FAIL Route-Action: route-instance route next-hop state ----------------- ----------------- ---------------- ------------- inet.0 111.111.111.1/32 10.208.128.1 WITHDRAWED
Release Information
Command modified in Junos OS Release 11.4 R2. Next-hop functionality added in Junos OS Release 12.1X46-D15.