/build/static/layout/Breadcrumb_cap_w.png

Associated Files called in Custom Inventory Rule

Is it possible to create a Software Inventory item that has a script loaded in Associated Files and call that script from the Custom Inventory Rule?

I have a script that will return the list of critical Windows updates. Right now I'm calling that from a file share via a Custom Inventory Rule. I would like to do away with the file share as the only thing it's doing is serving up a few scripts I call this way.

So can I add the file to the Associated Files as: critical_updates.vbs

Then in Custom Inventory Rule call it: ShellCommandTextReturn(cscript //nologo critical_updates.vbs)


0 Comments   [ + ] Show comments

Answers (2)

Posted by: StockTrader 12 years ago
Red Belt
0

Hello,

 

I do not think this is possible but you can use an alternative approach.

You can define a K1000 Script ( http://k1000/adminui/kbot_list.php ), execute it periodically and then use a Sofware Inventory item to return the content of a file.

To clarify:

  1. the script will execute the action required and generate an output file with the output you require in a specified location
  2. The Custom Inventory rule will grab through the inventory the content of the output file,

The advantage is that if you define a script the payload of the script can be stored in the K1000 instead of a network share.

 Kind regards,

StockTrader 

Posted by: WhitzEnd 12 years ago
7th Degree Black Belt
0

Running that VBS at each inventory can cause a lot of overhead for you.  Also, a custom inventory rule wouldnt trigger the download of an associated file from the K1000.  I would run the VBS using a KScript on a schedule (possibly once or twice a day).  Have that export its results to a text file.  Then return the results of that in your custom inventory rule.  That will result in less overhead for the K1000.

Also, a custom inventory rule wouldnt trigger the download of an associated file from the K1000.

Don't be a Stranger!

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

Sign up! or login

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