Previous Topic: Retrieve CIM ObjectsNext Topic: Use Interactive Mode


Invoking AutoShell

You can invoke AutoShell from a command-line interface by using the following command:

caaipaomautoshell.exe [-U username] [-P password] [-h host] [[-f] scriptfile] [scriptargs]] [-e expr] [-i]
-U username

Specifies a valid CA Virtual Assurance user. You can also set the user name by using the CAASUSER environment variable.

-P password

Specifies the password for that user. You can also set the password by using the CAASPASS environment variable.

-f scriptfile [scriptargs]

(Optional) Loads the specified script file with its optional script arguments. This parameter can be used multiple times.

-e expr

(Optional) Evaluates the specified expression.

-i

(Optional) Enters interactive mode after loading scripts.

-locale=locale

(Optional) Specifies an IS0 639_3166 combination (for example: fr_FR for French) to override the default English output. To use the locale of the command prompt, specify "native".

Examples

Run the hello.js script:

caaipaomautoshell.exe -U vaimuser -P topsecret -f hello.js

Calculate the value of 4*3:

caaipaomautoshell.exe -U vaimuser -P topsecret -e 4*3

Set the environment variables for username and password and calculate the value of sin(PI/2):

set CAASUSER=vaimuser
set CAASPASS=topsecret
caaipaomautoshell.exe -e Math.sin(Math.PI/2)

More Information

Use Interactive Mode

Use Remote Interactive Mode

Batch Mode

Remote Batch Mode

Valid AutoShell User