Encrypting passwords for batch scripts
Use this Management Station script to encrypt passwords for downloading usage reports with a batch input file.
Syntax:
- Windows:
> encrypt-string.bat options
- Linux:
> ./encrypt-string.sh options
Options |
Description |
---|---|
-https |
Optional. Flag to indicate that Management Station is configured for HTTPS. The default is HTTP. |
-password MS_username_password |
Optional. Account password. If not specified, the script prompts you for the password. Recommended only if you plan on invoking this script via a custom script used to automate some operations. |
-port MS_port |
Optional. Port assigned to Management Station. Default is 8080 (http) or 8444 (https). |
-servername MS_host |
Required. Name or IP address of the Management Station. |
-username MS_username |
Optional. Management Station login user name. Default is Administrator. The script prompts for the account password. Your typing is not echoed on the screen. |
When you use a batch input file to download usage reports from multiple Management Station servers, you need to provide encrypted passwords for each Management Station account. This script prompts for a password string and encrypts it for you to copy and paste into the batch file. For details, see Generating billing reports.
Script example:
# ./encrypt-string.sh -servername hostLinux-5
Enter password for Administrator user:
Type in the string you would like to encrypt, and press ENTER:
Encrypted String is: qgtwSF8NF2dz7KIdbr9EJA==