Fetch mode is used first to collect statistics data from the environment as JetStream DR software operates over a period of time.

NOTE: SCT is only intended to be used in an environment where JetStream DR software has been deployed and is operational.

Script Infrastructure


[admin]$ python3 sct.py fetch -h


usage: sct.py fetch-statistics  

    [-h] [-o OUTPUTDIR] [-v DRVANAMES]

    [-r ROCVANAMES] [-m MSAIP] [-vi VCHOSTNAME]

    [-vu VCUSER] [-vp VCPWD] [-rm RSAMSIP]

    [-rvi RSVCHOSTNAME] [-rvu RSVCUSER]

    [-rvp RSVCPWD] [-d DURATION] [-i INTERVAL]


optional arguments:

    -h, --help     Show this help message and exit

    -o OUTPUTDIR, --stats-directory OUTPUTDIR     Directory into which collected statistics files are

        stored (default sct-stats)

    -v DRVANAMES, --drva-names DRVANAMES     Comma separated drva names, e.g., drva01

    -r ROCVANAMES, --rocva-names ROCVANAMES     Comma separated rocva VM names in recovery site

    -m MSAIP, --msa-ip MSAIP     Primary site MSA IP

    -vi VCHOSTNAME, --vc-hostname VCHOSTNAME     Primary site vCenter hostname

    -vu VCUSER, --vc-user VCUSER     Primary site vCenter username

    -vp VCPWD, --vc-pwd VCPWD     Primary site vCenter password

    -rm RSMSAIP, --rs-msa-ip RSMSAIP     Recovery site MSA IP

    -rvi RSVCHOSTNAME, --rs-vc-hostname RSVCHOSTNAME     Recovery site vCenter hostname

    -rvu RSVCUSER, --rs-vc-user RSVCUSER     Recovery site vCenter username

    -rvp RSVCPWD, --rs-vc-pwd RSVCPWD     Recovery site vCenter password

    -d DURATION, --duration DURATION     Duration in minutes for which the script runs.

        If no value is specified, then 2 iterations of statistics are collected

    -i INTERVAL, --interval INTERVAL     Interval in minutes to fetch statistics, default is 2 minutes


Credentials

Protected Site: To fetch statistics from the protected site, the following inputs are used:

-m MSAIP

The IP or FQDN of the Management Server Appliance.

-vi VCHOSTNAME

The FQDN of the vCenter where the JetStream DR is deployed.

-vu VCUSER

The username credential of the VMWare vCenter.

-vp VCPWD        

The password credential of the VMWare vCenter.


Recovery Site: To fetch statistics from the recovery site, the following inputs are used:

-rm RSMSAIP        

The IP or FQDN of the Management Server Appliance at the Recovery Site.

-rvi RSVCHOSTNAME

The FQDN of the vCenter at the Recovery Site where JetStream DR is deployed.

-rvu RSVCUSER

The username credential of the VMWare vCenter at the Recovery Site.

-rvp RSVCPWD

The password credential of the VMWare vCenter at the Recovery Site.


Operation Parameters

SCT can be tuned to fetch stats only from specific components of JetStream DR. The name of components should be provided as comma separated inputs using the following parameters:

-v DRVANAMES

Name or comma separated names of DR Virtual appliances in JetStream DR.

-r ROCVANAMES

Name or comma separated names of domains being recovered at the recovery site.

NOTE: If no input value is explicitly specified, all components of JetStream DR are considered.


SCT requires input for the total duration (in minutes) that statistics should be collected and input for the interval (in minutes) at what rate statistics are collected. The statistics collected during each interval are individually stored and then aggregated at the end of the total duration. These parameters are specified using the following inputs:

-d DURATION        

Duration in minutes to run script. 2 iterations of stats are collected if no value provided.

-i INTERVAL

Interval in minutes to fetch statistics. Default is 2 minutes.


By default, SCT creates a local directory sct-stats where all collected stats and generated reports are stored. A different directory can be specified for storing collected stats using the following parameter:

-o OUTPUTDIR

Directory into which collected statistics files are stored.


Files created by Fetch mode

Fetch mode example usage