Lists information about one or more responses.
lsresponse [-h] [-A] [-C | -l | -t | -d | -D Delimiter] [-q ] [-x] [-T] [-V] [Response [Response... ]]
The lsresponse command lists information about defined responses. The following information about the response is included:
The days of the week when the action is allowed to be run. Days_of_week and Time_of_day together define the interval when the action can be run.
The numbers of the days can be separated by a plus sign (+) or displayed as a range of days separated by a hyphen (-). If there is more than one Days_of_week, they are separated by a comma (,). The number of Days_of_week matches the number of Time_of_day. The numbers of the days follow:
The time range when Action can be run, consisting of the start time followed by the end time separated by a hyphen. Days_of_week and Time_of_day together define the interval when the action can be run.
The time is in 24-hour format (HHMM) where the first two digits represent the hour and the last two digits represent the minutes. The start time must be less than the end time because the time is specified by day of the week. If there is more than one Time_of_day, they are separated by a comma (,). The number of Days_of_week matches the number of Time_of_day.
To get a list of all response names, enter the lsresponse command alone without any response names specified. A list of all response names is returned. The default format in this case is tabular. To see all the information about all response names, specify the -A flag with the lsresponse command. The -A flag causes all information about a response to be listed when no response names are specified. When all the information about all responses is listed, the long format is the default.
When more than one Response is specified, the response information is listed in the order that the responses are entered.
lsresponse "Critical notifications"Output is similar to:
Name = "Critical notifications" Action = "Log Critical Event" DaysOfWeek = 1+2+7 TimeOfDay = 0000-2400 ActionScript = "/usr/sbin/rsct/bin/logevent /tmp/criticalEvents" ReturnCode = 0 CheckReturnCode = "y" EventType = "b" StandardOut = "y" Action = "E-mail root" DaysOfWeek = 6+2,6+2,6+5 TimeOfDay = 1700-2400,0000-0800,0000-2400 ActionScript = "/usr/sbin/rsct/bin/notifyevent root" ReturnCode = 0 CheckReturnCode = "y" EventType = "b" StandardOut = "y"
lsresponseOutput is similar to:
Name "E-mail root anytime" "E-mail root first shift" "Critical notifications"
lsresponse -C "Critical notifications"Output is similar to:
mkresponse -n "Log Critical Event" -d 1+2+7 -t 0000-2400 \ -s "usr/sbin/rsct/bin/logevent /tmp/criticalEvents" \ -e b -r 0 "Critical notifications"
/usr/sbin/rsct/bin/lsresponse | Location of the lsresponse command. |
The chresponse, lscondresp, mkcondresp, mkresponse, rmresponse commands.
The rmccli General Information file.
The RSCT 2.2 Resource Monitoring and Control Guide and Reference contains more information regarding Event Response operations.