{"id":4262,"date":"2016-08-31T17:29:14","date_gmt":"2016-08-31T17:29:14","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=4262"},"modified":"2016-08-31T17:29:49","modified_gmt":"2016-08-31T17:29:49","slug":"iseries-as400-automation-and-director-commands","status":"publish","type":"post","link":"https:\/\/alt2.minisoft.com\/support\/iseries-as400-automation-and-director-commands\/","title":{"rendered":"iSeries (AS\/400) Automation and Director Commands"},"content":{"rendered":"<p>The overall syntax of the DirectorCommand is:<\/p>\n<p><code>java -jar Run.jar \u2013 com.minisoft.Director.manage.DirectorCommand [options]<\/code><\/p>\n<p>where [options] are:<\/p>\n<p>host=&lt;host address&gt; \u2013 default is \u201clocalhost\u201d<br \/>\nport=&lt;port&gt; \u2013 default is 9996<br \/>\nuser=&lt;username&gt; \u2013 Director management user name<br \/>\npassword=&lt;password&gt; \u2013 Director management password<br \/>\nshutdown \u2013 Shut down the Director<br \/>\nstatus \u2013 Display the running configurations<br \/>\nstartcfg=&lt;cfg file name&gt; \u2013 Start the named configuration file<br \/>\nstopcfg=&lt;cfg name&gt; \u2013 Stop the named configuration<br \/>\nrestartcfg=&lt;cfg name&gt; \u2013 Restart the named configuration<br \/>\nreload=eformzcfg \u2013 Reload the eFORMzCfg.xml files<br \/>\nreload=printerscfg \u2013 Reload Printers.xml<br \/>\nreload=databasescfg \u2013 Reload Databases.xml<br \/>\nreload=archivecfg \u2013 Reload Archives.xml<\/p>\n<p>So, the command to stop the Director using a submitted job would be:<\/p>\n<p><code>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)<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The overall syntax of the DirectorCommand is: java -jar Run.jar \u2013 com.minisoft.Director.manage.DirectorCommand [options] where [options] are: host=&lt;host address&gt; \u2013 default is \u201clocalhost\u201d port=&lt;port&gt; \u2013 default is 9996 user=&lt;username&gt; \u2013 Director management user name password=&lt;password&gt; \u2013 Director management password shutdown \u2013 Shut down the Director status \u2013 Display the running configurations startcfg=&lt;cfg file name&gt; \u2013 Start [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,1],"tags":[81],"_links":{"self":[{"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/4262"}],"collection":[{"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=4262"}],"version-history":[{"count":2,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/4262\/revisions"}],"predecessor-version":[{"id":4264,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/4262\/revisions\/4264"}],"wp:attachment":[{"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=4262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=4262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=4262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}