< Home

eps-policy condition

Function

Using the eps-policy condition command, you can configure conditions for a host to pass host check.

Format

eps-policy policy-name condition { all | any | custom condition-expression }

Parameters

Parameter Description Value
policy-name Specifies the name of the host check policy. The value is a string of 1 to 63 case-sensitive characters.
all Indicates that a host passes the policy check only if the host passes all the rules in the policy check. -
any Indicates that a host passes the policy check if the host passes any of the rules in the policy check. -
condition-expression Specifies the expression of the customized combination of rules. The value is a string of 1 to 160 case-sensitive characters, and supports operators such as the vertical bar (|), ampersand (&), left parenthesis ((), and right parenthesis ()). For example, rule1&(rule2|rule3) indicates that the host can pass the policy checks only when passing rule1, and rule2 or rule3 as well.

Views

Host check view

Default Level

2: Configuration level

Usage Guidelines

None

Example

# Configure the host to pass check policy1 when the host passes rule (rule1|rule2)&rule3.

<sysname> system-view
[sysname] v-gateway abc
[sysname-abc] hostchecker
[sysname-abc-hostchecker] eps-policy policy1 condition custom (rule1|rule2)&rule3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >