NS EventQ Cleanup Script
Filed under:
Notification Server
Cleanup
Submitted by Antonp on 10 July, 2008 - 10:53.
Everyone has seen the "Bad" folders in NS Event queues and if not deleted they grow and grow, waste disk space and also decrease server performance.
Yes, you can manually delete them, but people tend to forget about them.
I created this script so that I don't have to repeat the same job over and over again and waste time, this script does it automatically for me.
How the script works:
- Detect if the "Bad" folder exists in eventqueue folders.
- If it does exist, then the script will delete the folder and all it's content and make a log entry (c:\EvtQBADlog.txt).
- If it doesn't exist, then nothing changes except an entry into the log file stating what has happened. Nothing, "file does not exist".
How to use the script:
- Download the attached .zip file and extract to the local drive on the server where you are going to run the script.
- Schedule a task, in Task Scheduler, a Microsoft tool.
- (Start\All Programs\Accessories\System Tools\Task Scheduler)
- Configure the schedule that best suits you, example: daily, weekly, monthly, etc.
Script will now run on the schedule configured and delete "Bad" folders for you, and record the changes in the log file.
Note: Working on the date- and timestamps for the log file, any help will be appreciated.
| License: | AJSL By clicking the download link below, you agree to the terms and conditions in the Altiris Juice Software License |
| Support: | User-contributed tools on the Juice are not supported by Altiris Technical Support. If you have questions about a tool, please communicate directly with the author by visiting their profile page and clicking the 'contact' tab. |
(35 votes)
| Attachment | Size |
|---|---|
| EvtQBad_Detect_Delete_Log_v1.1.vbs_.zip | 788 bytes |
| EvtQBad_Detect_Delete_Log_v1.0.vbs_.zip | 672 bytes |
- Login or register to post comments
- 1800 reads
- Printer-friendly version
















Delete Them?
Dont' you want to review some of them to see if you have a bigger problem before you delete them all?
"Bad" folder deletion
As i mentioned in the article that you schedule the script to run,a schedule that you decide on, can be once a month, enough time to troubleshoot errors.
You would normally use your Altiris Log Viewer to monitor any errors and in the event that a major error does arise, go to the bad folders to further troubleshoot them.
This script is just to prevent the bad folders from building up and waste disk space.
Nice tool
Antonp
As a "feature request", a drive variable would be useful for those that do not install applications on C:. :-)
Updated
The script was updated to look for the "BAD" folder in the d:\ aswell if your programs are installed on that partition. So your D:\ will be scanned and there will be a seprate log for each partition scanned.
Try it and let me know if it helps.
Use a registry value
If you dont want the script to have a hardcoded location, you could have it grab the "HKLM\SOFTWARE\Altiris\eXpress\Notification Server\InstallPath" value and then add "NSCap\queuename" to it.
tagged workflow?
Great article... thansk for the script. Why is this tagged "Worfkflow"? I blame Ohzone....
Jonathan Jesse
Director of Training
ITS Partners
Sigh...
Shoot the editor... no longer Workflow. Thanks jjesse!
Ohzone
Which Zip File to Use ??
which attached zip file are we supposed to use for this?
Zip to use
Hi,
Use v1.1 to scan ( c:\ and d:\ ) and v1.0 only scans ( c:\ )
Zip to Use
Thanks, we will be implementing this soon. Great idea.