Viewing the Disaster Recovery Configuration and Status of Watchdog Services
You execute the jmp-dr api v1 config command to view
the disaster recovery configuration and the status of the disaster
recovery watchdog services at the local site. You can use this command
to create custom failure-detection scripts. For more information about
using custom failure-detection scripts, see the Failure
Detection by Using Custom Failure-Detection Scripts section
in the Disaster Recovery Overview topic. You can also refer to the sample scripts located at var/cache/jmp-geo/doc/samples/
.
To view the disaster recovery configuration and the status of the disaster recovery watchdog services:
- Log in to the CLI of the Junos Space node at the site
on which the VIP or the eth0:0 interface is configured.
The Junos Space Settings Menu is displayed.
- Enter 6 (if you are using a
hardware appliance) or 7 (if you are using
a virtual appliance) at the Junos Space Settings Menu prompt to run
shell commands.
The following is a sample output from a virtual appliance:
admin@10.206.41.183's password: Last login: Mon Aug 17 06:17:58 2015 from 10.206.41.42 Welcome to the Junos Space network settings utility. Initializing, please wait Junos Space Settings Menu 1> Change Password 2> Change Network Settings 3> Change Time Options 4> Retrieve Logs 5> Security 6> Expand VM Drive Size 7> (Debug) run shell A> Apply changes Q> Quit R> Redraw Menu Choice [1-7,AQR]: 7
You are prompted to enter the administrator password.
- Enter the administrator password.
- Enter jmp-dr api v1 config at the shell prompt.
You can view the disaster recovery configuration and the status of all the disaster recovery watchdog services.
- (Optional) To view the sections of the disaster recovery
configuration, enter jmp-dr api v1 config –-list at
the shell prompt.
All available sections of the disaster recovery configuration from the remote site are displayed.
The following is a sample output:
[user1@host]# jmp-dr api v1 config --list { "sections": "role,failover,states,core,mysql,psql,file,watchdog,deviceManagement" }
- (Optional) To view selected sections of the disaster recovery
configuration, enter jmp-dr api v1 config –-include <section1>,<section2> at the shell prompt.
The following is a sample output of the core and deviceManagement sections:
[user1@host]# jmp-dr api v1 config --include core,deviceManagement { "core": { "peerVip": "10.206.41.41", "adminPass": "53616c7465645f5f7370616365313233126c3f3e6fd6257a81cded28f55d465c", "scpTimeout": 120, "peerLoadBalancerNodes": "10.206.41.42,10.206.41.44", "peerBusinessLogicNodes": "10.206.41.42,10.206.41.44,10.206.41.50", "peerDeviceMgtIps": "10.206.41.42,10.206.41.44,10.206.41.50" }, "deviceManagement": { "peerNodes": "10.206.41.42,10.206.41.44,10.206.41.50", "nodes": "10.206.41.182,10.206.41.183,10.206.41.184", "ip": "10.206.41.183,eth0" } }