[ Previous | Next | Table of Contents | Index | Library Home |
Commands Reference, Volume 1
Changes any of the attributes of a defined condition.
chcondition [-h] [-c
[-s "Selection_string"] [-S c
| w | i] [-T] [-V]
The chcondition command changes the attributes of a defined
condition to the values supplied. If the name of the condition is
changed using the -c flag, any links with responses remain
- The name of an existing condition.
- -c New_condition
- Assigns a new name to the condition. The new name must not already
exist. The new name replaces the current name.
- -d Event_description
- Specifies a user-supplied text that describes the event expression.
- -D Rearm_description
- Specifies a user-supplied text that describes the rearm expression.
- -e Event_expression
- Specifies an event expression. The event expression determines when
an event occurs. It includes a dynamic attribute of the
Resource_class with a mathematical comparison symbol (for example,
>, <) and a constant. When this expression evaluates to TRUE, an
event is generated.
- -E Rearm_expression
- Specifies a rearm expression. After the Event_expression
has evaluated to TRUE and an event is generated, the rearm expression
determines when monitoring for the Event_expression begins
again. Typically, the rearm expression prevents multiple events from
being generated for the same event evaluation. The rearm expression
includes a dynamic attribute of the Resource_class with a
mathematical comparison symbol (for example, >) and a constant.
- Writes the command's usage statement to standard output.
- -n Node_name
- Specifies the host name for a node or list of host names for a list of
nodes, separated by commas, where this condition is registered. The
default is the local node. Use asterisk (*) to register the condition
on all nodes defined in the ManagedNode resource class.
Attention: This flag is not supported on AIX
- -r Resource_class
- Specifies the resource class to be monitored by this condition. The
lsrsrcdef command can be used to list the resource class
- -s "Selection_string"
- Specifies a selection string that is applied to all of the
Resource_class attributes to determine which resources should be
monitored by the Event_expression. The default is to monitor
all resources within the Resource_class. The selection
string must be enclosed within double or single quotation marks. For
information on how to specify selection strings, see "Using Expressions" in
the chapter "Using the Monitoring Application" of the RSCT 2.2
Resource Monitoring and Control Guide and Reference.
- -S c |w | i
- The severity of the event:
The default is i.
- Writes the command's trace messages to standard error. For
your software-service organization's use only.
- Writes the command's verbose messages to standard output.
- Command has run successfully.
- Error occurred with RMC.
- Error occurred with CLI script.
- Incorrect flag on command line.
- Incorrect parameter on command line.
- Error occurred that was based on faulty command line input.
This command requires root authority.
- To change the condition name from "JFS space used up" to "Watch JFS
chcondition -c "Watch JFS space" "JFS space used up"
- To change a rearm expression and rearm description for a condition with
the name "tmp space used up", type:
chcondition -E "PercentTotUsed < 80"\
-D "Start monitoring tmp again after it is less than 80 percent full" \
"tmp space used up"
||Location of the chcondition command.
The lscondition, lscondresp, mkcondition,
The rmccli General Information file.
The RSCT 2.2 Resource Monitoring and Control Guide and
Reference contains more information regarding Event Response operations
and information on how to use expressions and selection strings.
[ Previous | Next | Table of Contents | Index |
Library Home |