0 Replies Latest reply on Jul 15, 2014 3:19 PM by richard mcleod

    ProvisionJob CreateProvisionJob fails on multiple target csv

    richard mcleod

      We have an nsh script that fails to run when the target file contains more than one device. It works no problem when there is only one device in the list.

       

      When we have 2+ devices in the target.csv file, it errors out with: Command execution failed. java.lang.NullPointerException

       

      sample output from our script failing (two devices in test2.csv):

      nshbox% ./cpj.nsh -f test2.csv -l ny

      Processing target file: test2.csv

      MAC address: 00-02-c9-ff-e3-10   Computer name: base05   Device state: Discovered

      MAC address: 00-02-c9-ff-c2-90   Computer name: base06   Device state: Discovered

      Processing finished.

      Using system package: /installation/rhel_6u4_prod

      Retrieving system package key...Success

      Using input file: test2-input.txt

      Creating the provisioning job...JOB_GROUP = /installation/hosts

      JOB_NAME = rhel_6u4_prod-test2

      JOB_DESCRIPTION = Provision rhel_6u4 Server

      SYSTEM_PACKAGE_KEY = DBKey:SDepotObjectModelKeyImpl:363345-1-18077627

      SERVER_PROPERTY_INSTANCE = null

      ACL_TEMPLATE_ID = 0

      INPUT_FILE = test2-input.txt

      TARGET_FILE = test2.csv

      Command execution failed. java.lang.NullPointerException

      Failed

      Exiting

       

      sample out from our script succeeding (one device in test.csv):

      nshbox% ./cpj.nsh -f test.csv -l ny

      Processing target file: test.csv

      MAC address: 00-02-c9-ff-e3-10   Computer name: base05   Device state: Discovered

      Processing finished.

      Using system package: /installation/rhel_6u4_prod

      Retrieving system package key...Success

      Using input file: test-input.txt

      Creating the provisioning job...JOB_GROUP = /installation/hosts

      JOB_NAME = rhel_6u4_prod-test

      JOB_DESCRIPTION = Provision rhel_6u4 Server

      SYSTEM_PACKAGE_KEY = DBKey:SDepotObjectModelKeyImpl:363345-1-18077627

      SERVER_PROPERTY_INSTANCE = null

      ACL_TEMPLATE_ID = 0

      INPUT_FILE = test-input.txt

      TARGET_FILE = test.csv

      DBKey:SJobModelKeyImpl:921518-1-20590288

      Success

       

      Running BSA 8.3.03.82 on Windows and yes I confirmed that I could create the provisioning job with each of the device listed in the file individually