Description
Use the tacmd createAction command
to create a new Take Action. You must log in by using the tacmd
login command before running the tacmd createAction command.
CLI syntax
tacmd createAction
{-n|--name} ACTIONNAME
{-t|--type} TYPE
{-p|--property|--properties} NAME=VALUE
[{-d|--detailtextname} TYPEDESC ]
where:
- -n|--name
- The name of the action to be created.
- -t|--type
- The application type name. Specifies the application two-digit
code for which the action has to be created. Note that you cannot
create a Take Action command for the Tivoli Enterprise Portal Server
managed system (type CQ).
- -d|--detailtextname
- Application detail text name. Specify detail text of system type
name to create the action.
- -p|--property|--properties
- Specifies one or more NAME=VALUE pairs that identify the properties
of the new action and their values. The Cmd property in the -p option
is mandatory for creating the new action. Valid property entries for name are:
- Desc or Description
- The description of the Take Action command to be created. Input
given as text enclosed between double quotation marks, such as:
-p Desc="Stops the specified services"
- Cmd or Command
- The system command to be executed.
- Key
- The unique key value to identify the Take Action command. If you
have not specified the key value, a random key value would be generated.
This value does not support non-ASCII characters.
CLI example
This example creates a new
action command of name "Test Alerter Service "of type NT in the logged
in server.
tacmd createAction -n "Test Alerter Service" -t NT -p cmd="net start Alerter"
desc="To start the alerter service" key="Test Alerter"
Related commands
Return to Table 1.