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
Release : 6.0.1
Component : AUTOMIC AUTOMATION INTELLIGENCE ENGINE
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.
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>