3 Replies Latest reply on Jul 20, 2009 7:37 AM by Mach6

    computername Variable

    Rookie

      Hi does anyone know how i can get the standard %computername% variable to work in provisioning?

       

      I need to run a command for imaging that will understand the %computername% variable.

       

      I knw i need to add a user defined variable to landesk but cannot find any documentation on how?

       

      Thanks

        • 1. Re: computername Variable
          Employee

          See screenshot below. When you click Help on this screen, you get help specific to user variables.

          pic1.png

          See also this:

          pic2.png

          When you click that icon, you get following:

          pic3.png

          The variable you want is %ldHostname%. Caution: variable names are case sensitive.

          • 2. Re: computername Variable
            Rookie

            Thanks that is great - not sure how i missed that but hey..

             

            The problem is that that pulls the computername from the Database not from WMI - if i am correct?

             

            The thing is this is using computername before the image has even been applied so there is no entry in the Database for these machines - or is there?

             

            I can see some machines in the PXE provisioning Queue but they have different names to my WMI names which i what i need it to correspond to.

             

            for eg A machine name from WMI is

             

            MININT-4HPAID8P

             

            this is not visible in the PXE Queue but a

             

            00C29D56309 is

             

            That is the random name that Landesk gives a machine before it has the client installed but its also what it will pick up with %LdHostname%

             

            any way round this? Or if i am wrong correct me!

             

            Thanks

            • 3. Re: computername Variable
              Employee

              That number is actually not the LANDesk device ID.  It's the MAC address of the network card you are plugged into on the client device.  It is really the only easily accessible unique value that can be picked up during the PXE boot process.

               

              Using WMI to determine host name when imaging a machine is nearly useless, because the name needs to be assigned before WMI can readily report what it is.  In the case of reimaging a machine with the same name as before pulling from the DB is great.  In the scenario where it needs to be either renamed, or it's a new device you can use the CSVImport tool (found in the ManagementSuite directory on the core).  It will allow you to easily import MAC addresses and assign each one a device name.  The MAC addresses can either be provided by your OEM when you order, or (in the case of existing devices that simply need to be renamed upon reimaging) they can be gathered from the inventory.

               

              Here's a link on how to use CSVImport:

              http://community.landesk.com/support/docs/DOC-1534