Avantra Command Line Interface
How to use the Avantra Web Service by Command Line Executable
Avantra WebUI includes a command line executable called avantra to access the web service and to read and write data. To get it, follow the procedure below:
-
Go to About, then press Download Avantra CLI Package.
-
A dialog will open and show a command-line example of how to display the help screen of the Avantra CLI. Press Download 'avantra.zip'.
-
Unpack
avantra.zip. The package includes 3 files,avantra.jar,avantra.cfg, and eitheravantra.baton Microsoft Windows operating systems oravantraon Unix-like operating systems.avantraoravantra.batsimply calljava, so you might need to add the full path if Java cannot be found in the path. -
The file
avantra.cfgis pre-configured and contains the complete URL of Avantra WebUI so you do not have to provide it on the command line. Callavantrato get a usage overview of the command.You can as well include options
user=andpassword=to your config file so you don’t have to specify them on the command line.
|
For more information on Avantra CLI, follow this link |
Syntax of the Web Service Command Line Executable
The syntax is simple: avantra [options] [command] [command options].
If you have specified the URL, user, and password options in the avantra.cfg config file, the syntax is even more simple and just avantra [command] [command options].
The examples below show the options:
- Display the usage
-
avantraoravantra help - Display help of a command
-
avantra help [command]To show the complete syntax of the
lscommand, useavantra help ls - Show list of servers
-
avantra ls servers - Show a table of SAP systems of one customer only
-
avantra ls -l sapsystems@customer - Turn off monitoring for 120 minutes of monitored object ‘mozart’
-
avantra moni-off -name mozart -duration 120