Use the itmcmd agent command to start and stop a monitoring agent. You can start or stop one agent, all agents, or multiple agents. You cannot start or stop multiple instance agents on one command. You can also start the portal server and portal desktop client by using this command.
You must run the itmcmd agent command on the architecture for which the agent is installed.
To start or stop agents for distributed database agent, see itmcmd dbagent. However, the itmcmd agent command can start and stop agents for distributed databases, although it cannot select monitors for individual database servers or activate debugging options.
itm_install/bin/cinfo -r
If the installation is not permissioned properly, then you might be unable to restart the agent as a non-root user ID after it has been run as the root user ID. To prevent this problem, ensure that the secureMain lock command with the -g option has been previously run. See the "Securing your IBM Tivoli Monitoring installation on Linux or UNIX" appendix in the IBM Tivoli Monitoring Installation and Setup Guide for further details.
If the agent is running as root, and that is not the desired user ID, then use the following steps to restart the agent:
If the agent was running as root because of a system reboot, then complete the following steps so that the appropriate user ID is used the next time the system is rebooted. Editing the startup file is no longer supported. Instead you must modify the config/kcirunas.cfg file and then run bin/UpdateAutoRun.sh:
<productCode>product_code</productCode> <default> <user>user_name</user> </default>To specify different user IDs to start different instances of an agent, use the following syntax:
<productCode>product_code</productCode> <instance> <name>instance_name1</name> <user>user_name</user> </instance> <instance> <name>instance_name2</name> <user>user_name</user> </instance>Where:
For the Unix OS monitoring agent, to run as itmuser:
<productCode>ux</productCode> <default> <user>itmuser</user> </default>
For the DB2 monitoring agent instances to run as the instance owner IDs:
<productCode>ud</productCode> <instance> <name>db2inst1</name> <user>db2inst1</user> </instance> <instance> <name>db2inst2</name> <user>db2inst2</user> </instance>
For the Websphere MQ monitoring agent instances to all run as the mqm user ID, and for the default instance to not be started:
<productCode>mq</productCode> <default> <user>mqm</user> </default> <instance> <name>None</name> <autoStart>no</autoStart> </instance>
where:
Also use this option to take action on an IBM Tivoli Monitoring installation directory other than the one in the current system.
itmcmd agent -p INST1 -f stop um
See cinfo to identify the product code for an agent or component.
The following example starts the Universal Agent:
itmcmd agent start um
The following example stops a non-default instance (inst1) of the Universal Agent:
itmcmd agent -p INST1 stop um
The following example starts the portal server:
itmcmd agent start cq
An exit status of 0 indicates that the command ran successfully. An exit status greater than 0 indicates that there was a failure in the process.
"** Process terminated by user **"
[ Top of Page | Previous Page | Next Page ]