Running AVCLI Scripts
You can run AVCLI scripts without user intervention or putting credentials inside the script.
An AVCLI script contains a series of AVCLI commands. You can run an AVCLI script from the shell. Valid AVCLI script names have a .av extension.
Here is an example AVCLI script:
#Here is an AVCLI command
start collection for secured target sample_target1 using host sample_host1 from table SYS.AUD$;
#More AVCLI commands
#Quit command
quit;
-
Log in to the server where AVCLI is installed as a user who has been granted the
AV_ADMINrole. -
Use the following syntax to run the script:
avcli -u username -f scriptname.avFor example:
avcli -u psmith -f myscript.av AVCLI : Release 20.1.0.0.0 - Production on <timestamp> Copyright (c) 1996, 2020 Oracle. All Rights Reserved. Enter password for 'psmith': <password> Connected to: Oracle Audit Vault Server 20.1.0.0.0 AVCLI> <the script myscript.av executes>If you have stored administrator credentials, to run an AVCLI script, use the appropriate command below:
-
avcli /@ -f sample_script1.avThis command uses the stored credentials, connects to the Audit Vault Server, and runs the script.
-
avcli -f sample_script2.avYou can use the above command if you include the following command at the beginning of your script:
connect /@Then the script runs using the stored credentials, and connecting to the Audit Vault Server.
-
Related Topics