Name
login
Synopsis
login [-h] -u USERNAME -p PASSWORD [-wch COMMCELLNAME] [-i INSTANCENAME] [-k KEY] [-f TOKENFILEPATH]
Description
Log on to a CommServe computer so that you can perform configuration, backup, and restore operations from the command line.
By default, the software logs on to Instance001. The encryption key is chosen by default unless you provide a key with the switch –k (key must be of 16 characters). The encryption key is used for the encryption of the token received after a successful login. The token file is named cvcsession and is saved at the following location:
If there is no local installation, provide the token file path with switch ‘-f’. Subsequent commands must use this token file with switch ‘-tf’. A user can have multiple sessions where each session is associated with a unique token file.
The table lists the options that the software supports.
|
Option |
Description |
|---|---|
|
-wch |
The CommCell Console host name. |
|
-p |
The password for the CommCell Console user. |
|
-u |
A CommCell Console user name. |
|
-i |
A CommCell Console instance name, for example Instance001. |
|
-k |
The 16-character encryption key. |
|
-tf |
The token file path. |
|
-h,--help |
Displays help. |
Examples
Log On to the CommServe Computer
The following command logs on to the CommServe computer. In this example, the parameters are listed on the command line.
python3 cvc.py login -u admin -p jdoe\!12 -f objfile -wch "168.42.42.42" -k "This is a key123"
Login SuccessfulLog On to a CommServe Computer Without Providing a Key
The following command logs on to a CommServe computer with the default encryption key. In this example, the parameters are listed on the command line.
python3 cvc.py login -u admin -p jdoe\!12 -f objfile -wch "168.42.42.90"
Login Successful