Running the AAI CLI run_report.py on a server with two instances of AAI has an error code with the wrong version.
search cancel

Running the AAI CLI run_report.py on a server with two instances of AAI has an error code with the wrong version.

book

Article ID: 212048

calendar_today

Updated On:

Products

Automic Automation Intelligence

Issue/Introduction

Running AAI CLI to generate reports on a server with two AAI instances, one at 6.0.1-3 and the other running 5.8.6 is failing, and showing it is connecting to the wrong version of AAI.

 

/<Install Dir>/batch/run.pl run_report.py 'test_report' [email protected] -attach True

 

JAWS Command Line Interface (6.0.1-3, ue-3-Unversioned directory-202007211944)

 

 

Report name:test_report_private_pdf

Recipients: 1

Mail server: localhost

 

Connected to JAWS server: JAWS (5.8.6)

Message: JAWS Test Server

 

 

Environment

Release : 6.0.1

Component : AUTOMIC AUTOMATION INTELLIGENCE ENGINE

Resolution

If you have multiple AAI enviornments on the same server or  you are using https and not using the default port of 8080 you will need to specify the port and protocol in the CLI like below.

./run.pl lib/run_report.py testReportName [email protected] -attach True -server serverName -port 8443 -protocol https -smtphost smtpServerHostname

 

For HTTPS you must also do some additional configuration in the /<Install Dir>/lib/jaws_ssl.py file.

 

1. Edit the jaws_ssl.py file.

  • Uncomment and update the trustStoreLocation with the full path to the keystore. Make sure there are no blank spaces at the beginning of the line.
  • Uncomment and update the password. Make sure there are no blank spaces at the beginning of the line.

 

3. Save the file.

 

4. Run the cli with specifying the port and protocol like below:

./run.pl lib/run_report.py testReportName <[email protected]> -attach True -server serverName -port 8443 -protocol https -smtphost <smtpServerHostname>