Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Viewing the Disaster Recovery Configuration and Status of Watchdog Services

date_range 23-Mar-24

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:

  1. 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.

  2. Enter 7 while 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:

    content_copy zoom_out_map
    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.

  3. Enter the administrator password.
  4. 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.

  5. (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:

    content_copy zoom_out_map
    [user1@host]# jmp-dr api v1 config --list
    {
      "sections": "role,failover,states,core,mysql,psql,file,watchdog,deviceManagement"
    }
    
  6. (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:

    content_copy zoom_out_map
    [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"
      }
    }
    
footer-navigation