< Home

display time-range

Function

The display time-range command displays the configuration and status of the current time range.

Format

display time-range { all | time-name }

Parameters

Parameter

Description

Value

all

Indicates all the configured time ranges.

-

time-name

Specifies the name of a time range during which ACL rules take effect.

The value is a string of 1 to 32 case-sensitive characters without spaces.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To specify a time range during which ACL rules take effect, run the time-range command and reference the time range name when you configure an ACL.

Before using a time range to filter data packets, run the display time-range command to view the time range configuration to avoid duplicate time ranges.

The device updates the status of ACLs with a delay of about 30 seconds. The display time-range command adopts the current time range to determine the status of ACLs; therefore, you may find that the ACL using an active time range is inactive. This is normal.

Example

# Display the configuration and status of all time ranges.

<HUAWEI> display time-range all
Current time is 14:48:13 10-17-2012 Wednesday

Time-range : abc (Active)
from 23:23 2012/9/9 to 23:59 2012/12/31
Total time-range number is 1
Table 1 Description of the display time-range command output

Item

Description

Current time is 14:48:13 10-17-2012 Wednesday

The current time is Wednesday 14:48:13 10-17-2012.

Time-range:abc (Active)

The time range is named abc and is active. The time range can be:
  • Active.
  • Inactive.

from 23:23 2012/9/9 to 23:59 2012/12/31

Time range abc is from 23:23 2012/9/9 to 23:59 2012/12/31.

Total time-range number

The total time-range number.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >