DeveloperNet Professional Developer Avanti Product Banner PartnerNet Authorized ISV Partner
avanti's TaskMaster ® / TaskMaster Lite (TMLite)
Sample Tasks
Written by Avanti & Contributed by Users

TaskMaster supplements the NetWare .NCF batch processor with one supporting an easy to use script language allowing for conditional tests while also expanding the system environment information accessible to tasks. In addition to automating the scheduled execution of these tasks, multiple tasks can be run simultaneously.

The script language incorporates IF/ELSEIF/ENDIF, WHILE/LOOP, and CALL/GOTO execution path constructs supporting AND/OR conditionals and comparisons based upon equal to, greater than, less than, greater than or equal to, and less than or equal to logic. Well over 100 commands, conditional tests, and environment variables, plus dynamically defined variables which can be incremented and decremented, provide the functionality necessary to pro-actively monitor, manage, and adjust server resources. Manage communications buffers, connections, files, NLMs, screens, volumes, and even other tasks.

The script language combines the simplicity of DOS batch and System Login Script processing already familiar to most network administrators. No complex, obscure language or structures, no programming experience required. Sophisticated capabilities without over complicating its usability.


  Additional Information / Support Links
General FAQ: Frequently Asked Questions (FAQs) about avanti's products.
TaskMaster / TMLite FAQ Frequently Asked Questions (FAQs) about TaskMaster / TMLite.
TaskMaster SYNC FAQ: Frequently Asked Questions (FAQs) about TaskMaster's SYNC command.

TaskMaster Batch Reference: Batch Commands / Scripting Language Quick Reference for TaskMaster / TMLite.
TaskMaster Command Reference: Extended Console Commands Quick Reference for TaskMaster / TMLite.
TaskMaster Manual (Complete): Latest Electronic Copy (.PDF) of the TaskMaster / TMLite User's Guide
TaskMaster Tips & Tricks: Tips & Tricks for TaskMaster / TMLite Commands & Tasks



Sample Tasks (Avanti):
Sample tasks developed by Avanti to demonstrate TaskMaster's capabilities or as templates to assist Users in task logic design.

Connection Management


CLRCONNS.TSK : Selectively clear User connections (for backup or database rebuild)

NLICLEAR.TSK : Clear NOT-LOGGED-IN connections

TM_PING.TSK : Check availability of TaskMaster on Remote Server (comm check)


Date/Time Calculation


BACKDATE.TSK : Determine a previous date (i.e., ## days prior to the current day)
Note:   Calculated date fields (MM, DD, YYYY) can be used to format a date for file age comparisons (i.e., Last Accessed, Last Modified, etc.)

BIWEEKLY.TSK : Task which can be scheduled a specific day each week but will only execute bi-weekly.

MONTHDAY.TSK : Determine which weekday in month (i.e., 1st Monday, last Tuesday, etc.)


File System Management


DIRCOUNT.TSK : Traverse a directory tree listing directory and file counts for each subdirectory and totals for the tree

FILEPOLL.TSK : Poll an inbound directory for the presence of newly arrived files and process accordingly (copy to Remote Server then delete with logging and alerting)

HOME_DEL.TSK : Scheduled removal of User home directories (ex-workers, students, temps, etc.)

LOGTYPES.TSK : Search for and log files with names containing user defined file name(s) and/or extension(s) (.AVI, .MOV, .MP3, .NSF, etc.). A log is generated identifying the files, size, date created, & owner, plus disk space used and counts by type and overall.
Notes:   Requires TaskMaster v3.15c (or later)

MACNSFIX.TSK : Recursively search for Macintosh Name Space directories / files with invalid characters (not supported by DOS/LONG/NFS), logging those found and (optional) trying to rename them after substituting valid characters. (Fixes files with leading spaces, ampersands, asterisks, double quotes and questin marks in the Mac NS name.)
Notes:   Requires TaskMaster v4.10 (or later)

MIGRATE.TSK : Recursively scan for files matching specific patterns which were last modified (updated) more than a specified number of day ago then migrate (move) them to a different location (Local/Remote) maintaining the base directory structure for easy access/recovery, logging all processing which occurs.
Notes:   Requires TaskMaster v4.05 (or later)

NIMDA.TSK : Scan for and delete files deposited by the Nimda virus (Admin.dll if in the root directory of a volume, root.exe, *.eml, and *.nws files). A log is generated showing the files deleted, as well as the owner and last accessed date.
Notes:   Requires TaskMaster v3.13 (or later)

OLDFILES.TSK : Selectively remove files not recently accessed

PRUNE.TSK       : Selectively prune directories from a subdirectory tree

SCANFILE.TSK : Scan for and delete files containing a string
Note:   Useful as task to clear excess SMTP mail from a Groupwise GWIA queue

TRSTBKUP.TSK : Documents Trustee Rights / Creates .TSK to replicate/recreate them. (Disaster Recovery)   *** Updated: 02/01/2006 ***

VREPAIR.TSK   : Automated VREPAIR for mounted volumes


Log File Generation/Parsing


FSUPTIME.TSK : Parse SYS:VOL$LOG.ERR and ABEND.LOG info to document Server uptime.

HEADER.TSK     : Write a custom header record to an output redirection file

SYNCLOG.TSK   : Parse & E-Mail critical error messages from a SYNC output redirected log file

SYNCMAIL.TSK  : Basic SYNC task with logging and E-Mail (SMTP) report on completion

SYS$LOG.TSK   : Selectively parse critical error messages from SYS:SYSTEM/SYS$LOG.ERR

WEBFSCON.TSK : Generates .HTML page with Server Connection information/graphs
Notes:   Requires TaskMaster v3.16 (or later).   Sample .HTML page (click here)

WEBFSMEM.TSK : Generates .CSV log & .HTML page tracking Allocated Memory usage by NLM
Notes:   Requires TaskMaster v4.13 (or later).   Sample .CSV log (click here)   /   Sample .HTML page (click here)

WEBFSMON.TSK : Generates .HTML page with Server Status information/graphs
Notes:   Requires TaskMaster v3.13 (or later).   Sample .HTML page (click here)


NLM Management (Load/Unload / Keyin / Read Screen)


AVUNLOAD.TSK : Unload an Anti-Virus NLM module prior to Backup.

DBBACKUP.TSK : Shutdown Database for backup/rebuild processing then restart it

PROCUTIL.TSK : Load MONITOR NLM and activate specific screens to capture/log General and Process Utilization stats


Server Maintenance/Reporting


CHK_MODS.TSK : Collect and compare Loaded Modules list between Servers (one-to-one or one-to-many) with Summary Report (extra/missing modules & version discrepancies).

DSHEALTH.TSK : Perform basic NDS health check and unattended DSREPAIR with Summary Report

FSUPTIME.TSK : Parse SYS:VOL$LOG.ERR and ABEND.LOG info to document Server uptime.

PROCUTIL.TSK : Load MONITOR NLM and activate specific screens to capture/log General and Process Utilization stats

REBOOT.TSK     : Provide advanced warning then reboot the Server

SRVRALRT.TSK : Checks key System Environment Variables and performs alerts/actions

SRVRINFO.TSK : Displays Server information using System Environment Variables

SYS$LOG.TSK   : Selectively parse critical error messages from SYS:SYSTEM/SYS$LOG.ERR

WEBFSCON.TSK : Generates .HTML page with Server Connection information/graphs
Notes:   Requires TaskMaster v3.16 (or later).   Sample output from task (click here)

WEBFSMON.TSK : Generates .HTML page with Server Status information/graphs
Notes:   Requires TaskMaster v3.13 (or later).   Sample output from task (click here)


SMTP (E-Mail)


SYNCMAIL.TSK  : Basic SYNC task with logging and E-Mail (SMTP) report on completion


SYNC (Replication / Synchronization)


SYNC-3YR.TSK : Custom SYNC to process specific file patterns and skip files > 3 years old.

SYNC-GW.TSK : Snap shot SYNC of GroupWise directory tree followed by Full SYNC (designed to minimize GW PO down time)

SYNCDTSZ.TSK : Custom SYNC to process only files less than one year old and less than 10 MB in size.

SYNCLOG.TSK   : Parse & E-Mail critical error messages from a SYNC output redirected log file

SYNCMAIL.TSK  : Basic SYNC task with logging and E-Mail (SMTP) report on completion

SYNCMODF.TSK : Triggers a SYNC based upon a change (update) to a monitored file.

SYNCSMPL.TSK : Quick & simple SYNC task with logging.

SYNCTIME.TSK : Task for periodic SYNCs (at intervals of 0 - ? seconds after each SYNC).




Sample Tasks (Users):
Sample tasks as described and submitted by Users.

User Submitted Tasks:


TASK01.HTM : Replicate single 9GB volume to multiple destination Servers.

TASK02.HTM : Collect and log Groupwise GWIA Inbound / Outbound daily statistics.

TASK03.HTM : Transferring the SYS: Volume to a New Drive

Note: Contributions encouraged. Submissions should be commented sufficiently to document the intent and purpose of the task. Avanti reserves the right to modify the submissions as deemed appropriate for clarity or optimization. Submit sample tasks via E-Mail to: tech@avanti-tech.com