The rule antivirus command configures the rule for checking the antivirus software. As a result, the user terminal on which the specified version of the antivirus software is installed and running is allowed to pass the rule check.
The undo rule antivirus deletes the antivirus software of the specified version in the rule for checking the antivirus software.
rule rule-name antivirus { any | software-id }
undo rule rule-name antivirus { any | software-id }
| Parameter | Description | Value |
|---|---|---|
| rule-name | Specifies the name of the rule. | The value is a string of 1 to 63 case-sensitive characters. |
| any | Indicates that the user terminal can pass the rule check when any supported version of the antivirus software is installed and running on the host. | - |
| software-id | Specifies the ID of the antivirus software. It indicates that the user terminal can pass the rule check when any specified version of the antivirus software is installed and running on the host. | The value can be an integer ranging from 0 to 25. Using the display support-list antivirus command, you can view the ID and corresponding name of the specified antivirus software supported by the virtual gateway. |
# Configure the rule for checking the antivirus software as rule1 to check the user terminal. As a result, the user terminal on which the antivirus software with ID as 0 is installed and running is allowed to pass the rule check.
<sysname> system-view [sysname] v-gateway abc [sysname-abc] hostchecker [sysname-abc-hostchecker] eps-policy policy1 [sysname-abc-hostchecker-policy1] rule rule1 type antivirus [sysname-abc-hostchecker-policy1] rule rule1 antivirus 0