useraction Commands
Use commands with the useraction
keyword to add,
delete, and modify user actions.
- rhpctl add useraction
Configures a user action and its associated script and action file. - rhpctl delete useraction
Deletes an existing user action configuration. - rhpctl modify useraction
Modifies the configuration of the specified user action name. - rhpctl query useraction
Displays the configuration of a user action.
Parent topic: RHPCTL Command Reference
rhpctl add useraction
Syntax
rhpctl add useraction -useraction user_action_name -actionscript script_name
[-actionfile file_name] [-pre | -post] [-optype option]
[-onerror {ABORT | CONTINUE}] [-runscope {ONENODE | ALLNODES | AUTO}]
Parameters
Table A-58 rhpctl add useraction Command Parameters
Parameter | Description |
---|---|
-useraction user_action_name |
Specify the name of the user action you want to add. |
-actionscript script_name |
Associate a specific action script to run with the user action. |
-actionfile file_name |
Optionally, you can specify an action file that is required by the user action. |
-pre | -post |
Use the |
-optype option |
Optionally, you can specify the operation for which the user action is configured. Options include:
|
-onerror {ABORT | CONTINUE} |
Optionally, you can choose whether to abort or continue the operation if the user action encounters an error while it is running. |
-runscope {ONENODE | ALLNODES | AUTO} |
Optionally, you can specify the nodes where the user action is run. Choose |
Parent topic: useraction Commands
rhpctl delete useraction
Syntax
rhpctl delete useraction -useraction user_action_name
Usage Notes
Specify the name of a user action you want to delete.
Parent topic: useraction Commands
rhpctl modify useraction
Syntax
rhpctl modify useraction -useraction user_action_name [-actionscript script_name]
[-actionfile file_name] [-pre | -post] [-optype option]
[-onerror {ABORT | CONTINUE}] [-runscope {ONENODE | ALLNODES | AUTO}]
Parameters
Table A-59 rhpctl modify useraction Command Parameters
Parameter | Description |
---|---|
-useraction user_action_name |
Specify the name of the user action you want to modify. |
-actionscript script_name |
Optionally, you can specify an action script to run. |
-pre | -post |
Use the |
-optype option |
Optionally, you can specify the operation for which the user action is configured. Options include:
|
-onerror {ABORT | CONTINUE} |
Optionally, you can choose whether to abort or continue the operation if the user action encounters an error while it is running. |
-runscope {ONENODE | ALLNODES | AUTO} |
Optionally, you can specify the nodes where the user action is run. Optionally, you can specify the nodes where the user action is run. Choose |
Parent topic: useraction Commands
rhpctl query useraction
Syntax
rhpctl query useraction [-useraction user_action_name | -imagetype image_type]
[-optype option]
Parameters
Table A-60 rhpctl query useraction Command Parameters
Parameter | Description |
---|---|
-useraction user_action_name |
Specify the name of the user action you want to query. |
-imagetype image_type |
Alternatively, you can specify the software type. Use ORACLEDBSOFTWARE (default) for Oracle database software, ORACLEGISOFTWARE for Oracle Grid Infrastructure software, and SOFTWARE for all other software. For a custom image type, use the image type name. |
-optype option |
Optionally, you can specify the operation for which to run the query. Options include:
|
Parent topic: useraction Commands