01-Fundamentals Command Reference

HomeSupportReference GuidesCommand ReferencesH3C WX Series Access Controllers Command References(R3308 R2308)-6W10701-Fundamentals Command Reference
08-Device Management Commands
Title Size Download
08-Device Management Commands 302.95 KB

 

 

NOTE:

Storage media include Flash, compact Flash (CF), and universal serial bus (USB) disk. Different devices support different storage media. For the feature matrixes, see About the WX Series Access Controllers Configuration Guides. CF card is exemplified in this document.

 

clock datetime

Syntax

clock datetime time date

View

User view

Default level

3: Manage level

Parameters

time: Configured time, in the hh:mm:ss format. The hh value ranges from 00 to 23, the mm value ranges from 00 to 59, and the ss value ranges from 00 to 59. Zeros can be omitted, unless you specify 00:00:00.

date: Configured date, in the MM/DD/YYYY or YYYY/MM/DD format. The YYYY value ranges from 2000 to 2035, the MM value ranges from 1 to 12, and the DD value ranges from 1 to 31.

Description

Use clock datetime to set the current time and date of the device.

You can leave the ss field blank when you specify the time parameters.

Related commands: clock summer-time one-off, clock summer-time repeating, clock timezone, and display clock.

Examples

# Set the current system time to 14:10:20 01/01/2011.

<Sysname> clock datetime 14:10:20 1/1/2011

# Set the current system time to 00:06:00 01/01/2011.

<Sysname> clock datetime 0:6 2011/1/1

clock summer-time one-off

Syntax

clock summer-time zone-name one-off start-time start-date end-time end-date add-time

undo clock summer-time

View

System view

Default level

3: Manage level

Parameters

zone-name: Daylight saving time schedule name, a case-sensitive string of 1 to 32 characters.

start-time: Start time, in the hh:mm:ss format. Zeros can be omitted, unless you specify 00:00:00.

start-date: Start date, in the MM/DD/YYYY or YYYY/MM/DD format.

end-time: End time, in the hh:mm:ss format. Zeros can be omitted, unless you specify 00:00:00.

end-date: End date, in the MM/DD/YYYY or YYYY/MM/DD format.

add-time: Time added to the standard time of the device, in the hh:mm:ss format. Zeros can be omitted, unless you specify 00:00:00.

Description

Use clock summer-time one-off to adopt daylight saving time from the start-time of the start-date to the end-time of the end-date. Daylight saving time adds the add-time to the standard time of the device.

Use undo clock summer-time to cancel the configuration of the daylight saving time.

By default, daylight saving time is disabled and the UTC time zone applies.

The interval between start-time start-date and end-time end-date must be longer than one day and shorter than one year. If the current system time is in the specified daylight saving days, the add-time value automatically adds to the system time.

To verify the setting, use the display clock command.

The timestamps in system messages are adjusted in reference to the time zone and daylight saving schedule.

Related commands: clock datetime, clock summer-time repeating, clock timezone, and display clock.

Examples

# Set the system time ahead one hour for the period between 06:00:00 on 08/01/2011 and 06:00:00 on 09/01/2011.

<Sysname> system-view

[Sysname] clock summer-time abc1 one-off 6 08/01/2011 6 09/01/2011 1

clock summer-time repeating

Syntax

clock summer-time zone-name repeating start-time start-date end-time end-date add-time

undo clock summer-time

View

System view

Default level

3: Manage level

Parameters

zone-name: Daylight saving time schedule name, a string of 1 to 32 characters.

start-time: Start time, in the hh:mm:ss format. Zeros can be omitted, unless you specify 00:00:00.

start-date: Start date, which can be set in the following ways:

·     Enter the year, month and date at one time, in the MM/DD/YYYY or YYYY/MM/DD format.

·     Enter the year, month and date one by one, separated by spaces. The year ranges from 2000 to 2035; the month can be January, February, March, April, May, June, July, August, September, October, November or December; the start week can be the first, second, third, fourth, fifth or last week of the month; the start date is Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.

end-time: End time, in the hh:mm:ss format. Zeros can be omitted, unless you specify 00:00:00.

end-date: End date which can be set in the following ways:

·     Enter the year, month and date at one time, in the MM/DD/YYYY or YYYY/MM/DD format.

·     Enter the year, month and date one by one, separated by spaces. The year ranges from 2000 to 2035; the month can be January, February, March, April, May, June, July, August, September, October, November or December; the end week can be the first, second, third, fourth, fifth or last week of the month; the end date is Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.

add-time: Time added to the standard time of the device, in the hh:mm:ss format. Zeros can be omitted, unless you specify 00:00:00.

Description

Use clock summer-time repeating to set a recurring daylight saving schedule.

Use undo clock summer-time to cancel the configuration of daylight saving time.

By default, daylight saving time is disabled and the UTC time zone applies.

For example, if you specify start-date and start-time as 2011/6/6 and 00:00:00, end-date and end-time to 2011/10/01 and 00:00:00, and add-time to 01:00:00, the daylight saving time range is from 00:00:00 of June 6 to 00:00:00 of October 1 each year from 2011 (2011 inclusive). The daylight saving time adds one hour to the standard time of the device.

The interval between start-time start-date and end-time end-date must be longer than one day and shorter than one year. If the current system time is in the specified daylight saving days, the add-time value automatically adds to the system time.

To verify the setting, use the display clock command.

The timestamps in system messages are adjusted in reference to the time zone and daylight saving schedule.

Related commands: clock datetime, clock summer-time one-off, clock timezone, and display clock.

Examples

# Set the system time ahead one hour every year after 2011 (inclusive) for the period from August 1 at 06:00:00 to September 1 at 06:00:00.

<Sysname> system-view

[Sysname] clock summer-time abc2 repeating 06:00:00 08/01/2011 06:00:00 09/01/2011 01:00:00

clock timezone

Syntax

clock timezone zone-name { add | minus } zone-offset

undo clock timezone

View

System view

Default level

3: Manage level

Parameters

zone-name: Time zone name, a case-sensitive string of 1 to 32 characters.

add: Adds a specified offset to UTC time.

minus: Subtracts a specified offset to UTC time.

zone-offset: Offset to the UTC time, in the hh:mm:ss format. Zeros can be omitted, unless you specify 00:00:00.

Description

Use clock timezone to set the local time zone.

Use undo clock timezone to restore the local time zone to the default UTC time zone.

By default, the local time zone is UTC zone.

To verify the setting, use the display clock command.

The timestamps in system messages are adjusted in reference to the time zone and daylight saving schedule.

Related commands: clock datetime, clock summer-time one-off, clock summer-time repeating, and display clock.

Examples

# Set the name of the local time zone to Z5, five hours ahead of UTC time.

<Sysname> system-view

[Sysname] clock timezone z5 add 5

collection-interval

Syntax

collection-interval collection-interval

undo collection-interval

View

System view

Default level

3: Manage level

Parameters

collection-interval: Specifies the interval in seconds for collecting CPU/memory utilization statistics. The value ranges from 0 to 60 seconds.

Description

Use collection-interval to set the Interval for collecting CPU/memory utilization statistics.

Use undo collection-interval to restore the default.

By default, the interval for collecting CPU/memory utilization statistics is 0 seconds. That is, the access controller does not collect CPU/memory utilization statistics.

The alarm resend interval must be larger than or equal three times of the interval for collecting CPU/memory utilization statistics. Because the alarm resend interval is 0 seconds by default, if the access controller uses this default configuration, you must set the alarm resend interval before setting the interval for collecting CPU/memory utilization statistics.

Related commands: resend-interval.

Examples

# Set the interval for collecting CPU/memory utilization statistics to 60 seconds.

<Sysname> system-view

[Sysname] collection-interval 60

configure-user count

Syntax

configure-user count number

undo configure-user count

View

System view

Default level

2: System level

Parameters

number: Number of users. The value range varies with devices. For the command matrixes, see About the WX Series Access Controllers Command References.

Description

Use configure-user count to configure the number of users allowed to enter system view at the same time.

Use undo configure-user count to restore the default.

Two users are allowed to configure in system view by default.

Related commands: display configure-user.

 

 

NOTE:

·     When multiple users enter system view to configure certain attribute, only the last configuration applies.

·     When the number of users has already reached the limit, other users can not enter system view.

 

Examples

# Configure the limit of users as 4.

<Sysname> system-view

[Sysname] configure-user count 4

copyright-info enable

Syntax

copyright-info enable

undo copyright-info enable

View

System view

Default level

3: Manage level

Parameters

None

Description

Use copyright-info enable to enable displaying the copyright statement.

Use undo copyright-info enable to disable displaying the copyright statement.

By default, the system displays the copyright statement.

Examples

# Enable displaying the copyright statement.

<Sysname> system-view

[Sysname] copyright-info enable

·     When a Telnet user logs in, the following statement appears:

**************************************************************************

* Copyright (c) 2004-2011 Hangzhou H3C Tech. Co., Ltd. All rights reserved.*

* Without the owner's prior written consent,                               *

* no decompiling or reverse-engineering shall be allowed.                  *

****************************************************************************

 

<Sysname>

·     When a console user quits user view, the following message appears:

**************************************************************************

* Copyright (c) 2004-2011 Hangzhou H3C Tech. Co., Ltd. All rights reserved.*

* Without the owner's prior written consent,                               *

* no decompiling or reverse-engineering shall be allowed.                  *

****************************************************************************

 

User interface con0 is available.

 

 

 

Please press ENTER.

# Disable displaying the copyright statement.

<Sysname> system-view

[Sysname] undo copyright-info enable

·     When a Telnet user logs in, the user view prompt appears:

<Sysname>

·     When a console user quits user view, the following message appears:

User interface con0 is available.

 

 

 

Please press ENTER.

cpu-usage threshold

Syntax

cpu-usage threshold cpu-threshold

undo cpu-usage threshold

View

AP template view

Default level

2: System level

Parameters

cpu-threshold: Specifies the CPU usage rate threshold in percentage, in the range of 0 to 100.

Description

Use cpu-usage threshold to set the CPU usage rate threshold for a specific AP.

Use undo cpu-usage threshold to restore the default.

The default CPU usage rate threshold is 90%.

When the CPU usage rate of an AP is larger than or equals the specified threshold, the access controller considers that the CPU usage rate of the AP is too high.

Examples

# Set the CPU usage rate threshold of AP ap1 to 80%.

<Sysname> system-view

[Sysname] wlan ap ap1 model WA2620-AGN

[Sysname-wlan-ap-ap1] cpu-usage threshold 80

display clock

Syntax

display clock [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display clock to view the current system time and date.

The current system time and date are decided by the clock datetime, clock summer-time one-off (or clock summer-time repeating), and clock timezone commands. For more information about how the system time and date are decided, see Fundamentals Configuration Guide.

Related commands: clock datetime, clock summer-time one-off, clock summer-time repeating, and clock timezone.

Examples

# Display the current time and date.

<Sysname> display clock

09:41:23 UTC Thu 12/15/2010

display configure-user

Syntax

display configure-user [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display configure-user to display the users that have logged in to the device and are not in user view.

Related commands: configure-user count.

Examples

# Display the users entering system view at the same time.

<Sysname> display configure-user

 The information of current configuration user(s):

  Idx UI      Delay    Type Userlevel

+ 178 VTY 0   01:10:16 TEL  3

+ 179 VTY 1   00:00:00 TEL  3

Following are more details.

VTY 0   :

        Location: 192.168.1.59

VTY 1   :

        Location: 192.168.1.54

 +    : User-interface is active.

 F    : User-interface is active and work in async mode.

display cpu-usage

Syntax

display cpu-usage [ entry-number [ offset ] [ verbose ] [ from-device ] ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

entry-number: Number of entries to be displayed, which ranges from 1 to 60.

offset: Offset between the serial number of the first CPU usage rate record to be displayed and that of the last CPU usage rate record to be displayed. It ranges from 0 to 59.

For example, the idx of the latest statistics record is 12. If the offset is set to 3, the system will display the statistics records from the one with the idx of 9, where idx represents the serial number of the period for the statistics, and its value ranges from 0 to 60 cyclically. The system collects CPU utilization rates periodically, and the system records the average CPU usage rate during this period, and the idx value is added by 1 automatically.

verbose: Displays the average CPU usage statistics for each task in the specified period. If this keyword is not provided, the command displays brief CPU usage statistics.

from-device: Displays the external storage medium, such as a Flash or hard disk. The device currently does not support the from-device keyword.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display cpu-usage to display CPU usage statistics.

The system regularly (typically at 60-second intervals) collects CPU usage statistics and saves the statistical results in the history record area. The maximum number of records that can be saved depends on your device model.

The display cpu-usage entry-number command displays entry-number latest records, starting from the latest record. The display cpu-usage entry-number offset command displays entry-number latest records, starting from the last (offset+1)th record.

Examples

# Display the current CPU usage statistics.

<Sysname> display cpu-usage

Unit CPU usage:

       1% in last 5 seconds

       1% in last 1 minute

       1% in last 5 minutes

# Display the last fifth and sixth CPU usage statistics records.

<Sysname> display cpu-usage 2 4

===== CPU usage info (no:  0  idx: 58) =====

CPU Usage Stat. Cycle: 60 (Second)

CPU Usage            : 3%

CPU Usage Stat. Time : 2011-01-10  10:56:55

CPU Usage Stat. Tick : 0x1d9d(CPU Tick High) 0x3a659a70(CPU Tick Low)

Actual Stat. Cycle   : 0x0(CPU Tick High) 0x95030517(CPU Tick Low)

 

===== CPU usage info (no:  1  idx: 57) =====

CPU Usage Stat. Cycle: 60 (Second)

CPU Usage            : 3%

CPU Usage Stat. Time : 2011-01-10  10:55:55

CPU Usage Stat. Tick : 0x1d9c(CPU Tick High) 0xa50e5351(CPU Tick Low)

Actual Stat. Cycle   : 0x0(CPU Tick High) 0x950906af(CPU Tick Low)

Table 1 Command output

Field

Description

Unit CPU usage

CPU usage rates.

1% in last 5 seconds

After the device boots, the system calculates and records the average CPU usage rate every five seconds.

This field displays the average CPU usage rate in the last five seconds.

1% in last 1 minute

After the device boots, the system calculates and records the average CPU usage rate every one minute.

This field displays the average CPU usage rate in the last minute.

1% in last 5 minutes

After the device boots, the system calculates and records the average CPU usage rate every five minutes.

This field displays the average CPU usage rate in the last five minutes.

CPU usage info (no:  idx:)

Information of CPU usage rate records (no: The (no+1)th record is currently displayed. no numbers from 0, a smaller number equals a newer record. idx: index of the current record in the history record table). If only the information of the current record is displayed, no and idx are not displayed.

CPU Usage Stat. Cycle

CPU usage rate measurement interval, in seconds. For example, if the value is 41, it indicates that the average CPU usage rate during the last 41 seconds is calculated. The value range of this field is 1 to 60.

CPU Usage

Average CPU usage rate in a measurement interval, in percentage.

CPU Usage Stat. Time

CPU usage rate statistics time in seconds, that is, the system time when the command is executed.

CPU Usage Stat. Tick

System runtime in ticks, represented by a 64-bit hexadecimal. CPU Tick High represents the most significant 32 bits and the CPU Tick Low the least significant 32 bits.

Actual Stat. Cycle

Actual CPU usage measurement interval in ticks, represented by a 64-bit hexadecimal. CPU Tick High represents the most significant 32 bits and the CPU Tick Low the least significant 32 bits. Owing to the precision of less than one second, the actual measurement periods of different CPU usage rate records might differ slightly.

 

display cpu-usage history

Syntax

display cpu-usage history [ task task-id ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

task task-id: Displays the historical CPU usage statistics for the specified task. The task-id argument represents the task number. If no task is specified, the command displays the historical CPU usage statistics for the entire system. The CPU usage of the entire system is the sum of CPU usages of all tasks.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display cpu-usage history to display historical CPU usage statistics in charts.

The system regularly collects CPU usage statistics and saves the statistics in the history record area. The display cpu-usage history command displays the CPU usage statistics for the last 60 minutes in axes, where:

·     The vertical axis represents the CPU usage. If a statistic is not a multiple of the usage step, it is rounded up or down to the closest multiple of the usage step, whichever is closer. For example, if the CPU usage step is 5%, the statistic 53% is rounded up to 55%, and the statistic 52% is rounded down to 50%.

·     The horizontal axis represents the time.

·     Consecutive pound signs (#) indicate the CPU usage at a specific time. The value on the vertical axis for the topmost # sign at a specific time represents the CPU usage at that time.

Examples

# Display the historical CPU usage statistics.

<Sysname> display cpu-usage history

100%|

 95%|

 90%|

 85%|

 80%|

 75%|

 70%|

 65%|

 60%|

 55%|

 50%|

 45%|

 40%|

 35%|

 30%|

 25%|

 20%|

 15%|             #

 10%|            ###  #

  5%|           ########

     ------------------------------------------------------------

              10        20        30        40        50        60  (minutes)

                      cpu-usage last 60 minutes(SYSTEM)

The output shows the CPU utilization rates of the whole system (with the task name SYSTEM) in the last 60 minutes:

·     5%: 12 minutes ago

·     10%: 13 minutes ago

·     15%: 14 minutes ago

·     10%: 15 minutes ago

·     5%: 16 and 17 minutes ago

·     10%: 18 minutes ago

·     5%: 19 minutes ago

·     2% or lower than 2%: other time

# Display the CPU utilization rates of task 6.

<Sysname> display cpu-usage history task 6

100%|

 95%|

 90%|

 85%|

 80%|

 75%|

 70%|

 65%|

 60%|

 55%|

 50%|

 45%|

 40%|

 35%|

 30%|

 25%|

 20%|

 15%|

 10%|

  5%|                   #

     ------------------------------------------------------------

              10        20        30        40        50        60  (minutes)

                      cpu-usage last 60 minutes(T03M)

The output shows the CPU utilization rates of task 6 (with the task name T03M) in the last 60 minutes:

·     5%: 20 minutes ago

·     2% or lower than 2%: other time

display device

Syntax

display device [ cf-card | usb ] [ subslot subslot-number | verbose ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

2: System level

Parameters

cf-card: Displays CF card information.. Support for the cf-card keyword depends on your device model. For the command matrixes, see About the WX Series Access Controllers Command References.

usb: Displays information about the device connected with the universal serial bus (USB) interface. The support for the usb keyword depends on your device model. For the command matrixes, see About the WX Series Access Controllers Command References.

subslot subslot-number: Displays information about the specified subcard. The subslot-number represents the subslot of a subcard.

verbose: Displays detailed information.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display device to display device information.

If the cf-card and usb keywords are not provided, the system displays information of all cards on the device.

Examples

# Display device information.

<Sysname> display device

Slot No.  Subslot No. Board Type        Status    Max Ports

1         0           WX5004            Normal      10

Table 2 Command output

Field

Description

Slot No.

Slot number of a card.

Subslot No.

Subslot number of a subcard.

Board Type

Hardware type of a card.

Status

Card status:

·     Fault—Error occurred, and the card cannot start normally.

·     Normal—The card is an interface card and functions normally.

Max Ports

Maximum number of physical ports that a card supports.

 

display device manuinfo

Syntax

display device manuinfo [ subslot  subslot-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

3: Manage level

Parameters

subslot subslot-number: Displays the electronic label data for the specified subcard. The subslot-number represents the subslot of a subcard.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display device manuinfo to display electronic label data.

An electronic label is a profile of a device or card and contains the permanent configuration including the serial number, manufacturing date, MAC address, and vendor name. The data is written to the storage component during debugging or testing.

Examples

# Display electronic label data.

<Sysname> display device manuinfo

Subslot 0

DEVICE_NAME          : WX5004

DEVICE_SERIAL_NUMBER : 210235A35JB09A000075

MAC_ADDRESS          : 000F-E26A-58EA

MANUFACTURING_DATE   : 2011-01-10

VENDOR_NAME          : H3C

display diagnostic-information

Syntax

display diagnostic-information [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display diagnostic-information to display or save running status data for multiple feature modules.

For diagnosis or troubleshooting, you can use separate display commands to collect running status data module by module, or use the display diagnostic-information command to bulk collect running data for multiple modules. The display diagnostic-information command equals this set of commands: display clock, display version, display device, and display current-configuration.

Examples

# Save each module's running status data.

<Sysname> display diagnostic-information

Save or display diagnostic information (Y=save, N=display)?[Y/N]y

Please input the file name(*.diag)[cfa0:/default.diag]:aa.diag

Diagnostic information is outputting to cfa0:/aa.diag.

Please wait...

Save succeeded.

To view the content of the file aa.diag, execute the more.aa.diag command in user view. You can use the Page Up and Page Down keys to scroll text.

# Display the running status statistics for each module.

<Sysname> display diagnostic-information

Save or display diagnostic information (Y=save, N=display)? [Y/N]:n

=================================================

  ===============display clock===============

=================================================

08:54:16 UTC Fri 01/15/2011

===================================================

  ===============display version===============

=================================================== 

……Omitted……

display environment

Syntax

display environment [ cpu ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

cpu: Displays temperature information of the CPUs on the device.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display environment to display temperature information, including the current temperature and temperature thresholds.

Use display environment cpu to display the temperature information of all CPUs on the device.

 

 

NOTE:

Support for the command depends on your device model. For the command matrixes, see About the WX Series Access Controllers Command References.

 

Examples

# Display the temperature information of the device.

<Sysname> display environment

System Temperature information (degree centigrade):

----------------------------------------------------

 SlotNo    Temperature       Lower limit      Upper limit

 1         41                 0                   90

# Display temperature information of all the CPUs on the device.

<Sysname> display environment cpu

System CPU Temperature information (degree centigrade):

-------------------------------------------------

 SlotNO    Temperature       Lower limit      Upper limit

 1         29                 0                  90

Table 3 Command output

Field

Description

System Temperature information (degree centigrade)

Temperature information of system cards.

CPU Temperature information (degree centigrade)

Temperature information of cards of the system (degree centigrade). Support for this field depends on your device model.

SlotNO

Number of the slot in which the card resides.

Temperature

Current temperature.

Lower limit

Lower limit of temperature.

Upper limit

Upper limit of temperature.

 

display fan

Syntax

display fan [ fan-id ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

fan-id: Displays the operating state of the specified fan, where fan-id represents the built-in fan number. Support for this argument and the value range depend on your device model. For the command matrixes, see About the WX Series Access Controllers Command References.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display fan to display the operating state of built-in fans.

 

 

NOTE:

Support for this command depens on the device model. For the command matrixes, see About the WX Series Access Controllers Command References.

 

Examples

# Display the operating state of all fans in a device.

<Sysname> display fan

 Fan  2 State: Normal

 Fan  3 State: Normal

 Fan  4 State: Normal

 Fan  5 State: Normal 

display job

Syntax

display job [ job-name ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

job-name: Specifies a job name, a string of 1 to 32 characters.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display job to display information about scheduled jobs.

If no job is specified, the command displays information about all scheduled jobs.

Related commands: job, time, and view.

Examples

# Display detailed information about the scheduled job saveconfig.

<Sysname> display job saveconfig

Job name: saveconfig

  Specified view: monitor

  Time 1: Execute command save 1.cfg after 40 minutes

The output shows that the current configuration will be automatically saved to the configuration file 1.cfg in 40 minutes.

Table 4 Command output

Field

Description

Job name

Name of the scheduled job

Specified view

View in which the commands in the job run

Time timeID

Execution time of each command in the job

Execute command

Command string

 

display memory

Syntax

display memory [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display memory to display memory usage statistics.

Examples

# Display memory usage statistics.

<Sysname> display memory

System Total Memory(bytes): 431869088

Total Used Memory(bytes): 71963156

Used Rate: 16%

Table 5 Command output

Field

Description

System Total Memory(bytes)

Total size of the system memory (in bytes)

Total Used Memory(bytes)

Size of the memory used (in bytes)

Used Rate

Percentage of the memory used to the total memory

 

display power

Syntax

display power [ power-id ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

power-id: Displays the information of the specified power supply, where the power-id argument represents the power supply number. The value varies with devices. For the command matrixes, see About the WX Series Access Controllers Command References. If this argument is not provided, this command displays information about all power supplies.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display power to display power supply information.

 

 

NOTE:

Support for the command depends on your device model. For the command matrixes, see About the WX Series Access Controllers Command References.

 

Examples

# Display power supply information.

<Sysname> display power

 Power   1 State: Normal

 Power   2 State: Absent

display reboot-type

Syntax

display reboot-type [ subslot subslot-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

2: System level

Parameters

subslot subslot-number: Displays reboot mode of the specified subcard, where subslot-number represents the subslot number of a subcard.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display reboot-type to display the reboot mode of the device. If no keyword is provided, the system displays the reboot mode of the device.

Examples

# Display the reboot mode of the device.

<Sysname> display reboot-type

  The rebooting type this time is: Cold

The output shows that the last reboot mode of the device is Cold boot (cold boot will restart a device by powering it on). (The display of Warm represents a warm boot, which means to restart a device by using the commands like reboot).

display rps

Syntax

display rps [ rps-id ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

rps-id: Displays the status of the specified RPS, where rps-id represents the RPS number. The value is 2.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display rps to display status of the RPS.

 

 

NOTE:

Support for the command depends on your device model. For the command matrixes, see About the WX Series Access Controllers Command References.

 

Examples

# Display RPS status of the device.

<Sysname> display rps

 RPS     2 State: Normal

The output shows that RPS 2 works normally.

display schedule job

Syntax

display schedule job [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display schedule job to display the job configured by using the schedule job command.

Related commands: schedule job.

Examples

# Display the job configured by using the schedule job command.

<Sysname> display schedule job

Specified command: execute 1.bat

Specified view: system view

Executed time: at 12:00 10/31/2010 (in 0 hours and 16 minutes)

If you change the system time within 16 minutes after you execute the schedule job command, the job becomes invalid. Then if you execute the display schedule job command again, the system displays nothing.

Table 6 Command output

Field

Description

Specified command

Command to be executed

Specified view

View for the command to be executed

Executed time

Execution time of the command and the difference between the current time and scheduled time

 

display schedule reboot

Syntax

display schedule reboot [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

3: Manage level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display schedule reboot to display the reboot schedule.

Related commands: schedule reboot at and schedule reboot delay.

Examples

# Display the reboot schedule.

<Sysname> display schedule reboot

System will reboot at 16:00:00 01/10/2011 (in 2 hours and 5 minutes).

display system-failure

Syntax

display system-failure [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

3: Manage level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display system-failure to display the exception handling method.

Related commands: system-failure.

Examples

# Display the exception handling method.

<Sysname> display system-failure

 System failure handling method: reboot

display transceiver

Syntax

display transceiver interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

2: System level

Parameters

interface [ interface-type interface-number ]: Displays the key parameters of all transceiver modules or the transceiver module in the specified interface. The interface-type interface-number arguments specify an interface by its type and number. If no interface is specified, the command displays the key parameters of all transceiver modules.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display transceiver to display the key parameters of transceiver modules.

 

 

NOTE:

Support for the command depends on your device model. For the command matrixes, see About the WX Series Access Controllers Command References.

 

Examples

# Display the key parameters of the transceiver module in interface GigabitEthernet 1/0/1.

<Sysname> display transceiver interface gigabitethernet 1/0/1

GigabitEthernet1/0/1 transceiver information:

  Transceiver Type              : 1000_BASE_SX_SFP

  Connector Type                : LC

  Wavelength(nm)                : 850

  Transfer Distance(m)          : 550(50um),270(62.5um)

  Digital Diagnostic Monitoring : YES

  Vendor Name                   : H3C

  Ordering Name                 : SFP-GE-SX-MM850

Table 7 Command output

Field

Description

transceiver information

Transceiver module information.

Transceiver Type

Transceiver module type.

Connector Type

Connector type options:

·     SC—Fiber connector developed by NTT

·     LC—1.25 mm/RJ-45 fiber connector developed by Lucent

·     RJ-45

·     CX 4

Wavelength(nm)

·     Fiber transceiver—Central wavelength (in nm) of the transmit laser. If the transceiver supports multiple wavelengths, every two wavelength values are separated by a comma.

·     Copper transceiver—Displayed as N/A.

Transfer distance(xx)

Transfer distance, with xx representing km for single-mode transceiver modules and m for other transceiver modules. If the transceiver module supports multiple transfer media, every two transfer distance values are separated by a comma. The corresponding transfer medium is included in the bracket following the transfer distance value. The following are the supported transfer media:

·     9 um—9/125 um single-mode fiber.

·     50 um—50/125 um multi-mode fiber.

·     62.5 um—62.5/125 um multi-mode fiber.

·     TPTwisted pair.

·     CX4CX4 cable.

Digital Diagnostic Monitoring

Support for the digital diagnosis function:

·     YES—Supported.

·     NO—Not supported.

Vendor Name

Vendor name or name of the vendor who customizes the transceiver:

·     H3C customized transceiver module: H3C is displayed.

·     Other transceiver modules: The vendor name is displayed.

Ordering Name

Product code.

 

display transceiver alarm

Syntax

display transceiver alarm interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

2: System level

Parameters

interface [ interface-type interface-number ]: Displays alarms that are present on the specified or all transceiver modules. The interface-type interface-number arguments specify an interface by its type and number. If no interface is specified, the command displays present alarm information for all transceiver modules.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display transceiver alarm to display alarms present on transceiver modules.

If no error occurs, None is displayed. Table 8 describes the transceiver module alarms that might occur.

Table 8 Common transceiver module alarms

Field

Remarks

SFP

RX loss of signal

Incoming (RX) signal is lost.

RX power high

Incoming (RX) power level is high.

RX power low

Incoming (RX) power level is low.

TX fault

Transmit (TX) fault.

TX bias high

TX bias current is high.

TX bias low

TX bias current is low.

TX power high

TX power is high.

TX power low

TX power is low.

Temp high

Temperature is high.

Temp low

Temperature is low.

Voltage high

Voltage is high.

Voltage low

Voltage is low.

Transceiver info I/O error

Transceiver information read and write error.

Transceiver info checksum error

Transceiver information checksum error.

Transceiver type and port configuration mismatch

Transceiver type does not match port configuration.

Transceiver type not supported by port hardware

Transceiver type is not supported on the port.

 

 

NOTE:

Support for this command and the transceiver type depends on your device model. For the command matrixes, see About the WX Series Access Controllers Command References.

 

Examples

# Display alarm information for the transceiver module in interface GigabitEthernet 1/0/1.

<Sysname> display transceiver alarm interface gigabitethernet 1/0/1

GigabitEthernet1/0/1 transceiver current alarm information:

  RX loss of signal

  RX power low

Table 9 Command output

Field

Description

transceiver current alarm information

Current alarm information of the transceiver module.

RX loss of signal

Incoming (RX) signal is lost.

RX power low

Incoming (RX) power level is low.

 

display transceiver diagnosis

Syntax

display transceiver diagnosis interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

2: System level

Parameters

interface [ interface-type interface-number ]: Displays the present measured value of digital diagnosis parameters of of the H3C customized fiber transceiver module in the specified interface. The interface-type interface-number argument specifies an interface by its interface type and number. If no interface is specified, the command displays the present measured value of digital diagnosis parameters of all H3C customized fiber transceiver moduless.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display transceiver diagnosis to display the present measured values of the digital diagnosis parameters for H3C customized fiber transceiver modules.

 

 

NOTE:

Support for this command depends on your device model. For the command matrixes, see About the WX Series Access Controllers Command References.

 

Examples

# Display the present measured values of the digital diagnosis parameters for the H3C customized fiber transceiver module in interface GigabitEthernet 1/0/1.

<Sysname> display transceiver diagnosis interface gigabitethernet 1/0/1

GigabitEthernet1/0/1 transceiver diagnostic information:

  Current diagnostic parameters:

    Temp(°C)  Voltage(V)  Bias(mA)  RX power(dBM)  TX power(dBM)

    36        3.31        6.13      -35.64          -5.19

Table 10 Command output

Field

Description

transceiver diagnostic information

Digital diagnosis information of the transceiver module in the interface.

Current diagnostic parameters

Current diagnostic parameters.

Temp.(°C)

Digital diagnosis parameter-temperature, in °C, with the precision to 1°C.

Voltage(V)

Digital diagnosis parameter-voltage, in V, with the precision to 0.01 V.

Bias(mA)

Digital diagnosis parameter-bias current, in mA, with the precision to 0.01 mA.

RX power(dBM)

Digital diagnosis parameter-RX power, in dBM, with the precision to 0.01 dBM.

TX power(dBM)

Digital diagnosis parameter-TX power, in dBM, with the precision to 0.01 dBM.

 

display transceiver manuinfo

Syntax

display transceiver manuinfo interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

2: System level

Parameters

interface [ interface-type interface-number ]: Displays the electronic label data for the H3C customized transceiver module in the specified interface. The interface-type interface-number argument specifies an interface by its interface type and number. If no interface is specified, the command displays the electronic label data for all H3C customized transceiver modules.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display transceiver manuinfo to display the electronic label data for H3C customized transceiver modules.

 

 

NOTE:

Support for this command depends on your device model. For the command matrixes, see About the WX Series Access Controllers Command References.

 

Examples

# Display the electronic label data for the H3C customized transceiver module in interface GigabitEthernet 1/0/1.

<Sysname> display transceiver manuinfo interface gigabitethernet 1/0/1

GigabitEthernet1/0/1 transceiver manufacture information:

  Manu. Serial Number  : 213410A0000054000251

  Manufacturing Date   : 2011-01-01

  Vendor Name          : H3C

Table 11 Command output

Field

Description

Manu. Serial Number

Serial number generated during debugging and testing of the customized transceiver modules.

Manufacturing Date

Debugging and testing date. The date takes the value of the system clock of the computer that performs debugging and testing.

Vendor Name

Name of the vendor who customizes the transceiver, that is, H3C.

 

display version

Syntax

display version [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display version to view system version information.

By viewing system version information, you can learn about the current software version, rack type and the information related to the main board and interface boards.

Examples

# Display system version information.

<Sysname> display version

header

Syntax

header { incoming | legal | login | motd | shell } text

undo header { incoming | legal | login | motd | shell }

View

System view

Default level

2: System level

Parameters

incoming: Configures the banner displayed before a Modem dial-up user accesses user view. If authentication is required, the incoming banner appears after the authentication is passed.

legal: Configures the banner displayed before a user inputs the username and password to access the CLI.

login: Configures the banner displayed before password or scheme authentication is performed for a login user.

motd: Configures the greeting banner displayed before the legal banner appears.

shell: Configures the banner displayed before a non-Modem dial-in user accesses user view.

text: Banner message, which can be input in two formats. For more information, see Fundamentals Configuration Guide.

Description

Use header to create a banner.

Use undo header to clear a banner.

Banners are greeting or alert messages that the system displays during the login process of a user.

Examples

# Configure banners.

<Sysname> system-view

[Sysname] header incoming %

Please input banner content, and quit with the character '%'.

Welcome to incoming(header incoming)%

[Sysname] header legal %

Please input banner content, and quit with the character '%'.

Welcome to legal (header legal)%

[Sysname] header login %

Please input banner content, and quit with the character '%'.

Welcome to login(header login)%

[Sysname] header motd %

Please input banner content, and quit with the character '%'.

Welcome to motd(header motd)%

[Sysname] header shell %

Please input banner content, and quit with the character '%'.

Welcome to shell(header shell)%

In this example, the percentage sign (%) is the starting and ending characters of text. Entering % after the displayed test quits the header command. As the starting and ending characters, % is not part of the banners.

# Verify the configuration by using Telnet. (Password authentication is configured.)

******************************************************************************

* Copyright (c) 2004-2011 Hangzhou H3C Tech. Co., Ltd. All rights reserved.  *

* Without the owner's prior written consent,                                 *

* no decompiling or reverse-engineering shall be allowed.                    *

******************************************************************************

Welcome to legal (header legal)

 Press Y or ENTER to continue, N to exit.

Welcome to motd(header motd)

Welcome to login(header login)

Login authentication

Password:

Welcome to shell(header shell)

job

Syntax

job job-name

undo job job-name

View

System view

Default level

3: Manage level

Parameters

job-name: Specifies a job name, a string of 1 to 32 characters.

Description

Use job to schedule a job or enter job view.

Use undo job to delete a scheduled job.

By default, no scheduled job is created.

You add commands to execute in a job in job view.

You can use the job command to schedule multiple jobs.

Related commands: time and view.

Examples

# Create the job saveconfiguration or enter its view.

<Sysname> system-view

[Sysname] job saveconfiguration

[Sysname-job-saveconfiguration]

memory-usage threshold

Syntax

memory-usage threshold memory-threshold

undo memory-usage threshold

View

AP template view

Default level

2: System level

Parameters

memory-threshold: Specifies the memory usage threshold in percentage, in the range of 0 to 100.

Description

Use memory-usage threshold to set the memory usage threshold for a specific AP.

Use undo memory-usage threshold to restore the default.

The default memory usage threshold is 90%.

When the memory usage of an AP is larger than or equals the specified threshold, the access controller considers that the memory usage of the AP is too high.

Examples

# Set the memory usage threshold of AP ap1 to 80%.

<Sysname> system-view

[Sysname] wlan ap ap1 model WA2620-AGN

[Sysname-wlan-ap-ap1] memory-usage threshold 80

nms monitor-interface

Syntax

nms { primary | secondary } monitor-interface interface-type interface-number

undo nms { primary | secondary } monitor-interface

View

System view

Default level

3: Manage level

Parameters

primary: Specifies the primary monitored interface for a network management station (NMS).

secondary: Specifies the secondary monitored interface for the NMS.

interface-type interface-number: Type and number of the interface to be monitored.

Description

Use nms primary monitor-interface to configure the primary monitored interface.

Use nms secondary monitor-interface to configure the secondary monitored interface.

Use undo nms monitor-interface to remove the configurations.

By default, an NMS does not monitor any interface on the device.

If you configure only the primary monitored interface or the secondary monitored interface, the device monitors the IP address of the configured interface. If the interface gets or changes its IP address when the interface status is up, the device sends traps to the NMS to inform it of the available IP address.

If you configure both the primary and secondary monitored interfaces, the device monitors the primary one first.

Examples

# Configure GigabitEthernet 1/0/1 as the primary monitored interface.

<Sysname> system-view

[Sysname] nms primary monitor-interface gigabitethernet 1/0/1

quick configuration

Syntax

quick configuration

View

System view

Default level

3: Manage level

Parameters

None

Description

Use quick configuration to perform quick configuration.

This command guides you to configure the basic parameters one by one in the way of prompt information.

Examples

# Perform quick configuration.

<Sysname> system-view

[Sysname] quick configuration

This operation will change the current configuration. Continue? [Y/N]: y

Please answer the following questions. Press Ctrl+C to stop.

System name [H3C]:

Admin username []: user

Enter password []: 123456

Enter user privilege (0-3) [0]:3

Default route []: 2.2.2.1

Do you want to set the timezone? [Y/N]: y

Enter the timezone []: beijing

Enter the timezone offset (hh:mm:ss) []: 08:00:00

Do you want to set the system time? [Y/N]: y

Enter the time (hh:mm:ss) []: 14:31:00

Enter the date (MM/DD/YYYY or YYYY/MM/DD) []: 2011/01/25

Do you want to enable Telnet server? [Y/N]: y

Do you want to enable STelnet server? [Y/N]: y

Create VLAN interface(s) to perform telnet, portal and so on.

Enter VLAN-interface number (press <cr> to exit) []: 1

Do you want to set IP address? [Y/N]: y

Enter IP address (X.X.X.X) []: 192.168.28.50

Enter IP address mask (X.X.X.X) []: 255.255.0.0

Enter VLAN-interface number (press <cr> to exit) []: 2

Do you want to set IP address? [Y/N]: y

Enter IP address (X.X.X.X) []: 2.2.2.50

Enter IP address mask (X.X.X.X) []: 255.255.255.0

Enter VLAN-interface number (press <cr> to exit) []:

Do you want to add interface GigabitEthernet 1/0/1 to multiple VLANs? [Y/N]: n

Which VLAN do you want to add interface GigabitEthernet 1/0/1 to?

Enter VLAN ID (press <cr> to exit) []: 1

Do you want to add interface GigabitEthernet 1/0/2 to multiple VLANs? [Y/N]: y

Which VLAN do you want to add interface GigabitEthernet 1/0/2 to?

Enter VLAN ID (press <cr> to exit) []: 1

Which VLAN do you want to add interface GigabitEthernet 1/0/2 to?

Enter VLAN ID (press <cr> to exit) []: 2

Which VLAN do you want to add interface GigabitEthernet 1/0/2 to?

Enter VLAN ID (press <cr> to exit) []:

Do you want to configure clear SSID? [Y/N]: y

Enter a clear SSID: clearid

Assign a VLAN to SSID (1-4094) [1]: 1

Do you want to perform portal authentication? [Y/N]: y

Enter portal server name (press <cr> to exit) []: portalserver1

Enter portal server IP []: 192.168.28.1

Enter portal server URL [http://192.168.28.1]:

Enter portal server key []: portalkey1

Enter portal server name (press <cr> to exit) []: portalserver2

Enter portal server IP []: 192.168.28.2

Enter portal server URL [http://192.168.28.2]:

Enter portal server key []: portalkey2

Enter portal server name (press <cr> to exit) []:

Enter VLAN-interface number with IP address to perform portal []: 1

Enter portal server name which must have been created []: portalserver1

Enter portal authentication method <1> direct <2> Layer 3 <3> redhcp []: 1

Do you want to perform 802.1X and PEAP-MSCHAPv2? [Y/N]: y

Enter a crypto SSID: cryptoid

Enter RADIUS scheme name []: radius

Enter server type <1> standard <2> extended [1]: 1

Enter RADIUS authentication IP []: 192.168.28.3

Enter RADIUS accounting IP []: 192.168.28.3

Enter RADIUS authentication key []: authkey

Enter RADIUS accounting key []: acckey

Enter username format <1> with domain <2> without domain [1]: 1

Enter an AP name:wa2620

Enter AP model:wa2620-agn

Do you want to set the AP as an auto AP? [Y/N]:n

Enter the serial ID of the AP:210235A29G007C000020

Enter radio 1 channel(149, 153, 157, 161, 165) [auto]:149

Enter radio 2 mode (0:dot11b 1:dot11g) [dot11g]:1

Enter radio 2 channel(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13) [auto]:11

Do you want to set next AP? [Y/N]:y

Enter an AP name:wa2100

Enter AP model:wa2100

Do you want to set the AP as an auto AP? [Y/N]:y

Enter radio 1 mode (0:dot11a 1:dot11b 2:dot11g) [dot11g]:1

Enter radio 1 channel(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13) [auto]:1

Do you want to set next AP? [Y/N]:n

Table 12 Command output

Field

Description

This operation will change the current configuration. Continue? [Y/N]:

To change the current configuration, enter Y. To quit the quick configuration, enter N.

Please answer the following questions. Press Ctrl+C to stop.

Quick configuration is performed in the way of interaction. Please answer the questions according to the prompt information. In the prompt information in this example:

·     [value]: The default value of the parameter is value, and you can press Enter to select this default value.

·     [Y/N]: The function is optional. If you enter Y, the system begins to configure the related parameters. If you enter N, the system does not configure the related parameters, and goes to the configuration of the next parameter.

·     (format): The format of a parameter. For example, the time format is hh:mm:ss, and the date format is MM/DD/YYYY or YYYY/MM/DD.

·     (press <cr> to exit): The function can be configured repeatedly, and you can enter cr (namely, press Enter) to quit the configuration. For example, you can configure multiple VLAN interfaces for the device. If you enter the interface number, it indicates to create a VLAN interface, and the system will guide you to configure the IP address and mask for the interface. If you enter cr (namely, press Enter), it indicates not to configure a VLAN interface.

Follow the following guidelines when you start a quick configuration:

·     If you do not answer the questions within 30 seconds, the system considers the interaction timed out, and quits the quick configuration.

·     You can press Ctrl+C to quit the quick configuration. However, it is invalid when you confirm optional configurations.

·     If you quit the quick configuration during configuration, all the previous configurations will not be executed.

system name [H3C]:

Set the device name. The default value is the current device name.

Admin username []:

Set the username at login. No username is available by default.

Enter password []:

Set the password at login, in cipher text.

Do you want to set the timezone? [Y/N]:

Optional. If you enter Y, the system prompts the following:

·     Enter the timezone []:

·     Enter the date (MM/DD/YYYY or YYYY/MM/DD) []: This is a time offset. If the configured timezone is behind the standard time (UTC), you can enter the time offset or add a "+" sign before the time offset. If the configured timezone is ahead of the standard time, you need to add a "-" sign before the time offset.

Do you want to enable Telnet server? [Y/N]:

Entering Y enables the Telnet server; entering N indicates to disable the Telnet server.

Do you want to enable STelnet server? [Y/N]:

Entering Y enables the STelnet server; entering N disables the STelnet server.

Create VLAN interface(s) to perform telnet, portal and so on.

Create VLANs and VLAN interfaces. It is a repeat configuration. If the system prompts "press <cr> to exit", pressing Enter indicates to end the configuration of VLAN and VLAN interface; entering the VLAN interface number indicates to continue the following configurations:

·     Do you want to set IP address? [Y/N]:

·     Enter IP address (X.X.X.X) []:

·     Enter IP address mask (X.X.X.X) []:

You must set the IP addresses at this prompt if you want to use Portal and Telnet services. Otherwise the Portal and Telnet services will be unavailable.

Do you want to add interface GigabitEthernet 1/0/1 to multiple VLANs? [Y/N]:

If you enter N, the system prompts the following for once. If you enter Y, the system prompts the following repeatedly. Namely, you can add a port to multiple VLANs:

·     Which VLAN do you want to add interface GigabitEthernet 1/0/1 to?:

·     Enter VLAN ID (press cr to exit) []: Pressing Enter will quit the configuration.

Do you want to configure clear SSID? [Y/N]:

Optional.

If you enter Y, the system prompts the following:

·     Enter a clear SSID: You need to enter an SSID in simple text at this prompt.

·     Assign a VLAN to SSID (1-4094) [1]:

Do you want to perform portal authentication? [Y/N]:

Optional.

This is a repeat configuration. You can configure up to four portal servers. Pressing Enter at the "press <cr> to exit" prompt will end the configuration.

·     Enter portal server name (press cr to exit) []: The portal server name can be any value.

·     Enter portal server URL [http://192.168.28.1]: The default URL is the IP address configured for the portal server

·     Enter portal server name which must have been created []: You need to specify a portal server for the current VLAN interface at this prompt.

·     Enter portal authentication method <1> direct <2> Layer 3 <3> redhcp []: It indicates that you need to select the portal authentication mode, where 1 represents the direct mode, 2 the Layer 3 mode, and 3 the redhcp mode.

Do you want to perform 802.1X and PEAP-MSCHAPv2? [Y/N]:

Optional.

Enter a crypto SSID:

Set SSID in cipher text.

Enter server type <1> standard <2> extended [1]:

Set the RADIUS server supported, where 1 indicates that standard RADIUS server is supported, and 2 indicates that enhanced RADIUS server is supported.

Enter username format <1> with domain <2> without domain [1]:

Set whether the username input at authentication carries a domain name, where 1 indicates to carry a domain name, and 2 indicates not to carry a domain name.

Do you want to set auto AP? [Y/N]:

Optional.

Do you want to update the software version of AP? [Y/N]:

If the access point version is consistent with the access controller version, this item does not need to be configured. Otherwise, you need to configure it. If you enter Y, the system prompts the following:

·     Enter hardware version of AP:

·     Enter software version of AP (VX00R0XXBXXD0XX[SPXX]):

Do you want to set the AP as an auto AP? [Y/N]:

Optional.

If you enter Y, you proceed with configuring the radio mode. If you enter N, you proceed with configuring AP serial ID.

Enter radio 1 channel(149, 153, 157, 161, 165) [auto]:

Specify the radio channel according to the radio mode. The default setting is auto.

Enter radio 2 mode ( 0:dot11b 1:dot11g) [dot11g]:

Specify the radio mode. The default setting depends on the device model.

Do you want to set next AP? [Y/N]:

If you enter Y, you proceed with configuring the next AP. If you enter N, the quick configuration finishes.

If you configure multiple APs through quick configuration, you must ensure the uniqueness of AP name and serial ID. Otherwise, some configuration might fail.

 

reboot

Syntax

reboot [ subslot subslot-number ]

View

User view

Default level

3: Manage level

Parameters

None

Description

Use reboot to reboot the device or the specified subcard.

 

CAUTION

CAUTION:

·     Device reboot can interrupt ongoing services.

·     If the main system software image file has been corrupted or does not exist, the reboot command cannot reboot the device. You must re-specify a main system software image file, or power off the device and then power it on so the system can reboot with the backup system software image file.

·     For data security, if you are performing file operations at the reboot time, the system does not reboot.

 

Examples

# Reboot the device (The command output is omitted here).

<Sysname> reboot

resend-interval

Syntax

resend-interval resend-interval

undo resend-interval

View

System view

Default level

3: Manage level

Parameters

resend-interval: Specifies the alarm resend interval. The value ranges from 0 to 3600 seconds.

Description

Use resend-interval to set the alarm resend interval.

Use undo resend-interval to restore the default.

By default, the alarm resend interval is 0 seconds. That is, the access controller does not resend alarms.

The alarm resend interval must be larger than or equal three times of the interval for collecting CPU/memory utilization rates. Because the alarm resend interval is 0 seconds by default, if the access controller uses this default configuration, you must set the alarm resend interval before setting the interval for collecting CPU/memory utilization rates.

Related commands: collection-interval.

Examples

# Set the alarm resend interval to 800 seconds.

<Sysname> system-view

[Sysname] resend-interval 800

reset unused porttag

Syntax

reset unused porttag

View

User view

Default level

1: Monitor level

Parameters

None

Description

Use reset unused porttag to clear unused 16-bit indexes.

A confirmation is required when you execute this command. The command will not run if you enter N to cancel the operation or fail to make a confirmation within 30 seconds.

Examples

# Clear unused 16-bit indexes.

<Sysname> reset unused porttag

Current operation will delete all unused port tag(s). Continue? [Y/N]:y

<Sysname>

schedule job

Syntax

schedule job { at time1 [ date ] | delay time2 } view view-name command

undo schedule job

View

User view

Default level

3: Manage level

Parameters

at time1 [ date ]: Specifies the time and/or date to execute a command.

·     time1: Execution time of the command, in the hh:mm format. The hh value ranges from 0 to 23, and the mm value ranges from 0 to 59.

·     date: Execution date of the command, in the MM/DD/YYYY or YYYY/MM/DD format. The YYYY value ranges from 2000 to 2035, the MM value ranges from 1 to 12, and the DD value ranges from 1 to 31.

delay time2: Specifies the execution waiting time of a specified command. time2 represents the waiting time, which can be in the following format:

·     hh:mm format—The hh value ranges from 0 to 720, and the mm value ranges from 0 to 59. When the hh value is 720, the mm value cannot be more than 0.

·     mm format—It ranges from 0 to 432000 minutes, with 0 indicating that the command is executed immediately.

view view: Specifies the view in which the command is executed. The view argument represents the view name, and it can take only one of the following keywords:

·     shell—Represents user view.

·     system—Represents system view.

command: Command to execute.

Description

Use schedule job to schedule a job in the non-modular approach.

Use undo schedule job to remove the scheduled job.

You can schedule a job to automatically run a command or a set of commands without administrative interference. The commands in a job are polled every minute. When the scheduled time for a command is reached, the job automatically executes the command. If a confirmation is required while the command is running, the system automatically enters Y or Yes. If characters are required, the system automatically enters a default character string or an empty character string when no default character string is available.

Follow these guidelines when you schedule a job in the non-modular approach:

·     You can schedule only one job and run only one command in this approach. If you perform the schedule job command multiple times, the last configuration takes effect.

·     To have the command successfully executed, check that the specified view and command are valid. The system does not verify their validity.

·     If you specify both the time1 and date arguments, the execution time or date must be later than the current system time or date.

·     If you specify the time1 argument, but not the date argument:

?     When time1 is earlier than the current system time, the command runs at time1 the next day.

?     When time1 is later than the current system time, the command runs at time1 of the current day.

·     The interval between the scheduled time and the current system time cannot exceed 720 hours, or 30 days.

·     Changing any clock setting can cancel the job set by using the schedule job command.

·     After job execution, the configuration interface, view, and user status that you have before job execution restore even if the job has run a command that changes the user interface (for example, telnet, ftp, and ssh2), the view (for example, system-view and quit), or the user status (for example, super).

Examples

# Schedule a job to execute the batch file 1.bat in system view in 60 minutes (assuming that the current time is 11:43).

<Sysname> schedule job delay 60 view system execute 1.bat

Info: Command execute 1.bat in system view will be executed at 12:43 01/01/2011 (in 1 hours and 0 minutes).

# Schedule a job to execute the batch file 1.bat in system view at 12:00 in the current day (assuming that the current time is 11:43).

<Sysname> schedule job at 12:00 view system execute 1.bat

Info: Command execute 1.bat in system view will be executed at 12:00 01/01/2011 (in 0 hours and 16 minutes).

schedule reboot at

Syntax

schedule reboot at hh:mm [ date ]

undo schedule reboot

View

User view

Default level

3: Manage level

Parameters

hh:mm: Reboot time, in the hh:mm format. The hh value ranges from 0 to 23, and the mm value ranges from 0 to 59.

date: Reboot date, in the MM/DD/YYYY or YYYY/MM/DD format. The YYYY value ranges from 2000 to 2035, the MM value ranges from 1 to 12, and the DD value ranges from 1 to 31.

Description

Use schedule reboot at to schedule a device reboot to occur at a specific time and date.

Use undo schedule reboot to disable the scheduled reboot function.

By default, the scheduled reboot function is disabled.

The interval between the reboot date and the current date cannot exceed 30 x 24 hours, or 30 days.

When no reboot date is specified:

·     If the reboot time is later than the current time, a reboot occurs at the reboot time of the current day.

·     If the reboot time is earlier than the current time, a reboot occurs at the reboot time the next day.

The device supports only one device reboot schedule. If you configure the schedule reboot at command multiple times, the last configuration takes effect. The schedule reboot at command and the schedule reboot delay command overwrite each other, and whichever is configured last takes effect.

The alert "REBOOT IN ONE MINUTE" appears one minute before the reboot time.

For data security, if you are performing file operations at the reboot time, the system does not reboot.

 

CAUTION

CAUTION:

·     A reboot can interrupt network services.

·     Changing any clock setting can cancel the reboot schedule.

 

Examples

# Configure the device to reboot at 12:00 AM. This example assumes that the current time is 11:43.

<Sysname> schedule reboot at 12:00

Reboot system at 12:00 06/06/2010(in 0 hour(s) and 16 minute(s))

 confirm? [Y/N]:

Enter y at the prompt. If you have used the terminal logging command to enable the log display function (enabled by default) on the terminal, the system automatically displays a reboot schedule log message.

<Sysname>

%Jun  6 11:43:11:629 2010 Sysname CMD/4/REBOOT:

vty0(192.168.1.54): Set schedule reboot parameters at 11:43:11 06/06/2010, and system will reboot at 12:00 06/06/2010.

schedule reboot delay

Syntax

schedule reboot delay { hh:mm | mm }

undo schedule reboot

View

User view

Default level

3: Manage level

Parameters

hh:mm: Device reboot delay, in the hh:mm format. The hh value ranges from 0 to 720, and the mm value ranges from 0 to 59. When the hh value is 720, the mm value cannot be more than 0.

mm: Device reboot delay in minutes, which ranges from 0 to 43,200.

Description

Use schedule reboot delay to schedule a device reboot to occur after a delay.

Use undo schedule reboot to disable the scheduled reboot function.

By default, the scheduled reboot function is disabled.

The reboot delay cannot exceed 30 x 24 x 60 minutes, or 30 days.

The device supports only one device reboot schedule. If you configure the schedule reboot delay command multiple times, the last configuration takes effect. The schedule reboot at command and the schedule reboot delay command overwrite each other, and whichever is configured last takes effect.

The alert "REBOOT IN ONE MINUTE" appears one minute before the reboot time.

For data security, if you are performing file operations at the reboot time, the system does not reboot.

 

CAUTION

CAUTION:

·     A reboot can interrupt network services.

·     Changing any clock setting can cancel the reboot schedule.

 

Examples

# Configure the device to reboot in 88 minutes. This example assumes that the current time is 11:48.

<Sysname> schedule reboot delay 88

Reboot system at 13:16 06/06/2010(in 1 hour(s) and 28 minute(s)). confirm? [Y/N]:

Enter y at the prompt. If you have used the terminal logging command to enable the log display function (enabled by default) on the terminal, the system automatically displays a reboot schedule log message.

<Sysname>

%Jun  6 11:48:44:860 2010 Sysname CMD/4/REBOOT:

vty0(192.168.1.54): Set schedule reboot parameters at 11:48:44 06/06/2010, and system will reboot at 13:16 06/06/2010.

shutdown-interval

Syntax

shutdown-interval time

undo shutdown-interval

View

System view

Default level

2: System level

Parameters

time: Detection interval in seconds, which ranges from 0 to 300.

Description

Use shutdown-interval to set a detection interval.

Use undo shutdown-interval to restore the default.

By default, the detection interval is 30 seconds.

Some protocols might shut down ports under specific circumstances. For example, MSTP shuts down a BPDU guard–enabled port when the port receives a BPDU. In this case, you can set the port status detection timer. If the port is still down when the detection timer expires, the protocol module automatically cancel the shutdown action and restore the port to its original physical status.

·     If you change the detection interval to T1 during port detection, the interval from when you change the interval to the time when the protocol module shuts down the port is T. If T<T1, the port which is down will be brought up after T1-T time. If T>=T1, the port which is down will be brought up immediately. For example, if the detection interval is set to 30 seconds and you change it to 10 seconds (T1=10) two seconds after the port is shut down (T=2), this port will be brought up 8 seconds later. If the detection interval is set to 30 seconds and you change it to 2 seconds ten seconds after the port is shut down, this port will be brought up immediately.

·     If the detection interval is set to 0, the protocol module will never automatically recover the port. You need to manually bring up the port by using the undo shutdown command or change the detection interval to a non-zero value.

Examples

# Set the detection interval to 100 seconds.

<Sysname> system-view

[Sysname] shutdown-interval 100

sysname

Syntax

sysname sysname

undo sysname

View

System view

Default level

2: System level

Parameters

sysname: Name of the device, which is a string of 1 to 30 characters.

Description

Use sysname to set the name of the device.

Use undo sysname to restore the device name to the default.

The default name is H3C.

Changing device name affects the prompt of the CLI. For example, if the device name is Sysname, the prompt of user view is <Sysname>.

Examples

# Set the name of the device to R2000.

<Sysname> system-view

[Sysname] sysname R2000

[R2000]

system-failure

Syntax

system-failure { maintain | reboot }

undo system-failure { maintain | reboot }

View

System view

Default level

3: Manage level

Parameters

maintain: Specifies that when the system detects any software abnormality, it maintains the current situation, and does not take any measure to recover itself.

reboot: Specifies that when the system detects any software abnormality, it recovers itself through automatic reboot.

Description

Use system-failure to configure the exception handling method.

By default, the system adopts the reboot method to handle exceptions.

Examples

# Set the exception handling method to reboot.

<Sysname> system-view

[Sysname] system-failure reboot

temperature-limit (advanced)

Syntax

temperature-limit slot slot-number { hotspot | inflow } sensor-number lowerlimit warninglimit [ alarmlimit ]

undo temperature-limit slot slot-number { hotspot | inflow } sensor-number

View

System view

Default level

2: System level

Parameters

slot slot-number: Specifies a card by its slot number.

hotspot: Specifies a hotspot sensor, which is typically placed near the chip that generates a great amount of heat for temperature monitoring.

inflow: Specifies an intake sensor, which is placed near the air inlet for temperature monitoring.

sensor-number: Specifies the sensor number. It is an integer starting from 1, each number representing a temperature sensor of a device or card.

lowerlimit: Lower temperature threshold in Celsius degrees. The value ranges from –30°C to +100°C (–22°F to +212°F).

warninglimit: Warning temperature threshold in Celsius degrees. The value ranges from 0°C to 100°C (32°F to 212°F).

alarmlimit: Alarming temperature threshold in Celsius degrees. The value ranges from 0°C to 100°C (32°F to 212°F). If you do not specify this argument, the device uses the current configuration.

Description

Use temperature-limit to set the temperature alarm thresholds for a device.

Use undo temperature-limit to restore the default.

By default, the temperature alarm threshold varies with device model. For the command matrixes, see About the WX Series Access Controllers Command References.

When the temperature of a sensor drops below the low temperature threshold or reaches the warning threshold, the system logs the event and outputs a log message and a trap.

When the temperature of a sensor reaches the alarming threshold, the system constantly outputs log and tap messages, and alerts users through the LED on the device panel.

 

 

NOTE:

·     Support of the command depends on your device model. For the command matrixes, see About the WX Series Access Controllers Command References.

·     The warning and alarming thresholds must be higher than the lower temperature threshold.

·     The alarming threshold must be higher than the warning threshold.

 

Examples

# Set the lower temperature threshold for the intake sensor 1 on card 0 to –10°C (14°F), the warning threshold to 70°C (158°F), and the alarming threshold to 100°C (212°F).

<Sysname> system-view

[sysname] temperature-limit slot 0 inflow 1 -10 70 100

temperature-limit (basic)

Syntax

temperature-limit slot-number lower-value upper-value

undo temperature-limit slot-number

View

System view

Default level

2: System level

Parameters

slot-number: This argument is invalid.

lower-value: Lower temperature limit in Celsius degrees. The value ranges from 0°C to 70°C (32°F to 158°F).

upper-value: Upper temperature limit in Celsius degrees. The value ranges from 20°C to 90°C (68°F to 194°F).

The upper-value argument must be larger than the lower-value argument.

Description

Use temperature-limit to set the temperature alarm threshold on a card.

Use undo temperature-limit to restore the temperature alarm threshold to the default.

By default, the temperature alarm threshold depends on device models. For the command matrixes, see About the WX Series Access Controllers Command References.

 

 

NOTE:

Support for the command depends on your device model. For the command matrixes, see About the WX Series Access Controllers Command References.

 

Examples

# Set the lower temperature limit on card 1 to 10°C (50°F) and the upper temperature limit to 75°C (167°F).

<Sysname> system-view

[Sysname] temperature-limit 1 10 75

Setting temperature limit succeeded.

time at

Syntax

time time-id at time date command command

time time-id { one-off | repeating } at time [ month-date month-day | week-day week-daylist ] command command

undo time time-id

View

Job view

Default level

3: Manage level

Parameters

time timeid: Time setting entry, an integer that ranges from 1 to 10.

at time: Specifies the execution time, in the hh:mm format, where the hh value ranges from 0 to 23 and the mm value ranges from 0 to 59.

one-off: Specifies that the specified command is executed for once.

repeating: Specifies a recurring time schedule.

date: Specifies the execution date, in the MM/DD/YYYY or YYYY/MM/DD format. The YYYY value ranges from 2000 to 2035, the MM value ranges from 1 to 12, and the DD value ranges from 1 to 31. The specified execution date must be ahead of the current date.

month-date month-day: Specifies the date for executing the command. month-day specifies the date, and ranges from 1 to 31.

week-day week-daylist: Specifies the day or days for executing the command. week-daylist specifies one day or up to seven days, which can be any combination of Sun, Mon, Tue, Wed, Thu, Fri, and Sat. For example, to have a command executed on Monday, you can enter week-day Mon; to have a command executed on Friday and Saturday, enter week-day Fri Sat. Use a space between every two days for separation.

command command: Specifies the command to be automatically executed, in the text format. The command must be executable in the view specified by the view command. Otherwise this command cannot be automatically executed. Therefore, ensure the correctness of the configuration.

Description

Use time at to add an entry in the job schedule.

Use undo time to remove an entry from the job schedule.

Use Table 13 when you add commands in a job.

Table 13 Command schedule options

Command

Description

time timeid at time date command command

Schedules a command to run at a specific time and date. The time or date must be later than the current system time or date.

time timeid one-off at time command command

Schedules a command to run at a specific time on the current day. If the specified time has passed, the command runs the next day.

The command runs only once.

time timeid one-off at time month-date month-day command command

Schedules a command to run at a specific day in the current month. If the specified time or day has passed, the command runs in the next month.

The command runs only once.

time timeid one-off at time week-day week-daylist command command

Schedules a command to run at a specific time on a specific day or days in the current week. If the specified time or day has passed, the command runs in the next week.

The command runs only once.

time timeid repeating at time command command

Schedules a command to run at a specific time every day.

time timeid repeating at time month-date month-day command command

Schedules a command to run on a specific day every month.

time timeid repeating at time week-day week-daylist command command

Schedules a command to run at a specific time in a specific day or days every week.

 

 

NOTE:

·     The commands in a job must be in the same view.

·     Every job can have up to 10 commands.

·     The time ID (time-id) must be unique in a job. If two time and command bindings have the same time ID, the one configured last takes effect.

 

Related commands: job and view.

Examples

# Schedule a job to save the configuration file a.cfg at 3:00 on May 18, 2011.

<Sysname> system-view

[Sysname] job saveconfig

[Sysname-job-saveconfig] view monitor

[Sysname-job-saveconfig] time 1 at 3:00 2011/05/18 command save a.cfg

# Schedule a job to save the configuration file a.cfg at 12:00 every day.

<Sysname> system-view

[Sysname] job saveconfig

[Sysname-job-saveconfig] view monitor

[Sysname-job-saveconfig] time 1 repeating at 12:00 command save a.cfg

# Schedule a job to save the configuration file a.cfg at 8:00 on 5th of this month. If the time has passed, the execution is delayed to the next month.

<Sysname> system-view

[Sysname] job saveconfig

[Sysname-job-saveconfig] view monitor

[Sysname-job-saveconfig] time 1 one-off at 8:00 month-date 5 command save a.cfg

# Schedule a job to save the configuration file a.cfg at 8:00 every month.

<Sysname> system-view

[Sysname] job saveconfig

[Sysname-job-saveconfig] view monitor

[Sysname-job-saveconfig] time 1 repeating at 8:00 month-date 5 command save a.cfg

# Schedule a job to save the configuration file a.cfg at 8:00 on Friday and Saturday of this week. If the time has passed, the execution is delayed to the next week.

<Sysname> system-view

[Sysname] job saveconfig

[Sysname-job-saveconfig] view monitor

[Sysname-job-saveconfig] time 1 one-off at 8:00 week-day fri sat command save a.cfg

# Schedule a job to save the configuration file a.cfg at 8:00 every Friday and Saturday.

<Sysname> system-view

[Sysname] job saveconfig

[Sysname-job-saveconfig] view monitor

[Sysname-job-saveconfig] time 1 repeating at 8:00 week-day fri sat command save a.cfg

time delay

Syntax

time time-id { one-off | repeating } delay time command command

undo time time-id

View

Job view

Default level

3: Manage level

Parameters

time timeid: Time setting entry, an integer that ranges from 1 to 10.

one-off: Specifies that the specified command is executed for once.

repeating: Specifies a recurring time schedule.

delay time: Specifies the delay time for executing the command, in the hh:mm format or mm format.

·     When the time argument is in the hh:mm format, the hh value ranges from 0 to 720, and the mm value ranges from 0 to 59. When the hh value is 720, the mm value can be only 00.

·     When the time argument is in the mm format , the mm value ranges from 1 to 43,200. That is, the maximum value of the delay timer is 30 days.

command command: Specifies the command to be automatically executed, in the text format. The specified command must be a complete command without interactive input.

Description

Use time delay to configure a scheduled job to be executed after a delay time.

Use undo time to remove the configuration.

Use Table 14 when you add commands in a job.

Table 14 Command schedule options

Command

Description

time timeid one-off delay time2 command command

Schedules a command to run after a delay time.

The command runs only once.

time timeid repeating delay time2 command command

Schedules a command to run every the delay time.

 

 

NOTE:

·     The commands in a scheduled job must be in the same view.

·     Every job can have up to 10 commands.

·     The time ID (time-id) must be unique in a job. If two time and command bindings have the same time ID, the one configured last takes effect.

 

Related commands: job and view.

Examples

# Save the configuration file a.cfg five minutes later.

<Sysname> system-view

[Sysname] job saveconfig

[Sysname-job-saveconfig] view monitor

[Sysname-job-saveconfig] time 1 one-off delay 5 command save a.cfg

# Save the configuration file a.cfg every five minutes.

<Sysname> system-view

[Sysname] job saveconfig

[Sysname-job-saveconfig] view monitor

[Sysname-job-saveconfig] time 1 repeating delay 5 command save a.cfg

view

Syntax

view view-name

undo view

View

Job view

Default level

3: Manage level

Parameters

view-name: Specifies a view name, a string of 1 to 90 characters. All commands in the job are executed in the specified view.

Description

Use view to specify a view for a job.

Use undo view to remove the view of a job.

By default, no view is specified for a job.

Every job can have only one view. If you specify multiple views, the one specified the last takes effect.

Input a view name in its complete form and make sure that the view name is available on the device. Most commonly used view names include monitor for user view, system for system view, GigabitEtherentx/x/x for Ethernet interface view, and Vlan-interfacex for VLAN interface view.

Related commands: job and time.

Examples

# Specify system view for the job creatvlan.

<Sysname> system-view

[Sysname] job creatvlan

[Sysname-job-creatvlan] view system

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网