/build/static/layout/Breadcrumb_cap_w.png

Run a .exe file before agent inventory?

Anyone know of the best method that would allow us to run an .exe file just prior to the KACE agent doing an inventory? 

We have an .exe file that grabs a bunch of values from SQL databases and programs (via .dll files) that then load that data into the registry - from there, we have custom inventory fields that read the registry information to report back to us. I'd like to have it where I can have KACE run this 'update.exe' file just before the agent checks in, so that way we have the latest information available in our inventory on the appliance. 

Best method to accomplish? 

Thanks!

0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: SMal.tmcc 10 years ago
Red Belt
2
you can tackle this in a couple of ways.

Run a kscript and call run kbot on success of the exe running.

or you can use the new trick i discovered of running an exe in the CIR then reading the results using pipe commands in the cir to chain command flow

here is an example from my blog

ShellCommandTextReturn(cmd /c cscript /b c:\programdata\dell\kace\user\fadmins.vbs&type c:\programdata\dell\kace\user\filteredadmins.txt )

http://www.itninja.com/blog/view/create-a-cir-to-get-a-clean-list-of-your-local-admins-and-then-filter-out-the-it-approved-admins-also-presented-at-dell-world-user-forum-2014-lessions-from-the-field

http://www.itninja.com/blog/view/understanding-pipe-commands-to-enhance-your-scripts

Comments:
  • Right now we have the agent checking in every 2 hours - if I ran the script (my guess is we would do a offline kscript since all the .exe is doing is populating registry values) every two hours, would that cause any conflicts with the Agent doing it's normal 2 hour check-in (data conflicts, etc)? I'm kinda liking the running the kbot on success of the exe running, only cause I don't have to worry about CIRs (still learning them) - bpatton 10 years ago
    • if you look for the blogs I did from my dell world session. I use cron settings to run my gatherer scripts so I can harvest the info later in CIRs
      depends on the info your are gathering whether you use off or online. just test it on a couple and see if you get the results you want. - SMal.tmcc 10 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ