APPROVE PENDINGCMD (Approve commands that are pending approval)
Use this command to approve a command that is pending approval by an approval administrator.
Privilege class
Any administrator who is designated as an approval administrator can issue this command.
Syntax
Parameters
- pending_request_id (Required)
- Specifies the identification number for the pending command request. Only approval administrators who are specified by using the CMDAPPROVER parameter on the UPDATE ADMIN and REGISTER ADMIN commands can approve or reject a pending command request. Pending commands that are not approved within 72 hours are automatically rejected. Approval administrators cannot approve or reject commands that they issued themselves. To view a list of commands that are pending approval and the associated request IDs, issue the QUERY PENDINGCMD command. After a request ID is approved, the command runs immediately. To determine whether a command ran successfully after it was approved, review the activity log.
- REason
- Specifies a reason for approving the pending command. This parameter is optional. The maximum length of the description is 255 characters. Enclose the reason in quotation marks if it contains blank characters.
Example: Approve a pending command that has a request ID of 254
Approve request ID 254 for a command that is waiting for approval. Add the reason,Approved by the team.
approve pendingcmd 254 reason="Approved by the team."
Related commands
| Command | Description |
|---|---|
| QUERY PENDINGCMD | Display a list of commands that are pending approval. |
| REGISTER ADMIN | Defines a new administrator. |
| REJECT PENDINGCMD | Reject commands that are pending approval. |
| SET APPROVERSREQUIREAPPROVAL | Specifies whether commands issued by approval administrators require approval. |
| SET COMMANDAPPROVAL | Specifies whether command approval is required. |
| UPDATE ADMIN | Changes the password or contact information associated with any administrator. |
| WITHDRAW PENDINGCMD | Withdraw commands that are pending approval. |
