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
Configures a user action and its associated script and action file.
Syntax
rhpctl add useraction -useraction user_action_name -actionscript script_name
[-actionfile file_name] [-pre | -post | -eval] [-optype option] [-phase operation_phase
]
[-onerror {ABORT | CONTINUE}] [-runscope {ONENODE | ALLNODES | AUTO | FIRSTNODEONRHPS | LASTNODEONRHPS | ALLNODESONRHPS}]
[-runasroot] [-runninginstance]
Parameters
Table A-76 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 | -eval |
Use |
-optype option |
Optionally, you can specify the operation for which the user action is configured. Options include:
|
-phase |
Specify the phase of the operation for which the user action is configured. |
-onerror {ABORT | CONTINUE} |
Optionally, you can choose whether to stop or continue the operation if the user action encounters an error while it is running. |
-runscope {ONENODE | ALLNODES | AUTO | FIRSTNODEONRHPS | LASTNODEONRHPS | ALLNODESONRHPS} |
Optionally, you can specify the nodes where the user action is run. Choose Specify |
-runasroot |
Run the |
-runninginstance |
Specify this parameter to run the user action only on the nodes that have a
running database instance. You can use this parameter only with the
|
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
Modifies the configuration of the specified user action name.
Syntax
rhpctl modify useraction -useraction user_action_name [-actionscript script_name]
[-actionfile file_name] [-pre | -post | -eval] [-optype option] [-onerror {ABORT | CONTINUE}]
[-runscope {ONENODE | ALLNODES | AUTO | FIRSTNODEONRHPS | LASTNODEONRHPS | ALLNODESONRHPS}] [-runninginstance]
Parameters
Table A-77 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 | -eval |
Use |
-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 stop or continue the operation if the user action encounters an error while it is running. |
-runscope {ONENODE | ALLNODES | AUTO | FIRSTNODEONRHPS | LASTNODEONRHPS | ALLNODESONRHPS} |
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 Specify |
-runninginstance |
Specify this parameter to run the user action only on the nodes that have a
running database instance. You can use this parameter only with the
|
Parent topic: useraction Commands
rhpctl query useraction
Displays the configuration of a user action.
Syntax
rhpctl query useraction [-useraction user_action_name | -imagetype image_type]
[-optype option]
Parameters
Table A-78 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 |
Specify the software type. Use
|
-optype option |
Optionally, you can specify the operation for which to run the query. Options include:
|
Parent topic: useraction Commands