Previous  |  Next  >  
Product: Volume Replicator Guides   
Manual: Volume Replicator Advisor 4.1 User's Guide   

Collecting Data Using the VRAdv Command


Command

vradv -c


Syntax


vradv -c [-p process_type][–g diskgroup] [-v vol1 vol2...voln]
[-t duration[h/d]] [-f filename] [-i data_collection_interval] [-h]

Note   Note    When you run the command with all the parameters as shown above and press Return, the data collection process starts. If you specify the -c option only, the command prompts you for inputs. If you run the command without specifying any options or with the -h option, only the help is displayed.

Description

The vradv -c command enables you to collect the sample of data for one or more volumes in a dynamic disk group over a specified time duration. If you do not specify any options and only specify the command with the mode, the command prompts you to provide the parameters required to proceed with data collection.


Command Options

To collect data using the command line, run the vradv command with the required options from the command prompt. The following table lists the command options and their descriptions.

Option Description

-c

Specifies the data collection mode.

-p process_type

Specifies the process type for data collection. The available options are: vxstat and iostat.

-g diskgroup

Specifies the dynamic disk group name for which the data write statistics have to be collected. This option is available when process type is vxstat and the volumes are VxVM volumes.

-v volumes

Specifies the list of volumes under the selected dynamic disk group for which the data write statistics have to be collected. This option is used only when the process type is vxstat.

-t duration

Specifies the time duration over which the data has to be collected. The time specified can be in hours (h) or days (d).

For example, to specify 5 days, use the option –t 5d.

The default unit is d (days) and the default number of days is 14 days.

-f filename

Specifies the file name in which you want to save the data.

-i interval

Specifies the data collection time interval in seconds.

For example, –i 300 specifies that the data be collected at regular intervals of 300 seconds.

The default value is 120 seconds.

-h

Displays the help.


Example 1

The command in this example collects data writes for the volumes dgvol1 and dgvol2 of dynamic disk group mydg. The duration for data collection is seven days over an interval of 300 seconds. The data is collected in the file named data_collect.txt.


vradv -c -p vxstat -g mydg -v dgvol1 dgvol2 -t 7d -f data_collect.txt -i 300

where the data collection parameters have the following values:

Parameter Actual Values

-p process_name

vxstat

-g diskgroup

mydg

-v volumes

dgvol1, dgvol2

-t duration

7 days

-f filename

data_collect.txt

You can also specify the complete path for the filename in case you need to access it from a specific directory.

-i data_collection_interval

300 seconds


Example 2

This example illustrates the case when you do not specify any parameters for the vradv -c command. In this case, the command prompts you for the required parameters.

  1. Enter the following commands at the command prompt:
      # cd /opt/VRTSvradv/bin
      # ./vradv -c

    The command prompts you to enter the required information.

  2. Specify the required information at the prompts and press Return to continue.
    Enter information for Data Collection:
    Process Type [vxstat/iostat]: vxstat

    Group Name: ExchDg

    Volumes: Exch, Regrep

    Duration [(h/d) default 14 days]: 5d

    Data Collection Interval [value in seconds [120]]: 15

    File Name: data_sample

    A summary of the specified parameters is displayed; then VRAdvisor proceeds with the data collection.


    Data Collection information:
    - Process Name: vxstat
    - File Name: data_sample
    - Duration: 432000 seconds.
    - Data Collection interval: 15 seconds.
    Data Collection Started...
 ^ Return to Top Previous  |  Next  >  
Product: Volume Replicator Guides  
Manual: Volume Replicator Advisor 4.1 User's Guide  
VERITAS Software Corporation
www.veritas.com