Lists information about one or more conditions.
lscondition [-a] [ -m │ -n │ -e ] [ -C │ -l │ -t │ -d │ -D delimiter ] [-A] [-q] [-U] [-x] [-h] [-TV] [condition1 [,condition2,...]:node_name]
Field | Description |
---|---|
Name | The name of the condition. |
Node | The location of the condition (for management domain scope or peer domain scope). |
MonitorStatus | The status of the condition. |
ResourceClass | The resource class that is monitored by this condition. |
EventExpression | The expression that is used in monitoring this condition. |
EventDescription | A description of the EventExpression field. |
RearmExpression | The expression used in determining when monitoring should restart for this condition after an event has occurred. |
RearmDescription | A description of the RearmExpression field. |
SelectionString | The selection string that is applied to the attributes of ResourceClass to determine which resources are included in the monitoring of this condition. |
Severity | The severity of the condition: critical, warning, or informational. |
NodeNames | The host names of the nodes where the condition is registered. |
MgtScope | The RMC scope in which the condition is monitored. |
Toggle | Specifies whether the condition toggles between the event and the rearm event. |
Locked | Specifies whether the resource is locked or unlocked. |
EventBatchingInterval | Specifies the time in seconds that is used to determine when the accumulated events are batched together and sent to the response. A value of 0 indicates that no batching is used. |
EventBatchingMaxEvents | Specifies the maximum number of events that can be in a single batch of events. A value of 0 indicates that there is no maximum if the value of EventBatchingInterval is not 0. |
BatchedEventRetentionPeriod | Specifies the time in hours that the batched event file is kept after all associated response scripts are run. |
BatchedEventMaxTotalSize | Specifies that the total saved batched event file size can't exceed a certain size in megabytes (MB) per condition. RecordAuditLog Specifies the level of detail for ERRM log entries to the audit log (ALL, Error Only, or None). |
For a list of all conditions, enter the lscondition command without any condition names specified. A list of all the condition names is returned with the monitoring status for each condition. The default format in this case is tabular. Specifying a node name following the condition names limits the display to the conditions defined on that node. You can list all of the conditions on a node by specifying a colon (:) followed by the node name. The node name is a node within the management scope, which is determined by the CT_MANAGEMENT_SCOPE environment variable. The management scope determines the list of nodes from which the conditions are listed. For local scope, only conditions on the local node are listed. Otherwise, the conditions from all nodes within the domain are listed.
For all of the information about all condition names, specify the -A flag with the lscondition command. The -A flag causes all information about a condition to be listed when no condition names are specified. When all the information about all conditions is listed, the default format is long. If a monitoring-status flag (-e, -m, or -n) is specified, the conditions with that status are listed.
When more than one condition is specified, the condition information is listed in the order in which the condition names are entered.
By default, when a condition name is specified with the lscondition command, all of the condition's attributes are displayed.
If Cluster Systems Management (CSM) is installed on your system, you can use CSM defined node groups as node name values to refer to more than one node.
The user needs read permission for the IBM.Condition resource class to run lscondition. Permissions are specified in the access control list (ACL) file on the contacted system. See the RSCT: Administration Guide for details on the ACL file and how to modify it.
If this environment variable is not set, local scope is used.
This command is part of the Reliable Scalable Cluster Technology (RSCT) fileset for AIX®.
When the -h flag is specified, this command's usage statement is written to standard output. All verbose messages are written to standard output.
All trace messages are written to standard error.
lscondition
The output will look like this:
Name Node MonitorStatus
"FileSystem space used" "nodeA" "Monitored"
"tmp space used" "nodeA" "Not monitored"
"var space used" "nodeA" "Error"
lscondition "FileSystem space used"
The output will look like this: Name = "FileSystem space used"
Node = "nodeA"
MonitorStatus = "Monitored"
ResourceClass = "IBM.FileSystem"
EventExpression = "PercentTotUsed > 99"
EventDescription = "Generate event when space used is
greater than 99 percent full"
RearmExpression = "PercentTotUsed < 85"
RearmDescription = "Start monitoring again after it is
less than 85 percent"
SelectionString = ""
Severity = "w"
NodeNames = "{}"
MgtScope = "l"
Toggle = "Yes"
Locked = "No"
lscondition -C "FileSystem space used"
The output will look like this: mkcondition -r IBM.FileSystem -a PercentTotUsed \
-e "PercentTotUsed > 99" -E "PercentTotUsed < 85" \
-d "Generate event when space used is greater than 99 percent full" \
-D "Start monitoring after it is less than 85 percent" \
-S w "FileSystem space used"
lscondition space
The output will look like this: Name = "FileSystem space used"
MonitorStatus = "Monitored"
Name = "tmp space used"
MonitorStatus = "Not Monitored"
Name = "var space used"
MonitorStatus = "Monitored"
lscondition -e
The output will look like
this: Name MonitorStatus
"var space used" "Error"
lscondition -a
The output will look like
this: Name Node MonitorStatus
"FileSystem space used" "nodeA" "Monitored"
"tmp space used" "nodeB" "Not monitored"
"var space used" "nodeC" "Error"