Querying and Editing a Command Rule
CBH allows you to edit command rules to meet your changed O&M requirements. For example, if system users or resource permissions are changed, you can query involved command rules and edit their configurations, including basic information and related passwords, command sets, users, user groups, accounts, and account groups.
- A modified command rule takes effect the instant its status changes to Enabled.
- If related users have logged in to resources before the modification, those users need to log out and log in again for the modified command rule to take effect.
Prerequisites
You have the operation permissions for the Cmd Rules module.
Querying and Editing Command Rule Configurations
- Log in to the CBH system.
- Choose Policy > Cmd Rules > Cmd Rules.
- Query command rules.
- Quick search
Enter a keyword in the search box to quickly query command rules by rule name, user, resource name, host IP address, resource account, command set, command, or parameter.
- Advanced search
Enter keywords in the corresponding attribute search boxes to search for command rules in exact mode.
Figure 1 Advanced search
- Quick search
- Click the name of the command rule you want to edit or click Manage in the row of the rule in the Operation column. The details page of the rule is displayed.
Figure 2 Viewing rule details
- View and edit basic information.
In the Basic Info area on the displayed page, click Edit. In the displayed dialog box, edit the rule details.
You can edit Rule Name, Period of validity, Action, and Time Limit.
Figure 3 Viewing the basic information
- View and edit commands related to the rule.
- To edit related commands or parameters, click Edit in the Command area and complete modifications in the displayed dialog box.
- To only delete a related command, click Remove in the row of the related command.
Figure 4 Viewing related commands
- View and edit command sets related to the command rule.
- To relate a command set to the rule or remove a related command set, click Edit in the Command Set area and complete modifications in the displayed dialog box.
- To only delete a related command set, click Remove in the row of the related command set.
Figure 5 Viewing related command sets
- View and edit users related to the rule.
- To relate a user to the rule or remove a related user, click Edit in the Users area and complete modifications in the displayed dialog box.
- To only remove a related user, click Remove in the row of the related user.
Figure 6 Viewing related users
- View and edit user groups related to the rule.
- To relate a user group to the rule or remove a related user group, click Edit in the UserGrp area and complete modifications in the displayed dialog box.
- To only remove a related user group, click Remove in the row of the related user group.
Figure 7 Viewing related user groups
- View and edit accounts related to the command rule.
- To relate an account to the rule or remove a related account, click Edit in the Account area and complete modifications in the displayed dialog box.
- To only remove a related account, click Remove in the row of the related account.
Figure 8 Viewing related accounts
- View and edit account groups related to the rule.
- To relate an account group to the rule or remove a related account group, click Edit in the AccountGrp area and complete modifications in the displayed dialog box.
- To only remove a related account group, click Remove in the row of the related account group.
Figure 9 Viewing related account groups
Last Article: Creating a Command Rule
Next Article: Managing Command Sets
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.