/build/static/layout/Breadcrumb_cap_w.png

Custom Invertory and Alert

We need to gather a list of all *.ost files and there size on all of the client pcs and have the ability to print out report. Addtionally, we need to generate an email alert if they excees a certain size. Has anyone ever done something simlar of have a creative way to accomplish task?

TIA

0 Comments   [ + ] Show comments

Answers (4)

Posted by: airwolf 14 years ago
Red Belt
0
I don't know of any way to scan an entire disk for specific file extensions with the KBOX. You can inventory specific files, but you'd have to have the entire path including the filename. You could probably write something in VBS or AutoIt and use it as a dependency in a KScript to accomplish this.
Posted by: jkatkace 14 years ago
Purple Belt
0
To find all the files which match a certain name pattern, you may use the FilenamesMatchingRegexReturn() Custom Inventory function. You can then report on that custom inventory field.

If you want to print out their names and sizes, you should use ShellCommand*Return() Custom Inventory functions and write a bat file, vbs script, or cmd script which does what you want and prints it to standard output. With ShellCommandTextReturn(), the standard output of the shell command becomes the text value of the custom inventory field.

These functions are cross-platform, and will work on Mac, Windows and Linux.

A brief tutorial on using Custom Inventory Fields is available in the Getting Started video series: http://www.youtube.com/kboxbykace#p/f/4/64wrlB34dJU

Apologies for the annoying voice of the narrator. :-)
Posted by: airwolf 14 years ago
Red Belt
0
That's awesome! I wasn't aware the KBOX agent could scan an entire system for specific file patterns. This is great! I use custom inventory quite a bit, but I hadn't stumbled across FilenamesMatchingRegexReturn().
Posted by: airwolf 14 years ago
Red Belt
0
Wait, according to the tooltip for Custom Inventory Rules FilenamesMatchingRegexReturn() is only for Linux and Mac - that is probably why I haven't noticed/used it.


L M - FilenamesMatchingRegexReturn (fullpath, regex, type)


So, does it or doesn't it support Windows? Also, if a fullpath is required, does this mean the function can only scan a specified directory for file patterns? What if we need to scan the entire system?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

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