0 Replies Latest reply on Jul 4, 2014 12:04 AM by Muthu Krishnan

    JBOSS CLI Batch file created to capture JBOSS AS 7 runtime Statistics does not give any output when run from windows Task Scheduler.We have created the below JBOSS CLI script, when the script is executed manually all the output is generated in a file. But

    Muthu Krishnan Newbie

      We have created the below JBOSS CLI script, when the script is executed manually all the output is generated in a file. But When i add the same batch file in Task Scheduler of Windows 2008 it just prints ECHO outputs to a file. Can any one help us on this.

       

      @ECHO OFF

      call set NOPAUSE=true

      cd E:\App_Server\jboss-as-7.1.1.Final\bin

      Echo "%date%" >> E:\Monitor\SchStatsclone.txt

      Echo "%time:~0,8%" >> E:\Monitor\SchStatsclone.txt

      Echo JVM_Memory_Details_for_Scheduler_Server >> E:\Monitor\SchStatsclone.txt

      call jboss-cli.bat -c --controller=127.0.0.1:11999 --command="ls -l core-service=platform-mbean/type=memory:read-attribute" >> E:\Monitor\SchStatsclone.txt

      Echo DataSource_Pool_Details_for_Scheduler_Server >>  E:\Monitor\SchStatsclone.txt

      call jboss-cli.bat -c --controller=127.0.0.1:11999 --command="ls -l subsystem=datasources/data-source=ets_pool/statistics=pool:read-attribute" >> E:\Monitor\SchStatsclone.txt

      Echo DataSource_Jdbc_Details_for_Scheduler_Server >> E:\Monitor\SchStatsclone.txt

      call jboss-cli.bat -c --controller=127.0.0.1:11999 --command="ls -l subsystem=datasources/data-source=ets_pool/statistics=jdbc:read-attribute" >> E:\Monitor\SchStatsclone.txt

      Echo Web_AJP_Details_for_Scheduler_Server >> E:\Monitor\SchStatsclone.txt

      call jboss-cli.bat -c --controller=127.0.0.1:11999 --command="ls -l subsystem=web/connector=ajp:read-attribute" >> E:\Monitor\SchStatsclone.txt

      Echo Web_HTTP_Details_for_Scheduler_Server >> E:\Monitor\SchStatsclone.txt

      call jboss-cli.bat -c --controller=127.0.0.1:11999 --command="ls -l subsystem=web/connector=http:read-attribute" >> E:\Monitor\SchStatsclone.txt