2 Replies Latest reply on Apr 22, 2010 6:11 AM by Bill Robinson

    Run jobs on specific app server

    Matt Hausmann

      Hi all,

       

      We're licensing a large amount of servers so I have two jobs set up, one that creates a hosts_unlicensed file, and another that runs getlic against the file to generate the license.raw.

       

      The script is as follows:

       

          <script>

          #!/wload/bl8t/nsh/bin/nsh


          cd //@


          #These options for debugging.

          id

          pwd

          hostname


          #Main body

          cd //@/tmp/Agent_License

          //@/getlic -f /tmp/Agent_License/hosts_unlicensed

          </script>

       

      This environment has three BL App servers with one that is configured to not run any jobs (Maximum concurrent jobs = 0) which is specifically for provisioning.

       

      When I run the above mentioned job, I notice in the job log that it is trying to run the job on the provisioning app server. See the job log below:

       

          <log_snip>

          rp0900001.domain.com Info Apr 21  2010 5:44:12 PM uid=1502(bladmin) gid=1502(bladmin) groups=1502(bladmin)

          rp0900001.domain.com Error Apr 21  2010 5:44:12 PM //@/wload/lb7t/nsh/tmp/application_server/scripts/job__c2aba594-006c-4085-8757-64ebd23e94b6/script_DBKey-SJobKey-2001352-6__b81581d0-5152-44bd-a26a-3ba2b66d9dbe.2000845.1_2001548.1_2001546.1_nsh.sh:cd:11: no such file or directory: //@/tmp/Agent_License

          rp0900001.domain.com Info Apr 21  2010 5:44:13 PM /

          rp0900001.domain.com Info Apr 21  2010 5:44:13 PM rt0900036

          rp0900001.domain.com Error Apr 21  2010 5:44:13 PM Error accessing file /tmp/Agent_License/hosts_unlicensed

          rp0900001.domain.com Info Apr 21  2010 5:44:13 PM Exit Code 1

          </log_snip>

       

      Anyone have an idea of how to force a job to run on a specific app server, or a way to make sure it won't run on our provisioning server?