8 Replies Latest reply on Aug 14, 2017 12:30 PM by jaysmith

    Unable to get or apply Agent Settings

    Gjstewart Specialist

      Can anyone help with this problem - or has anyone else seen it.

       

      We are migrating our Agents over from a 95 core and this is what we see.

       

      A fresh machine and fresh install no problems.

       

      I run a uninstallwinclient with forceclean and registry clean, directory clean so there is no trace of the agent.

       

      When we install the 2016 agent we can scan it from the console, but if i scan it in a task i get this error.

      We can run a repair job for patches however it will return this error - the part of the log file that is the issue is this.

       

       

       

      Fri, 11 Aug 2017 20:31:48 Calling 'ApplyBehavior' in 'C:\Program Files\LANDesk\LDClient\InventorySettingsBehavior_Apply.dll'

      Fri, 11 Aug 2017 20:31:48 SOFTWARE\LANDesk\ManagementSuite\WinClient\IncludeNET registry value is 1 so we need to check if .NET 4.0 is already on the client or not

      Fri, 11 Aug 2017 20:31:48 Already have .NET installed so skip it

      Fri, 11 Aug 2017 20:31:48 InventorySettings_Apply.dll Failed to load our behavior from 'C:\ProgramData\vulScan\InventorySettingsBehavior_VM841_v575_38F14.xml'.  Returning failure

      Fri, 11 Aug 2017 20:31:48 ERROR: failed to 'ApplyBehavior' for InventorySettingsBehavior, ID VM841_v575_38F14

      Fri, 11 Aug 2017 20:31:48 Checking whether to unzip 'C:\ProgramData\vulScan\ClientConnectivityBehavior_Apply.zip'.  Force: false

      Fri, 11 Aug 2017 20:31:48 GetFileHash: could not find "C:\ProgramData\vulScan\ClientConnectivityBehavior_Apply.zip"

      Fri, 11 Aug 2017 20:31:48 Calling 'PreApplyBehavior' in 'C:\Program Files\LANDesk\LDClient\ClientConnectivityBehavior_Apply.dll'

      Fri, 11 Aug 2017 20:31:48 Client connectivity settings pre-apply dll

       

      The settings file is downloading from the core - the XML file is on the client

       

      I have tried replacing the inventorysettingsbehavior_apply.dll from a working machine. No joy.

       

      I have resaved the agent settings - no joy -

       

      the problem is this fail in the vulscan.log file will send a fail status back to the core.

       

      out of 300 machines 135 of them behave like this. so from a status stand point it looks bad - these are the 300 first machines we are cutting over -

       

      Landesk is saying to recreate the agent from scratch and all settings which i am reluctant to do as i have already tried brand new settings and the agent we have works on a fresh machine - we even see it working on machines that have been cut over but the majority are failing with this error.

       

      if anyone can chime it would be greatly appreciated - the call is still open with landesk support also just seeing if the community can help.

        • 1. Re: Unable to get or apply Agent Settings
          jaysmith SupportEmployee

          I have seen this and similar issues from time to time after a core upgrade.  Sometimes agent settings from the older core don't apply correctly or vulscan gets 'stuck' on a bad or old setting.

           

          I would do two things:

           

          1. run vulscan /showui /reset on a problematic client.  This will clear all existing agent behavior xml files.
          2. Create a change agent settings task and re-assign the correct agent setting to that machine. 

           

          If you still see the problem, then recreate the agent setting by copying it and pasting and then apply that completely new agent setting to the device.

          • 2. Re: Unable to get or apply Agent Settings
            Gjstewart Specialist

            Will try this now thanks Jay

             

            This was a fresh server 2016.3 - we have the 95 core still operational - so it was not upgraded.

             

            Will let you know how i get on. -

            • 3. Re: Unable to get or apply Agent Settings
              jaysmith SupportEmployee

              Did you use the same DB from your 9.5 core?  Or a brand new DB? 

               

              Those steps may still still resolve the issue, let me know.  If not, turn on verbose and xtrace logging and grab a new vulscan log.

              • 4. Re: Unable to get or apply Agent Settings
                Gjstewart Specialist

                Sadly i am getting the same error - in console - when i send the task to change settings

                I have noticed its not just vulscan - on these machines any task will fail with

                 

                unable to get or apply agent settings

                 

                If i create a scan task - it will fail

                if we scan from console but right clicking it will succeed.

                 

                I dont think its not doing the tasks - but the feedback is always failed unable to get or apply agent settings

                 

                so its not working - we cannot reimage all our machines with this issue because i am pretty sure out of 5000 + we are going to see this on over 3000 machines.. if not more.

                • 5. Re: Unable to get or apply Agent Settings
                  Gjstewart Specialist

                  Brand new DB and server - completely separate

                   

                  I am sure xtrace is already on but let me check - be back soon!

                  • 6. Re: Unable to get or apply Agent Settings
                    Gjstewart Specialist

                    Just an update sending a powershell package to change logging options did not return same error...

                     

                    Will run vulscan again now - i had xtrace on just not verbose. verbose is now on. will post results

                    • 7. Re: Unable to get or apply Agent Settings
                      Gjstewart Specialist

                      Ok so we have success!

                       

                      Mon, 14 Aug 2017 10:14:30 InventorySettingsBehavior_Apply.dll InventorySettings_Apply.dll Failed to load our behavior from 'C:\ProgramData\vulScan\InventorySettingsBehavior_VM841_v575_38F14.xml'.  Returning failure

                      Mon, 14 Aug 2017 10:14:30 Vulscan.dll ERROR: failed to 'ApplyBehavior' for InventorySettingsBehavior, ID VM841_v575_38F14

                       

                      this was in the logs. I then resent the change settings just for the inventory settings and that task succeeded ( which the previous change settings one did not - the only difference was i only sent the update to the setting that failed )

                       

                      I then re ran the repair task and it went through with no fail -

                       

                      I am going to now try sending -  all settings to a problem machine and see if that will error or i need to identify the exact setting and send it individuall y to each machine. ( hoping that isn't the case! )

                       

                      Also at this stage i do not know if this will return - I will post how things go in case anyone else has the issue.

                       

                      Thanks for the extra info though much appreciated

                      • 8. Re: Unable to get or apply Agent Settings
                        jaysmith SupportEmployee

                        When I've seen this occur before it's generally because of one specific setting XML that is problematic.  If it was your inventory setting for the one machine, it's pretty likely to be that same inventory setting for the rest of the machines.  

                         

                        Did you try the vulscan /reset?  This clears the agent setting xmls client side.  That may be all you need.  If so it can easily be scripted.  If not, then I'd push out just the one inventory setting to all devices and see how that goes.