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
TIA
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
airwolf
14 years ago
Posted by:
jkatkace
14 years ago
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. :-)
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
Posted by:
airwolf
14 years ago
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.
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?
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.
so that the conversation will remain readable.