7 Replies Latest reply on Nov 16, 2012 8:44 AM by Frank Wils

    Software is getting re-installed frequently – Policy based LDAP queries with Uninstall association.

    Joby George Apprentice

      Hi All,

       

      We have automated few package installation with uninstall association and the SWD task is targeting to LADP queries (All machines of OU).

      Problem which I am facing here is   , the automated package is getting uninstalling and installing again and again without removing /adding the machines (workstations / laptops) to AD OU.

       

      I have referred many articles in this community and came to know that whenever the LANDesk Agent sending/running the Inventory and Policy.sync.exe (ldapwhoami.exe)   without domain user credential is causing the uninstallation. (Missing the LDAP Group info from inventory)

       

      But in my network, users are always logged into the machine and no one is logging to the machine with any local account. And laptop users may connect with VPN to the network whenever they required.

      Can someone share more inputs on this to trouble shoot this issue. 

      I)                    What are the situations to send and inventory to Core without LDAP info?

      II)                  What are the situation to miss LDAP info while running Policy.sync.exe ?

      III)                What are the conditions to trigger uninstallation , is it  related to last updated inventory OR is it related to currently running policy.sync.exe

       

       

      My LDMS Details:

      LANDesk Core: LDMS 9.0 SP2

      Inventory interval: 1 time per day between 6 am to 6 pm or IP address change.

      Policy sync interval: 1 time per day between 6 am to 6 pm or IP address change.

       

      Thanks in advance,

       

      Joby George

        • 1. Re: Software is getting re-installed frequently – Policy based LDAP queries with Uninstall association.
          synsa Specialist

          Hi joby, we had the exact same issue which cost us quite a lot of money in downtime.  I believe it was fixed with SP3 however we removed uninstall associations on core software due to the risks.  i'll try to dig up more information on the support case i had.

          • 2. Re: Software is getting re-installed frequently – Policy based LDAP queries with Uninstall association.
            SupportEmployee

            Hi Joby,

             

            This issue could be related to a defect that has been fixed. I would suggest you contact the support and provide the following information :

             

            • your patch level (all the patch post SP2)
            • The SchedQry.exe.log from managementsuite\log folder
            • look at TFS 20929

             

            Regards,

             

            Max

            • 3. Re: Software is getting re-installed frequently – Policy based LDAP queries with Uninstall association.
              Joby George Apprentice

              Hi All

               

              Thanks for the inputs.

               

              I have tested the same package  configuration in our test LAB ( LDMS SP3 ) , here also I am facing the issue, pacakges are getting re-installed again and again . That means this issue is there with SP3 too.

               

              How can I stop uninstallation  from from all policy applied machines ?

               

              Removed the uninstall association   -- no luck -- client is taking old   TaskID.XML files from  peer machines.

              Cancelled  the Task -  during the next policy sync ,uninstallation  is starting  ?

              Delete the Task - during the next policy sync ,uninstallation is starting  ?

               

              Any ideas please share

               

              Thanks in advance.

               

              Joby

              • 4. Re: Software is getting re-installed frequently – Policy based LDAP queries with Uninstall association.
                Frank Wils ITSMMVPGroup

                After removing the uninstall association, recreate the local DB by running c:\program files\landesk\ldclient\Clientdbutil.exe /create on the local machine. That should force-redownloading end re-evaluating all task xml's.

                 

                Frank

                • 5. Re: Software is getting re-installed frequently – Policy based LDAP queries with Uninstall association.
                  Rookie

                  I use this script to redo the LOCAL machine database

                   

                  ********

                  : Run as ADMINISTRATOR

                   

                   

                  cmd /c

                  del "C:\ProgramData\LANDesk\managementsuite\database" /q

                  del "C:\ProgramData\LANDesk\ManagementSuite\landesk\files" /q

                  del "C:\ProgramData\vulScan\*.xml" /q

                  del "C:\Program Files (x86)\LANDesk\LDClient\sdmcache\*.xml" /q

                   

                  net stop "Landesk Policy Invoker"

                  "C:\Program Files (x86)\LANDesk\\ldclient\clientdbutil.exe" /create

                  "C:\Program Files (x86)\LANDesk\\ldclient\clientdbutil.exe" /validate

                  net start "Landesk Policy Invoker"

                  "C:\Program Files (x86)\LANDesk\\ldclient\policy.sync.exe"

                  "C:\Program Files (x86)\LANDesk\\ldclient\policy.client.invoker.exe"

                   

                   

                  EXIT /B 0

                  **********************

                   

                  script is only used on X64 machine , so you might need to change the script a  bit for 32 bit

                   

                   

                   

                  I also got something similar to your problem

                  but we dont got SP3 yet , and we know our server database is not 100%

                  We also removed the uninstall associations so the user wont noticed the software list getting redone on the server triggering the uninstall/ reinstall depending on the policy and the package

                  • 6. Re: Software is getting re-installed frequently – Policy based LDAP queries with Uninstall association.
                    zman Master

                    I don't believe Clientdbutil.exe /create will work with a DB that already exists. I tested this on mine and it did not wipe the DB. There is a /UPDATESTATE <taskId> <statecode> <corename> line option so I think you could use this in lieu of nuking the DB. I've used similar scripts to Jean-Pierre's and they work just got to watch the hard coding.  I also stop the policy invoker before the deletes.

                     

                    Either way sounds like a bug to me. I don't usuall use the uninstall association and just script our own uninstalls.

                     

                    Here are some more settings for clientdbutil

                     

                    Command line syntax:

                      clientdbutil.exe /<Command> ...

                    where <Command> is one of following:

                      /BACKUP - Make a backup of the database.

                      /CREATE - Creates a new empty database.

                      /RESTORE - Restore the database from the backup made with /Backup command.

                      /VALIDATE - Health check of the database.

                      /UPDATESTATE <taskId> <statecode> <corename>

                    <taskId>        - Id for which the return code is to be updated.

                    <statecode>     - Code(number) to set invokerstate state to.

                    ExecuteContinue = 0

                    UndoContinue = 1

                    ExecuteRequested = 2

                    UndoRequested = 3

                    Executing = 4

                    Undoing = 5

                    Complete = 6

                    StopRequested = 8

                    Stopped = 8

                    <corename>      - Name of the core server.

                      /UPDATEPORTALSTATE <taskId> <statuscode> <corename>

                    <taskId>        - Id for which the return code is to be updated.

                    <statuscode>     - Code(number) to set invokerstate state to.

                    PS_UNKNOWN = 0

                    PS_COMPLETE = 1

                    PS_WORKING = 2

                    PS_FAILED = 3

                    PS_STOPPED = 4

                    • 7. Re: Software is getting re-installed frequently – Policy based LDAP queries with Uninstall association.
                      Frank Wils ITSMMVPGroup

                      I agree, it is better to handle the uninstalls in a much more controlled manner. /Create used to delete the DB if it still existed and build a new one... It can be that they changed that. A /DELETE and /CREATE can be scripted together, as in Jean-Pierre's script, but always test good before running on 100's of machines.

                       

                      Frank