8 Replies Latest reply on Jun 24, 2011 9:22 AM by cbasoli NameToUpdate

    BLCLI provisionDevice command don't work

      I execute BLCLI Provision provisionDevice command to provision an MAC address based in parameters contained in file but command don't work and display error.

       

      This is the command BLCLI executed:
      blcli_execute Provision provisionDevice 54657 xx-xx-xx-xx-78-F0 0 file:///c:/bao/propfile.txt

       

      Result:
      Command execution failed. java.lang.NumberFormatException: null

       

      somebody know, what is the possible error on command or file?

        • 1. Re: BLCLI provisionDevice command don't work
          Bill Robinson

          can you post the contents of the txt file ?

          • 2. Re: BLCLI provisionDevice command don't work

            ok thaks for your quick anwer, by the way

             

            we have  Bladelogic 8.0 on windows 2003 server

             

             

             

            # MAKE SURE NO TRAILING OR LEADING WHITESPACE IN VALUE
            SystemPackage.LocalProperty.DATA_STORE=Class://SystemObject/DataStore/Pxe DataStore/Linux Datastore
            SystemPackage.LocalProperty.IP_ADDRESS=192.168.87.210
            SystemPackage.LocalProperty.SUBNET_MASK=255.255.255.0
            SystemPackage.LocalProperty.DEF_GATEWAY=0.0.0.0
            SystemPackage.LocalProperty.DNS_SERVER=10.10.37.129
            SystemPackage.LocalProperty.DNS_SERVER2=10.10.37.129
            Network.AutoDNSEnabled=false
            Network.DNSAddress.Primary=10.1.1.1

             

             

            We tried with differents ways to execute command  on cli and the error was :Command execution failed. The inputFile could not be read

            • 3. Re: BLCLI provisionDevice command don't work
              Bill Robinson

              my guess would be you need to run a dos2unix on it (remove control characters), or maybe the space in the DATA_STORE is throwing it off? (put double quotes around it)

               

              or you need to say file:///c/bao/propfile.txt (no c:)

              • 4. Re: BLCLI provisionDevice command don't work

                I tried :blcli_execute Provision provisionDevice 54657 00-50-56-B3-78-F0 0 file:///c:/bao/propfile.txt and the command respond:Command execution failed. com.bladelogic.mfw.util.BlException: Invalid ip address value for Network.DNSAddress.Primary

                 

                What is the correct way to build property file?

                 

                those are the parameters in the file:

                 

                # MAKE SURE NO TRAILING OR LEADING WHITESPACE IN VALUE
                SystemPackage.LocalProperty.DATA_STORE=Class://SystemObject/DataStore/Pxe DataStore/Linux Datastore
                SystemPackage.LocalProperty.IP_ADDRESS="192.168.87.210"
                SystemPackage.LocalProperty.SUBNET_MASK="255.255.255.0"
                SystemPackage.LocalProperty.DEF_GATEWAY="192.168.87.1"
                SystemPackage.LocalProperty.DNS_SERVER="192.168.87.1"
                SystemPackage.LocalProperty.DNS_SERVER2="192.168.87.1"
                Network.AutoDNSEnabled=false
                Network.DNSAddress.Primary="192.168.87.1"

                 

                When I specify a ip_addres, the correct way to put it on the file is?

                 

                SystemPackage.LocalProperty.IP_ADDRESS="192.168.87.210"  or 192.168.87.210 or 192168087210 or '192.168.87.210'

                 

                Bladelogic make an ip config check?

                • 5. Re: BLCLI provisionDevice command don't work
                  R V

                  Where did you get the file-format that you used? In the HTML-blcli-help you find some (maybe all) entries you can use. One of them is:

                   

                  Network.NameService.PrimaryDNSServer=[valid ipv4 address] (required)

                   

                  And another on:

                  Network.NameService.SecondaryDNSServer=[valid ipv4 address] (optional)

                   

                  Maybe you give them a try.

                  • 6. Re: BLCLI provisionDevice command don't work

                    These was the finally solution used :

                    # MAKE SURE NO TRAILING OR LEADING WHITESPACE IN VALUE
                    SystemPackage.LocalProperty.DATA_STORE=Class://SystemObject/DataStore/Pxe DataStore/Windows 2003 Datastore
                    SystemPackage.LocalProperty.NAME=SYNBLTESTWIN
                    #SystemPackage.LocalProperty.IP_ADDRESS=
                    #SystemPackage.LocalProperty.SUBNET_MASK=
                    #SystemPackage.LocalProperty.DEF_GATEWAY=
                    #SystemPackage.LocalProperty.DNS_SERVER=10.10.37.129
                    Network.DHCPEnabled=true
                    Network.AutoDNSEnabled=true
                    Job.Provision.JOB_FOLDER_ID=2000119
                    Job.Provision.JOB_NAME=Windows 2003 x86_32_SYNBLTESTWIN

                     

                    and it worked fine!!!!

                    • 7. Re: BLCLI provisionDevice command don't work
                      S Crawford

                      We ran into the same error and then found out we had to add the JOB_FOLDER_ID and JOB_NAME properties to the input file.  The first time we ran this it was fine but now when we try to run it again we get this:

                       

                      Job.Provision.JOB_FOLDER_ID=2004270

                      Job.Provision.JOB_NAME=AIX_6.1_TL05

                       

                      Info Mar 3, 2011 8:48:15 AM DEBUG: com.bladelogic.mfw.util.BlException: An instance named 'AIX_6.1_TL05' already exists in class Class://SystemObject/Server/PROVSERVER

                       

                      It sounds like the JOB_NAME needs to be different everytime we run the provisioning job.  Is this really true?

                      • 8. Re: BLCLI provisionDevice command don't work

                        I have also found that the Job.Provision.JOB_NAME needs to be unique.  In the interest of time I am simply appending a guid to the JOB_NAME and that seems to working.