Changes

User contributed software

251 bytes added, 14:30, 16 July 2008
Generic Library for scripted checks
Mailing list discussion: http://lists.wpkg.org/swish.cgi?query=ideas+for+features&metaname=swishtitle
Info: A Component'''WPKG.Utility''', a COM-based utility library to support external scriptsscripted 'Execute' checks.
Tired of writing scripts to support custom 'checks' in WPKG and then ?<br>Tired of writing parameter parsers for each and every one of them?<br>
This is a prototype script library based in a .WSC wsc (Windows Scripting Component) file that can be included into aims to reduce your script files typing to simplify the process of designing custom checksminimum.
It provides a skeletal framework to consolidate and collect useful functions for administrators. You can trim down your code and write your tests to a simple standard for re-usability and sharing with others.2 resources;
The WSC file contains a rough-* A way to consolidate and-ready command-line collect useful functions for administrators.* A simple parser and semi-automated parameter checks with options framework to debug code, trap errors develop reusable 'in-the-fieldscriptlets' and help build up a unified library of WPKG checks...and only takes one line in your scripts to implement!
It's a work in progress.
Features include;
* Simple parsing of command-lines to validate custom parameters.
* A growing collection of inbuilt built-in helper routines. (I'm adding things slowly!)
* A simplified approach for less experienced admins.
* All code is written in JScript to allow you to customise maintain compatibility with WPKG if you wish.js.* Examples Illustrations of 'less used' techniques.* ... being optimised as you read :-)
'''Documentation'''<br>
[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/readmegettingstarted.txt readmegettingstarted.txt] - A rough summary of how quick guide to use using WPKG.Utility.<br>[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/installingintegrating.txt installingintegrating.txt] - An quick A guide to installationusing scriptlets with WPKG.<br>[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/WPKGparser.txt WPKGparser.txt] - A rough summary of how guide to use using the parser to make scriptlets.<br>[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/advanced.Utility with txt advanced.txt] - A guide to more advanced techniques.<br>[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/history.txt history.txt] - About the origins of WPKG.Utility.<br>
[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/aboutWSC.txt aboutWSC.txt] - A rough guide to Windows Scripting Components.<br>
'''Script Scriptlet Library'''<br> Please note: These scripts need amendments made to them to locate the WPKG.Utility .wsc file.  [http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/DiskTotalV100DiskTotalV101.js DiskTotalV100DiskTotalV101.js] - Checks a drive for a given total space.<br> Usage: [cscript.exe] DiskTotalV100DiskTotalV101.js <Drive|Path> <lessthan|lessthanorequalto|etc> <Megabytes><br> Returns: 0, if the test succeeded, 1 if the test failed.<br>
[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/DiskFreeV100DiskFreeV101.js DiskFreeV100DiskFreeV101.js] - Checks a drive for a given free space.<br> Usage: [cscript.exe]DiskFreeV100DiskFreeV101.js <Drive|Path> <lessthan|lessthanorequalto|etc> <Megabytes><br> Returns: 0, if the test succeeded, 1 if the test failed.<br>
[http://dev.bus.brighton.ac.uk/kej/WPKG/Utilities/DiskExistsV100DiskExistsV101.js DiskExistsV100DiskExistsV101.js] - Checks to see if a drive physically exists.<br> Usage: [cscript.exe]DiskExistsV100DiskExistsV101.js <Drive|Path><br> Returns: 0, if the test succeeded, 1 if the test failed.<br>
Anonymous user