< Home

time-range (audit policy rule view)

Function

The time-range command sets the time range during which an audit policy rule takes effect.

The undo time-range command cancels the time range during which an audit policy rule takes effect.

Format

time-range time-range-name

undo time-range

Parameters

Parameter Description Value
time-range-name Specifies the name of a time range. The specified time range must exist.

Views

Audit policy rule view

Default Level

2: Configuration level

Usage Guidelines

If you delete the validity duration of an audit policy rule or do not specify a validity duration for an audit policy rule, the audit policy rule is always effective.

Example

# Specify work_time as the time range during which audit policy rule policy_audit takes effect.

<sysname> system-view
[sysname] audit-policy
[sysname-policy-audit] rule name policy_audit
[sysname-policy-audit-rule-policy_audit] time-range work_time
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >