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

Commands Reference, Volume 5


startcondresp Command

Purpose

Starts monitoring a condition that has one or more linked responses.

Syntax

startcondresp [-h] [-T] [-V] Condition [Response [Response ...]]

Description

The startcondresp command starts the monitoring of a condition that has a linked response. After monitoring is started, when the condition occurs, the response is run. If no responses are specified, monitoring is started for all responses linked to the condition. This causes all of the linked responses to run when the condition occurs. If more than one response is specified, monitoring is started only for those linked responses.

If one or more responses are specified and the responses are not linked with the condition, the startcondresp command links the specified responses to the condition, and monitoring is started. Use the mkcondresp command to link a response to a condition without starting monitoring.

Parameters

Condition
Specifies the name of the condition linked to the response. The condition is always specified first.

Response
Specifies the name of a response, or more than one response. Specifying more than one response starts monitoring the specified responses linked to the specified condition.

Flags

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

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

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.

Security

This command requires root authority.

Examples

  1. To start monitoring for the condition "JFS space used " by using the response "Broadcast event on-shift", whether or not the response is linked with the condition, type:
    startcondresp  "JFS space used" "Broadcast event on-shift"                               												
    	
    
  2. To start monitoring for the condition "JFS space used " by using all of its linked responses, type:
    startcondresp "JFS space used" 
    
  3. To start monitoring for the condition "JFS space used " by using the response "Broadcast event on-shift" and "E-mail root anytime", whether or not they are linked with the condition, type:
    startcondresp "JFS space used" "Broadcast event on-shift" "E-mail root anytime"
    

Files


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

Related Information

The lscondresp, mkcondition, mkcondresp, mkresponse, 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 ]