# Unable to Connect to CommServe Server Behind a Firewall During Setup

## Symptoms

Connection to the CommServe server fails when testing connectivity between HyperScale nodes and a CommServe server located behind a firewall using the cvping command.

For more information, see
Connecting To a CommServe Behind a Firewall During Setup.

## Resolution

1. Log in to a node and register the individual node with the CommServe server as follows:

   1. Navigate to the following directory:

          /opt/commvault/MediaAgent

   2. Run the following script:

          # ./registertocs.py

      When prompted, provide the following information:

      - CommServe Hostname

        Type the fully qualified host name of the CommServe computer.

      - CommServe Client Name (optional)

        Type the CommServe client name if it differs from the CommServe host name.

      - CommServe User Name and CommServe Password

        Enter the credentials used to access the CommServe server.

      Alternatively, you can run the script directly with command-line options as shown below:

           ./registertocs.py -n $[MediaAgent Hostname] -c $[CommServe Hostname] -u $[CommServe Login Name] -p $[CommServe Login Password]

2. Configure the system to skip CommServe validation and registration checks during setup as follows:

   1. Edit the following file using vi or a similar text editor:

          $[/etc/CommVaultRegistry/Galaxy/Instance001/HyperScale/.cvmanager.cfg]

   2. Add the following entries:

          [Step_Control:ValidatePreInstall]
          validate_cs_setup=SKIP
          [Step_Control:Install]
          self.register_with_cs=SKIP

   3. Save the file.

3. Repeat these steps on the remaining nodes in the storage pool.

## Additional Information

### Examples

- Register node(s) with the CommServe server:

      # ./registertocs.py -n $[MediaAgent1] -c $[commserve.domain.com] -u $[admin] -p $[mypassword]

- Register remote nodes(s) with the CommServe server:

      # ./registertocs.py -n $[MediaAgent1] -c $[commserve.domain.com] -u $[admin] -p $[mypassword] -r $[MediaAgent1.com:MediaAgent1.com]

- Register with both client name and client hostname:

      # ./registertocs.py -cn $[ma1] -n $[MediaAgent1.domain.com] -c $[commserve.domain.com] -u $[admin] -p $[mypassword]

Note

If the password contains an exclamation mark (`!`), enclose the password in single quotes. For example: `'mypassword!4'`.

### Usage

    registertocs.py [-h] [-cn <Node Client Name>] [-n Node_Host_Name]
                    [-c <CommServe Hostname>] [-u <CommServe Login Name>]
                    [-p <CommServe Login Password>] [-r ma1:ma2] [-f]
                    [-csn <CommServe Client Name>]
                    [-a CommServe authCode registration method; does not require credentials.]
                    [-v]

### Optional Arguments

      -h, --help            show this help message and exit
      -cn <Node Client Name>, --clientname <Node Client Name>
      -n Node_Host_Name, --hostname Node_Host_Name
                            Required in non-GUI mode.
      -c <CommServe Hostname>, --commserver <CommServe Hostname>
                            Required in non-GUI mode.
      -u <CommServe Login Name>, --uname <CommServe Login Name>
                            Required in non-GUI mode.
      -p < >, --passwd <CommServe Login Password>
                            Required in non-GUI mode.
      -r ma1:ma2, --remotema ma1:ma2
      -f, --firewall        Disable firewall.
      -csn <CommServe Client Name>, --csname <CommServe Client Name>
      -a CommServe authCode registration method; does not require credentials., --authCode CommServe authCode registration method; does not require credentials.
      -v, --validate        Only attempt to validate the credentials, do no

×

Loading...