Included on the MOM CD in the Support Tools directory is a valuable tool to help remotely manage MOM Agents.
AgentHelper.exe is a command line tool which can help get a list of unavailable
agents and bounce/stop/start remote agents' OnePoint or any other services
according to the list.
Usage:
AgentHelper [/O:export file] [/I:import file] [/M] [/S:server] [/U:user]
[/P:password] [/T:timeout] [/A:action] [/V:service name]
[/R:registry change file] [/H:missing heartbeat count] [/?]
Options:
/O:expfile Export service unavailable agents' names to a file.
/I:impfile Import agent names from a file and control services on all of
them. Action is specified by /A:action.
/M Control services on all the unavaliable agents. Action is
specified by /A:action.
/S:server SQL server name.
/U:user User name used to access the OnePoint database.
/P:password Password of the user.
/T:timeout Time (in seconds) to wait for service stop and start. If
negative, then will wait until action completes. Default:300
/A:action Actions to do on agent. 0. Bounce. 1 Stop. 2 Start. Default:0
/V:service Service name. Default: OnePoint.
/R:regfile Do registry changes to agents according to this file.
/H:heartbeat Select those agents that have missed such amount of
heartbeats. Default: 3
/? Show this help.
Example: AgentHelper /O:agents.txt /S:server1 /U:sa /P:
Export all service unavailable agents names to file agents.txt.
AgentHelper /I:agents.txt
Import agent names from agents.txt, bounce OnePoint services on all
agents.
AgentHelper /O:agents.txt /S:server1 /U:sa /P: /M /A:2
Export all service unavailable agents names to file agents.txt, and start
OnePoint services on these agents.
Import agent names file format:
Agent Name[, ....]
Example:
server1, <Anything>, <Anything>
server2
server3,
Registry change file format:
Registry Key Path, Registry Key Value Name, DWORD Value
Example:
\HKEY_LOCAL_MACHINE\SOFTWARE\Mission Critical Software\OnePoint\Temp,AAA,100
\HKEY_LOCAL_MACHINE\SOFTWARE\Mission Critical Software\OnePoint\Temp,BBB,100
AgentHelper will create value entry automatically if it does not exist.However,
it will not try to create registry key if it does not exist before.