Commvault End-User Command Line (cvc) Interface Operations for Virtual Server Agent

You can perform Virtual Server Agent (VSA) browse and restore operations by using the Commvault End-User Command Line Interface (cvc).

You can perform the following operations:

  • Log on to a local CommServe computer or a remote CommServe computer where you want to perform the operations.

  • Browse the subclient data

  • Perform any of the following restore operations:

    • In-place

    • Out-of-place

    • Point-in-time

  • Kill, pause or resume a job

The user running the Commvault End-User Command Line Interface (cvc) operations must have permission to the /tmp/cvc directory to write to the cvc.log log file.

Note

You can use the Commvault End-User Command Line Interface (cvc) on UNIX configurations.

Procedure

  1. Enable the command line (cvc) interface operations for the Virtual Server Agent (VSA).

  2. Set the PYTHONPATH environment variable. On the command line, type the following command:

    export PYTHONPATH=<software_install_path>/Base/PythonSDK

    where software_install_path is the Commvault software installation directory.

  3. Make sure that you are in the correct directory to run the command. On the command line, type the following command:

    cd <software_install_path>/Base

    where software_install_path is the Commvault software installation directory.

  4. Add the EnforceUnixUserPermissionsOnRestore additional setting to the CommServe computer, to perform command line (cvc) operations as a non-root user, as shown in the following table:

    For instructions about adding an additional setting from the CommCell Console, see Adding an Additional Setting from the CommCell Console.

    Property

    Value

    Name

    EnforceUnixUserPermissionsOnRestore

    Category

    CommServDB.GxGlobalParam

    Type

    Integer

    Value

    1

  5. You can run the Commvault End-User Command Line Interface (cvc) on UNIX configurations.

    • On UNIX, run the cvc command to run backup and restore operations or the cvrecover command when you only want to run restore operations. On the command line, type the following command:

      Backup operations and restore operations

      ./cvc
  6. Optional: To view documentation for the Python SDK Wrapper, type the following command:

    >./cvc
    Starting prompt...
    >>> help

To learn more, we recommend that you explore the examples or code snippets.

Loading...