iSeries (AS/400) Automation and Director Commands
The overall syntax of the DirectorCommand is:
java -jar Run.jar – com.minisoft.Director.manage.DirectorCommand [options]
where [options] are:
host=<host address> – default is “localhost”
port=<port> – default is 9996
user=<username> – Director management user name
password=<password> – Director management password
shutdown – Shut down the Director
status – Display the running configurations
startcfg=<cfg file name> – Start the named configuration file
stopcfg=<cfg name> – Stop the named configuration
restartcfg=<cfg name> – Restart the named configuration
reload=eformzcfg – Reload the eFORMzCfg.xml files
reload=printerscfg – Reload Printers.xml
reload=databasescfg – Reload Databases.xml
reload=archivecfg – Reload Archives.xml
So, the command to stop the Director using a submitted job would be:
SBMJOB CMD(QSH CMD('cd /minisoft ; /QOpenSys/QIBM/ProdData/JavaVM/jdk60/64bit/bin/java -Djava.awt.headless=true -jar Run.jar /minisoft com.minisoft.Director.manage.DirectorCommand user=minisoft password=password shutdown')) JOB(DIRECTOR) JOBD(MINISOFT)