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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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.
Answered 02/04/2010 by: airwolf
Tenth Degree Black Belt

Please log in to comment
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. :-)
Answered 02/04/2010 by: jkatkace
Purple Belt

Please log in to comment
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().
Answered 02/04/2010 by: airwolf
Tenth Degree Black Belt

Please log in to comment
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?
Answered 02/04/2010 by: airwolf
Tenth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity

Share