Help Center/ Cloud Bastion Host/ User Guide/ Ticket/ O&M Personnel Operations/ Submitting a Command Approval Ticket
Updated on 2026-11-09 GMT+08:00

Submitting a Command Approval Ticket

Scenarios

You can enable Dynamic approval for operations on Linux host. This enhances the restriction of critical operations.

During O&M on a Linux host, if an operation command triggers the command rule for Dynamic approval, the system automatically intercepts the operation command and generates a command approval ticket. After the administrator approves the service ticket, you will obtain the permission to run the operation command for Dynamic approval on the Linux host.

This topic describes how to submit a command approval ticket.

Figure 1 Example of command interception

Notes and Constraints

A bastion host can intercept sensitive operation commands and generate command approval tickets only for Linux hosts using the SSH or Telnet protocol.

Prerequisites

Your role has the management permission for the Cmd Tickets module. For details about how to check the permissions of each role, see Role.

Automatically Generating a Command Approval Ticket

If you have created a command rule and set the action to Dynamic approval, the system will reject the command when the rule is triggered during O&M. In this case, the message Command "xx" is rejected. Please submit CommandControl authorization ticket is displayed, and a command approval ticket is generated. You can choose Ticket > Cmd Tickets in the bastion host system to view the automatically generated command approval ticket in the ticket list. The command can be executed only after the service ticket is submitted and approved.

The command approval tickets automatically generated by the command rule can be submitted in Auto or Manual mode. For details about how to configure the mode, see Configuring Basic Ticket Settings.

  • Manual (default): After a command rule is triggered to generate a command approval ticket, the ticket is displayed only in the command approval ticket list. You need to submit the service ticket to the administrator for approval.
  • Auto: After a command rule is triggered to generate a command approval ticket, the ticket is displayed in the command approval ticket list and automatically submitted to the administrator for approval.

Manually Submitting a Command Approval Ticket

If Submission mode is set to Manual, after a command approval ticket is automatically generated based on the command rule, you need to manually submit the ticket to the administrator for approval.

  1. Log in to your bastion host system.
  2. In the navigation pane, choose Ticket > Cmd Tickets. The command approval ticket list page is displayed.
  3. In the Operation column of the target ticket, click Submit.

Manually Creating and Submitting a Command Approval Ticket

Manual ticket creation allows you to submit requests for approval in advance. After the administrator approves the ticket, the system automatically executes the task at the designated time, even if the administrator is offline. This is ideal for after-hours maintenance or nighttime changes. Conversely, automatically generated tickets require real-time administrator approval to run. If the administrator is offline, the approval workflow cannot proceed, which may delay O&M tasks.

  1. Log in to your bastion host system.
  2. In the navigation pane, choose Ticket > Cmd Tickets. The command approval ticket list page is displayed.
  3. Click Create. In the displayed dialog box, configure the command approval ticket information by referring to Table 1.

    Table 1 Parameters for creating a command approval ticket

    Parameter

    Description

    Operation Time

    Set the time period for accessing the resource. The start time and end time must be set.

    cmd/param

    Enter the command to be executed.

    A maximum of 2000 command lines are supported. Each line can contain 1 to 100 characters. A command can contain only uppercase letters, lowercase letters, numbers, hyphens (-), and underscores (_).

    Remarks

    (Optional) Briefly describe the reason for applying for the service ticket or provide other information.

  4. Click Next and select the resource account to be accessed.
  5. Click OK to create and submit the ticket.

    Return to the service ticket list page to view the submitted service ticket.

Related Operations

  • Modifying a service ticket: If a service ticket is rejected by the administrator, or if the applicant withdraws the service ticket, the applicant can modify the service ticket information and submit it again. Click Manage in the Operation column of the service ticket to go to the details page and view or modify the service ticket information.

    For tickets in the approving status, you can only view the details but cannot modify the content. Only the ticket in the Revoked or Not submitted state can be modified.

  • Withdrawing a ticket: To modify a submitted ticket, locate the row of the ticket and click Withdraw in the Operation column to cancel the ticket. Then, the ticket status changes to Revoked.
  • Deleting a ticket: If a submitted ticket has expired, locate the row of the ticket and click Delete in the Operation column to delete the ticket. You can also select multiple tickets and click Delete in the lower left corner of the list to delete the selected tickets all at once.

    Deleted tickets cannot be recovered. Exercise caution when performing this operation.

Follow-up Operations

After a user submits a ticket, the administrator will receive a notification in the message center. The administrator can check ticket details there. The ticket will be displayed on the Ticket approval page. On this page, the administrator can approve, reject, or revoke the authorization for the ticket. For details, see Viewing and Approving Tickets.

  • If the administrator approves a ticket, the user then obtains the command operation permissions within the authorization scope and period.
  • If the administrator rejects a ticket, the user cannot obtain the corresponding permissions.
  • If the administrator revokes the authorization for a ticket, the operation commands allowed by the ticked will be intercepted then.