Managing Command Sets
To relieve you from complicated and repetitive workloads on adding a large number of commands to command rules, a bastion host provides command sets, which include common commands and parameters used for Linux hosts and network devices.
This topic walks you through how to create, view, modify, delete, and batch import command sets.
Prerequisites
You have obtained the permissions to manage the Cmd Rules module.
Creating a Command Set
- Log in to your bastion host.
- Choose Policy > Cmd Rules > CmdSet to go to the command set list page.
- Create a command set.
- Add commands to the command set.
Querying and Editing a Command Set
- Log in to your bastion host.
- Choose Policy > Cmd Rules > CmdSet to go to the command set list page.
- Query a command set.
Quick search: Enter a keyword in the search box to quickly query command sets by command set name, command, and/or parameter.
- Click the command set name or click Manage in the row of the command set in the Operation column.
- View and edit basic information.
In the Basic Info area, click Edit. In the displayed dialog box, edit the basic information.
You can edit CommandSet Name. The Department cannot be changed.
- View and edit commands and parameters in the Command area.
- To add preset commands or parameters, click Add in the Command area and select preset commands in the displayed dialog box.
- To delete a command or parameter, locate the row containing the command or parameter you want to delete and click Remove.
Deleting a Command Set
- Log in to your bastion host.
- Choose Policy > Cmd Rules > CmdSet to go to the command set list page.
- To delete one command set, click Delete in the Operation column of the row where the command set locates.
- To delete multiple command sets at a time, select the ones you want to delete and click Delete at the bottom of the list to delete all selected command sets together.
Batch Importing Command Sets
- Log in to your bastion host.
- Choose Policy > Cmd Rules > CmdSet to go to the command set list page.
- Click in the upper right corner. In the displayed dialog box, download the template.
- Complete the template. Click Upload to import.
You can choose to overwrite existing command sets.
Only XLS, XLSX, and CSV files can be uploaded.
- Confirm the information and click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.