IBM Tivoli Monitoring, Version 6.3

tacmd addSystem

Description

Use the tacmd addSystem command to deploy a monitoring agent to a computer in your IBM Tivoli Monitoring environment. The tacmd addSystem command deploys an agent and other required components if they are not already installed on the node. This command is also available for non-agent bundles. When using this command to set or modify an environment variable, ensure that the value you assign to the variable is correct. An incorrect value assignment might impact the agent behavior and possibly prevent the agent from starting.
Note: When this command is issued against a managed node that already has the specified agent deployed to it, a message is issued informing you to specify that the "-p" options are required, such as _UNIX_STARTUP_.Username.

By using the bulk deployment option, the agents specified in the bundle group are deployed on the managed systems specified in the deployment group.

Any computer to which you want to deploy an agent must already have an OS agent installed. You can either install the OS agent by using the installation wizard or with the tacmd createNode command.

Note: You cannot use this command to add a non-default Universal Agent instance that you created manually. You must use the itmcmd config command with the -o option to create additional Universal Agent instances.
Note: Remote Deployment is not supported in environments with a z/OS Tivoli Enterprise Monitoring Server. This restriction includes this command.

CLI syntax

Single IBM Tivoli Monitoring agent deployment:

tacmd addSystem
                      {-t|--type}  TYPE
                      {-n|--node} MANAGED-OS
                      {-p|--property} SECTION.NAME=VALUE...
                      [{-e|--environment} NAME=VALUE ...]
                      [{-o|--option|--options} NAME=VALUE ...]

Bulk IBM Tivoli Monitoring or System Service Monitors agent deployment:

tacmd addSystem
                      {-g|--deploygroup DEPLOY_GROUP_NAME}
                      {-b|--bundlegroup BUNDLE_GROUP_NAME}
                      [{-e|--environment} NAME=VALUE ...]
                      [{-o|--option|--options} NAME=VALUE ...]
                      [{-x|--noexecute}]

Standard input option:

tacmd addSystem
{-stdin|--stdin}

where:
-t|--type
Specifies the type (product code) of agent to add to the monitoring system. See the IBM Tivoli Monitoring Installation and Setup Guide for a listing of agent product codes.
-n|--node
Identifies the node, or the directory on the monitoring system where the OS agent is installed, to which you want to add the agent. A node is identified by the managed operating system that it contains. The name of a node includes the computer where the OS agent is installed and the product code for the OS agent. For example, stone.ibm.com:LZ is the name of the node on computer stone.ibm.com, which has a Linux OS agent installed.
-p|--property
Specifies section.name=value pairs that identify agent configuration properties and their values, where section specifies the name of the section containing the key value pair, name specifies the name of the configuration property, and value specifies the property value. You can specify the instance name of the system to be configured via the instance property for a system that can have multiple instances. If more than one option is specified, eachsection.name=value pair should be separated by a space.

See the agent user's guide for the agent that you are configuring for a list of available configuration properties.

In addition to the agent-specific configuration properties, you can also configure the Run-as settings, specifying the user ID under which an agent runs. Use the following options:
_UNIX_STARTUP_.Username=user
On UNIX, the username under which to run the agent. Note that you can only use this option if the OS agent running on the UNIX computer is started as the root user (or another user with privileges to super user). You cannot change the Run-as setting if your OS agent runs as a non-root user.

If you have already configured the Run-as user (for example, through the Manage Tivoli Enterprise Monitoring Services utility), this value defaults to what you have already set. If you have not configured the Run-as user previously, the default user is the user that is running the OS agent on the computer.

_WIN32_STARTUP_.Username=user
On Windows, the username under which to run the agent.

If you have already configured the Run-as user (for example, through the Manage Tivoli Enterprise Monitoring Services utility), this value defaults to what you have already set. If you have not configured the Run-as user previously, the default user is LocalSystem (InteractWithDesktop=0).

_WIN32_STARTUP_.Password=pwd
The password for the Run-as user that you specified with _WIN32_STARTUP_Username.
_WIN32_STARTUP_.LocalSystem={0|1}
Indicates whether you want to use the LocalSystem user to start the agent. Specify 1 if you want to use the LocalSystem user. Specify 0 if you do not want to use the LocalSystem user.

You must also specify the _WIN32_STARTUP_.InteractWithDesktop={0|1} option.

_WIN32_STARTUP_.InteractWithDesktop={0|1}
Indicates whether the LocalSystem can interact with the computer desktop. Use 1 to specify that it can and 0 to specify that it cannot.
-e|--environment
Specifies one or more NAME=VALUE pairs that identify environment variables to update, where NAME specifies the name of the environment variable, and VALUE specifies the value to be assigned. If more than one environment variable is specified, each NAME=VALUE pair should be separated by a space. For example:
 -e CTIRA_HOSTNAME=aixnode CTIRA_HEARTBEAT=8
Refer to the "Agent configuration and environment variables" appendix of the IBM Tivoli Monitoring: Installation and Setup Guide for a list of supported variables.
-o|--option|--options
One or more configuration parameters that can be used to customize the operation of this program. The valid options are: COLLECTALL, EXECPREREQCHECK, IGNOREPREREQCHECK. The values are to be specified in KEY=VALUE format.
-g|--deploygroup
Specifies the name of the deployment group to which the agents in the bundle group will be deployed.
-b|--bundlegroup
Specifies the name of the bundle group containing the agents that will be deployed to the managed systems in the deployment group.
-x|--noexecute
Causes the command to display which bundles will be deployed to which managed systems.
-stdin|--stdin
Indicates that all command-line parameters are processed from standard input (in the same command-line format) instead of being parsed from the command-line arguments.

CLI example

This command deploys universal agent (type UA) to the monitoring system named HDCHASDSTC0213 with the file.mdl MDL file.
tacmd addSystem -t UM -n Primary:HDCHASDSTC0213:NT -p UA.CONFIG="file.mdl"
Each agent bundle has its own unique configuration properties that you need to provide in the tacmd addSystem command (by using the -p option). You can view the configuration parameters by running the tacmd describeSystemType command. The following example shows the configuration options that are available to use with the tacmd addSystem command for the Universal Agent (product code um) to be installed on a remote Windows system (platform WINNT):
tacmd describeSystemType -t um -p WINNT
The MDL file is made available in the %CANDLEHOME%/cms/depot/UACONFIG directory and $CANDLEHOME\tables\tems\depot\UACONFIG in the case of a UNIX system.
This command deploys universal agent (type UA) to the monitoring system named HDCHASDSTC0213 with the script.mdl file.
tacmd addSystem -t UM -n Primary:HDCHASDSTC0213:NT -p UA.SCRIPT="script.mdl"
The mdl file is made available in the %CANDLEHOME%/cms/depot/UASCRIPT directory and $CANDLEHOME\tables\tems\depot\UASCRIPT directory in the case of a UNIX system.
This command includes the -e option to specify an environment variable setting for CTIRA_MAX_RECONNECT_TRIES.
tacmd addsystem -t ul -n amssol11:KUX -e CTIRA_MAX_RECONNECT_TRIES=10
The following is an example for the bulk deployment option. The agents specified in the bundle group are deployed to the host systems specified in the deployment group:
tacmd addSystem -g UnixGroup -b ULBundle
Note: Before executing the preceding command, create groups UnixGroup and ULBundle by using the createGroup command and add members on it by using the addGroupMember command as follows:
tacmd createGroup -g UnixGroup -d "unix deploy group" -t DEPLOY 
-p KDY.SERVER=IP.PIPE:\\r111o001.tivlab.raleigh.ibm.com:1918  
KDYRXA.TIMEOUT=300 KDYRXA.CONNECT_TIMEOUT=100 KDYRXA. RXAPROTOCOL=smb 
KDYRXA.RXAPORT=4230
tacmd addGroupMember -g UnixGroup -t DEPLOY -m f50pa2d.tivlab.raleigh.ibm.com 
-p KDYRXA.installDir=/data/aut/r111o001 KDYRXA.RXAUSERNAME=root 
KDYRXA.RXAPASSWORD=**** KDYRXA.RXAPROTOCOL =ssh KDYRXA. RXAPORT =22
tacmd addGroupMember -g UnixGroup -t DEPLOY -m amssol19.tivlab.raleigh.ibm.com 
-p KDYRXA.installDir=/data/aut/r111o001 KDYRXA.RXAUSERNAME =root KDYRXA. 
RXAPASSWORD =Agnt2tst KDYRXA. RXAPROTOCOL =ssh KDYRXA. RXAPORT =22
tacmd createGroup -g ULBundle -d "UL bundle" -t BUNDLE
tacmd addGroupMember -g ULBundle –m linuxULBundle -t BUNDLE -y UL 
–v 062100000 –i li6263
These additional examples include the -e option to specify an environment variable setting for CTIRA_HEARTBEAT.
tacmd addSystem -g UnixGroup -b ULBundle -e CTIRA_HEARTBEAT=4
tacmd addSystem -t UM -n Primary:HDCHASDSTC0213:NT -p UA.CONFIG="file.mdl" 
-e CTIRA_HOSTNAME=WIN2008 CTIRA_HEARTBEAT=9

Return values

See Table 1.

Related commands

tacmd createNode

tacmd describeSystemType (to view configuration properties for an installed agent)

cinfo (to return the list of product codes installed on the computer)

Return to Table 1.



Feedback