The rule name command creates an audit policy rule and displays the audit policy rule view.
The undo rule command deletes an audit policy rule.
| Parameter | Description | Value |
|---|---|---|
| rule-name | Specifies the name of an audit policy rule. | The value is a case-sensitive character string. The length of a name without spaces ranges from 1 to 32 characters. The length of a name with spaces ranges from 3 to 34 characters. If a name contains spaces, the name must be enclosed with quotation marks (for example, "user for test"). The name cannot contain any question marks (?), quotation marks ("). |
| id rule-id | Specifies the ID of the audit policy rule to be deleted. You can run the display audit-policy rule all command to view the ID of rules to be deleted. |
The audit policy rule ID must exist. |
| all | Indicates all audit policy rules. | - |
The undo rule id rule-id command does not support hot standby. Therefore, in hot standby networking, you need to run the command on both the active and standby devices. Run the hrp standby config enable command on the active device first. Otherwise, the command cannot be run on the standby device.