[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 3


lscondresp Command

Purpose

Lists information about a condition and its linked responses, if any.

Syntax

lscondresp [-h] [-a | -n] [-C | -l | -t | -d | -D Delimiter] [-q] [-x] [-T] [-V] [Condition [Response [Response ...]]]

lscondresp [-h] [-a | -n] [-C | -l | -t | -d | -D Delimiter] [-q] [-x] -r [-T] [-V] Response [Response ...]

Description

The lscondresp command lists information about a condition and its linked responses. The information shows what responses are linked with a condition and whether monitoring is active for a condition and its linked response.

The following information is listed:

Condition
The name of the condition linked with a response.

State
State of the response for the condition. The state indicates whether a specified response is active or not.

Response
The name of the response linked with the condition.

To list a particular condition and response, specify both condition and response. To list all responses to a condition, specify only the condition. To list all conditions that a response is linked to, specify only the response along with the -r flag. To list all conditions and their linked responses, omit specifying the condition and response. When neither the -a flag nor the -n flag is specified, all selected conditions for the responses are listed. Tabular format is the default.

Parameters

Condition
Specifies the name of the condition linked to the response. The condition is always specified first unless the -r flag is used.

Response
Specifies the name of a response, or more than one response. The links from the specified responses to the specified condition are displayed.

Flags

-a
Lists only those responses that are active for the condition.

-C
Outputs the mkcondresp command that could be used to create the link between the Condition and the Response. If more than one condition or response is specified, every mkcondresp command appears on a separate line. This flag is ignored when neither condition nor responses are specified.

-d
Specifies delimiter-formatted output. The default delimiter is a colon (:). Use the -D flag if you wish to change the default delimiter.

-D Delimiter
Specifies delimiter-formatted output that uses the specified delimiter. Use this flag to specify something other than the default, colon (:). For example, when the data to be displayed contains colons, use this flag to specify another delimiter of one or more characters.

-h
Writes the command's usage statement to standard output.

-l
Specifies long formatted output. Displays the condition and response information on separate lines.

-n
Lists only those responses that are not active for the condition.

-q
Does not return an error if either Condition or Response does not exist.

-r
Indicates that all command parameters are responses. There are no conditions specified. This lists all linked condition-response information for the specified responses.

-t
Specifies tabular formatted output. The condition information and response information are displayed in separate columns.

-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.

-x
Suppresses header printing.

Exit Status

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.

Examples

  1. To list information about the condition "JFS space used up" with the linked response "Broadcast event on-shift", type:
    lscondresp  "JFS space used up" "Broadcast event on-shift"                           												
    	
    
    Output is similar to:
     Condition              Response                        State
    "JFS space used up"     "Broadcast event on-shift"      "Active"     
    
  2. To list information about the condition "JFS space used up", type:
    lscondresp "JFS space used up"
    
    Output is similar to:
    Condition               Response                    State
    "JFS space used up"     "Broadcast event on-shift"  "Active"
    "JFS space used up"     "E-mail root anytime"       "Not Active" 
    
  3. To list information about the condition "JFS space used up" for responses that are active, type:
    lscondresp -a  "JFS space used up"
    
    Output is similar to:
    Condition               Response                    State
    "JFS space used up"     "Broadcast event on-shift"  "Active"
    
  4. To list all conditions with their linked responses, type:
    lscondresp 
    
    Output is similar to:
    Condition               Response                    State
    "JFS space used up"     "Broadcast event on-shift"  "Active"
    "JFS space used up"     "E-mail root anytime"       "Not Active"
    "Page in Rate"          "Log event anytime"         "Active" 
    

Files


/usr/sbin/rsct/bin/lscondresp Location of the lscondresp command.

Related Information

The mkcondition, mkcondresp, mkresponse, rmcondresp, startcondresp, stopcondresp commands.

The rmccli General Information file.

The RSCT 2.2 Resource Monitoring and Control Guide and Reference contains more information regarding Event Response operations.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]