The rule os version sp command configures the rule for checking the operating system. As a result, the user terminal, on which the operating system of the specified version is installed, is allowed to pass the rule check.
The undo rule os version command deletes the operating system of the specified version by the rule for checking the operating system.
rule rule-name os version winxp sp { ignore | sp1 | sp2 | sp3 }
rule rule-name os version win2003 sp { ignore | sp1 | sp2 }
rule rule-name os version win2008 sp { ignore | sp1 | sp2 }
rule rule-name os version vista sp { ignore | sp1 }
rule rule-name os version win7 sp { ignore | sp1 }
rule rule-name os version win8 sp ignore
rule rule-name os version win8.1 sp ignore
rule rule-name os version win2012 sp ignore
rule rule-name os version win10 sp ignore
rule rule-name os version ubuntu14 sp ignore
rule rule-name os version ubuntu16 sp ignore
undo rule rule-name os version { winxp | win2003 | win2008 | vista | win7 | win8 | win8.1 | win2012 | win10 | ubuntu14 | ubuntu16 }
| Parameter | Description | Value |
|---|---|---|
| rule-name | Specifies the name of the rule. | The value is a string of 1 to 63 case-sensitive characters. |
| version | Indicates the version of the operating system. Only if the operating system of the specified version is installed on the user terminal, the user terminal can pass the rule check. winxp indicates the Windows XP system; win2003 indicates the Windows Server 2003 system; win2008 indicates the Windows Server 2008 system; vista indicates the Windows Vista system; win7 indicates the Windows 7 system; win8 indicates the Windows 8 system; win8.1 indicates the Windows 8.1 system; win2012 indicates the Windows 2012 system; win10 indicates the Windows 10 system. | - |
| ignore | Indicates that the patch version of the operating system is not checked. That is, if the operating system of any patch version is installed on the user terminal, the user terminal passes the rule check. | - |
| sp | Indicates the required minimum patch version of the operating system. When the operating system is Windows XP, the patch version is SP1, SP2, and SP3; when the operating system is Windows 2003, the patch version is SP1 and SP2; when the operating system is Windows Vista, the patch version is SP1. | - |
| sp1 | sp2 | sp3 | sp4 | Indicates the required minimum patch version of the operating system. Only if the operating system of the version equal to or later than the required minimum version is installed on the user terminal, the user terminal can pass the rule check. For example, the required minimum patch version that can be installed for the operating system is set to sp2. If the patch version of the operating system on the user terminal is sp1, the user terminal cannot pass the rule check; if the patch version of the operating system on the user terminal is sp2 or later than sp2, the user terminal can pass the rule check. | - |
The version of the operating system can be specified as one or multiple versions. If the version and patch version of the operating system installed on the user terminal are within the specified range of versions, the operating system can pass the rule check.
# Configure the rule for checking the operating system as rule1 to check the operating system of the user terminal. As a result, only the user terminal, on which SP2 or a later version is installed for its Windows XP operating system, 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 os [sysname-abc-hostchecker-policy1] rule rule1 os version winxp sp sp2