[ Previous | Next | Table of Contents | Index | Library Home |
Legal |
Search ]
Commands Reference, Volume 1
Changes any of the attributes of a defined condition.
chcondition [-h] [-c
New_condition] [-r
Resource_class] [-e
Event_expression] [-E
Rearm_expression] [-d
Event_description] [-D
Rearm_description] [-n
Node_name[,Node_name...]]
[-s "Selection_string"] [-S c
| w | i] [-T] [-V]
Condition
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
intact.
- Condition
- 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.
- -h
- 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
5.1.
- -r Resource_class
- Specifies the resource class to be monitored by this condition. The
lsrsrcdef command can be used to list the resource class
names.
- -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:
- c
- Critical
- w
- Warning
- i
- Informational
The default is i.
- -T
- Writes the command's trace messages to standard error. For
your software-service organization's use only.
- -V
- Writes the command's verbose messages to standard output.
- 0
- Command has run successfully.
- 1
- Error occurred with RMC.
- 2
- Error occurred with CLI script.
- 3
- Incorrect flag on command line.
- 4
- Incorrect parameter on command line.
- 5
- 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
space", type:
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"
/usr/sbin/rsct/bin/chcondition
| Location of the chcondition command.
|
The lscondition, lscondresp, mkcondition,
rmcondition commands.
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 |
Legal |
Search ]