Home > MOM > MOM 2005 Task: Clean up MOM agent temporary files

MOM 2005 Task: Clean up MOM agent temporary files

purpose of this article is to demonstrate how to create a custom task in
MOM.  The task I wanted to create would
execute from the MOM console against a agent. 
This task will stop a MOM agent, delete the temporary files, and then
start the MOM agent.

Click HERE to get the article.

Categories: MOM
  1. marcus
    October 10, 2005 at 2:08 pm

    nice of man ghetto to give me a nod on the routine to clean out the agent cache.

  2. Blake
    October 10, 2005 at 4:06 pm

    I always hand out props when props are due MOh. BTW, nice blog layout, very classy.

  3. Jesse
    October 14, 2005 at 9:10 am

    How is this different from running the "Update Agent Settings" from the Admin Console? Asside from the obvious (anybody can run it) I was under the impression that Update Agent Settings would do the same thing… Trust me, I\’ve been wrong and confused on more than one occasion :-)Thanks!-Jess

  4. Blake
    October 14, 2005 at 12:57 pm

    Not too certain what update agent settings does, other then apply changes you may have made to that particular agent and then have it look for new processing rules. I don\’t think when you update agent settings it deletes all the data in that folder.

  5. M
    December 1, 2005 at 6:12 pm

    Wanted to show you some love since I wa able to quickly download this solution and implement it quite quickly..BTW, nice Blog, when I add a section on my Blog for other Bloggers\’ sites, yours will undoubtably be the first.MikeIII

  6. mholst2
    January 29, 2006 at 4:13 am

    When i try to run the cleanmom task from the operator console i get an error message "The specified application is not on the path"
    When i copy the psexec.exe and the cleanmom.bat file to the computers winnt\\system32 dir and define "c:\\temp\\psexec.exe \\\\$Computer Name$ -c c:\\winnt\\system32\\cleanmom.bat"  in the Task command line it works.
    My question is there a way to get this script to work without copy the files to computers i wish to run it on?

  7. Blake
    January 31, 2006 at 3:29 pm

    For this task to work you should be able to install the app on your MOM server and run it just fine.  That\’s how I did it.  Copying it to all the computers would defeat the purpose.  Ensure you check the location of the exe.  PSExec.exe is used to run things remotely from one machine to another.  Could there be a permissions issue?  Maybe.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: