01-Fundamentals Command Reference

HomeSupportWirelessH3C WX3000E Series Wireless SwitchesReference GuidesCommand ReferencesH3C WX3000E Series Wireless Switches Switching Engine Command References(R3507P26)-6W10201-Fundamentals Command Reference
06-Device Management Commands
Title Size Download
06-Device Management Commands 246.39 KB

The term "switch" or "device" in this chapter refers to the switching engine on a WX3000E wireless switch.

The WX3000E series comprises WX3024E and WX3010E wireless switches.

The port numbers in this chapter are for illustration only.

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 the clock datetime command to set the system time and date.

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 08/01/2005.

<Sysname> clock datetime 14:10:20 8/1/2005

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

<Sysname> clock datetime 0:6 2007/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: Name of the daylight saving time, which is 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 the clock summer-time one-off command 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 the undo clock summer-time command to cancel the configuration of the daylight saving time.

By default, daylight saving time is configured on the device, and the universal time coordinated (UTC) time zone is applied.

 

 

NOTE:

·       To view your configuration after it takes effect, use the display clock command. The time displayed in the log or debug information is the adjusted local time.

·       The time range from start-time in start-date to end-time in end-date must be longer than one day and shorter than one year. Otherwise, the argument is considered as invalid and the configuration fails.

·       If the standard time of the device is in the time range specified with this command, the system time automatically adds “add-time” after the execution of this command.

 

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

Examples

# For daylight saving time in abc1 between 06:00:00 on 08/01/2006 and 06:00:00 on 09/01/2006, set the system clock ahead one hour.

<Sysname> system-view

[Sysname] clock summer-time abc1 one-off 6 08/01/2006 6 09/01/2006 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: Name of the daylight saving time, which is 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 the clock summer-time repeating command to adopt the daylight saving time repeatedly.

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

By default, daylight saving time is configured on the device, and the UTC time zone is applied.

For example, if you specify start-date and start-time as 2008/6/6 and 00:00:00, end-date and end-time to 2008/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 2008 (2008 inclusive). The daylight saving time adds one hour to the standard time of the device.

 

 

NOTE:

·       To view the result after the configuration takes effect, use the display clock command. The time displayed in the log or debug information is the adjusted local time.

·       The time range from “start-time” in “start-date” to “end-time” in “end-date” must be longer than one day and shorter than one year. Otherwise, the argument is considered as invalid and the configuration fails.

·       If the standard time of the device is in the time range specified with this command, the system time automatically adds “add-time” after the execution of this command.

 

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

Examples

# For the daylight saving time in abc2 between 06:00:00 on 08/01/2007 and 06:00:00 on 09/01/2007 and from 06:00:00 08/01 to 06:00:00 on 09/01 each year after 2007, set the system clock ahead one hour.

<Sysname> system-view

[Sysname] clock summer-time abc2 repeating 06:00:00 08/01/2007 06:00:00 09/01/2007 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 the clock timezone command to set the local time zone.

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

By default, the local time zone is UTC zone.

 

 

NOTE:

To view the result after the configuration takes effect, use the display clock command. The time displayed in the log or debug information is the specified local time zone.

 

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

copyright-info enable

Syntax

copyright-info enable

undo copyright-info enable

View

System view

Default level

3: Manage level

Parameters

None

Description

Use the copyright-info enable command to enable the display of copyright information.

Use the undo copyright-info enable command to disable the display of copyright information.

By default, the display of copyright information is enabled.

Examples

# Enable the display of copyright information.

<Sysname> system-view

[Sysname] copyright-info enable

·           If a user logs in to the device through Telnet, the following information is displayed:

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

* 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>

·           If a user has already logged in through OAP, and then quits user view, the following information is displayed:

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

* 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 aux0 is available.

 

 

 

Please press ENTER.

# Disable the display of copyright information.

<Sysname> system-view

[Sysname] undo copyright-info enable

·           If a user logs in to the device through Telnet, the following information is displayed:

<Sysname>

·           If a user has already logged in through OAP, and then quits user view, the following information is displayed:

User interface aux0 is available.

 

 

 

Please press ENTER.

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 the 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, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display clock command to display 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 the 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/2005

display cpu-usage

Syntax

display cpu-usage [ slot slot-number [ cpu cpu-number ] ] [ | { begin | exclude | include } regular-expression ]

display cpu-usage entry-number [ offset ] [ verbose ] [ slot slot-number [ cpu cpu-number ] ] [ 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 utilization rate record to be displayed and that of the last CPU utilization 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 utilization rate during this period, and the idx value is added by 1 automatically.

verbose: Displays detailed CPU utilization rates. If this keyword is provided, the system displays the average CPU utilization rate for each task in the specified period. If this keyword is not provided, the system displays the brief information of the CPU utilization rates.

slot slot-number: Displays information about CPU utilization rates on the specified device. The slot-number argument refers to the number of the slot where the device resides, and its value is 1.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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, which is a case-sensitive string of 1 to 256 characters.

cpu cpu-number: Displays the CPU utilization rates of the specified CPU. If the cpu-number argument is not provided, the system displays the CPU utilization rates of all CPUs of the specified card or member device.

Description

Use the display cpu-usage command to display the CPU utilization rates.

The system collects the CPU utilization rates every 60 seconds and saves the statistics in the history record area. display cpu-usage entry-number displays entry-number records starting with the newest (last) record. display cpu-usage entry-number offset indicates the system displays number records from the last but offset record.

Examples

# Display the current CPU utilization rates.

<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 record entries of the CPU utilization rates.

<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 : 2006-07-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 : 2006-07-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 Output description

Field

Description

1% in last 5 seconds

After a boot, the system calculates and records the average CPU utilization rate every five seconds.

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

1% in last 1 minute

After a boot, the system calculates and records the average CPU utilization rate every one minute.

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

1% in last 5 minutes

After a boot, the system calculates and records the average CPU utilization rate every five minutes.

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

CPU usage info (no:  idx:)

Information of CPU utilization 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 utilization rate measurement interval, in seconds. For example, if the value is 41, it indicates that the average CPU utilization rate during the last 41 seconds is calculated. The value range of this field is 1 to 60.

CPU Usage

Average CPU utilization rate in a measurement interval, in percentage

CPU Usage Stat. Time

CPU utilization 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 utilization rate 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 utilization rate records might differ slightly.

 

display cpu-usage history

Syntax

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

View

Any view

Default level

1: Monitor level

Parameters

task task-id: Displays the history CPU utilization rates of the specified task, where task-id represents the task number. If the task-id argument is not provided, the system displays the history CPU utilization rates of the entire system (the CPU utilization rates of the entire system is the sum of CPU utilization rates of all tasks).

slot slot-number: Displays the history CPU utilization rates on the specified device. The slot-number argument refers to the number of the slot where the device resides, and its value is 1.

cpu cpu-number: Displays the history CPU utilization rates of the specified CPU. If the cpu-number argument is not provided, the system displays the history CPU utilization rates of the main CPU.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display cpu-usage history command to display history CPU utilization rates in a coordinate plane.

If no argument is provided, the system displays the history CPU utilization rates of the whole system.

The system collects the statistics of history CPU utilization rates at a certain interval and saves the statistics in the history record area. You can use the display cpu-usage history command to display the history CPU utilization rates in the last 60 minutes. The history CPU utilization rates are displayed through x and y coordinates.

·           Any CPU utilization statistics value takes the closest y-coordinate value. For example, a statistics value of 53% is displayed as 55%, and a statistics value of 52% is displayed as 50%.

·           A number sign (#) shows the CPU utilization rate at a time point. If more than one number sign exists at a time point, the highest one represents the CPU utilization rate of the time point.

Examples

# Display history CPU utilization rates.

<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 history CPU utilization rates (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 history 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 history 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 [ slot slot-number | verbose ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

2: System level

Parameters

slot slot-number: Displays information about the specified device. The slot-number argument refers to the number of the slot where the device resides, and its value is 1.

verbose: Displays detailed information.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display device command to display device information.

Examples

# Display device information.

<Sysname> display device

 Slot 1

SubSNo PortNum PCBVer  FPGAVer CPLDVer BootRomVer AddrLM Type       State

0      30      Ver.A   NULL    004      1.04      IVL    MAIN       Normal

Table 2 Output description

Field

Description

SubSNo

Number of the slot where the switching engine resides

PortNum

Maximum number of ports that the switching engine supports

PCBVer

PCB version of the switching engine

FPGAVer

FPGA version of the switching engine

CPLDVer

CPLD version of the switching engine

BootRomVer

Boot ROM version of the switching engine

AddrLM

Address learning mode

Type

Type of the switching engine

State

State of the switching engine

 

display device manuinfo

Syntax

display device manuinfo [ | { 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 the 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, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display device manuinfo command to display electrical label information.

Electrical label information is also called permanent configuration data or archive information, which is written to the storage medium during debugging or test of a card or device. The information includes name of the card, device serial number, and vendor name. This command displays part of the electrical label information.

Examples

# Display electrical label information.

<Sysname> display device manuinfo

Slot 1:

DEVICE_NAME          : WX3024E-LSW

DEVICE_SERIAL_NUMBER : 210235A0E21111111110

MAC_ADDRESS          : 00E0-FC00-3620

MANUFACTURING_DATE   : 2011-03-01

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 the 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, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display diagnostic-information command to display or save the statistics of the running status of multiple modules in the system.

During daily maintenance or when the system is out of order, you need to display the running information of each functional module to locate the problem. Generally, you need to execute the corresponding display commands for each module, because each module has independent running information. To collect more information at a time, execute the display diagnostic-information command to display or save the statistics of the running status of multiple modules in the system. Execution of the display diagnostic-information command equals execution of the commands display clock, display version, display device, and display current-configuration one by one.

Examples

# Save the statistics of each module's running status in the system.

<Sysname> display diagnostic-information

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

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

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

Please wait...

Save succeeded.

To view the content of file aa.diag, execute the more.aa.diag command in user view, in combination of the Page Up and Page Down keys.

# Display the statistics of each module's running status in the system.

<Sysname> display diagnostic-information

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

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

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

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

08:54:16 UTC Fri 11/15/2008

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

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

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

……Omitted……

display environment

Syntax

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

View

Any view

Default level

1: Monitor level

Parameters

slot slot-number: Displays temperature information on the specified device. The slot-number argument refers to the number of the slot where the device resides, and its value is 1.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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, which is a case-sensitive string of 1 to 256 characters.

Description

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

Examples

# Display temperature information.

<Sysname> display environment

Slot 1

System temperature information (degree centigrade):

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

Sensor    Temperature  LowerLimit  WarningLimit  AlarmLimit ShutdownLimit

inflow  1      33         -5              42          50         NA

hotspot 1      45          0              82          92         NA

Table 3 Output description

Field

Description

sensor

Temperature sensor

·       hotspot: A hotspot sensor.

·       inflow: An air intake sensor.

Temperature

Current temperature

LowerLimit

Temperature lower limit

WarningLimit

Warning temperature threshold

AlarmLimit

Alarming temperature threshold

ShutdownLimit

Shut-down temperature threshold. When the sensor temperature reaches this limit, the system shuts down automatically.

 

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.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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, which is a case-sensitive string of 1 to 256 characters.

Description

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

Examples

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

<Sysname> display fan

 Fan   1 State: Normal

 Fan   2 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 the task name, which is a string of 1 to 32 characters.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display job command to display detailed scheduled task information.

If no argument is specified, this command displays information about all scheduled tasks.

Related commands: job, time, and view.

Examples

# Display detailed information of the scheduled task 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 Output description

Field

Description

Job name

Name of the scheduled task

Specified view

View containing the commands in the task

Time timeID

Execution time of each command in the task

Execute command

Command string

 

display memory

Syntax

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

View

Any view

Default level

1: Monitor level

Parameters

slot slot-number: Displays memory usage on the specified device. The slot-number argument refers to the number of the slot where the device resides, and its value is 1.

cpu cpu-number: Displays the memory of a specified CPU, where cpu-number represents the ID of the CPU.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display memory command to display memory usage.

Examples

# Display memory usage.

<Sysname> display memory

System Total Memory(bytes): 70193200

Total Used Memory(bytes): 37953004

Used Rate: 54%

Table 5 Output description

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 PSU, where power-id represents the PSU number.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display power command to display PSU information.

Examples

# Display PSU information.

<Sysname> display power

 Power   1 State: Normal

Table 6 Output description

Field

Description

Power

PSU number

State

PSU state:

·       Normal

·       Absent

·       Fault

 

display reboot-type

Syntax

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

View

Any view

Default level

2: System level

Parameters

slot slot-number: Displays the reboot mode on the specified device. The slot-number argument refers to the number of the slot where the device resides, and its value is 1.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display reboot-type command to display the reboot mode.

Examples

# Display the reboot mode.

<Sysname> display reboot-type

  The rebooting type this time is: Cold

The output shows that the last reboot mode 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 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 the 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, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display schedule reboot command to display the reboot time set by the user.

Related commands: schedule reboot at and schedule reboot delay.

Examples

# Display the reboot time.

<Sysname> display schedule reboot

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

The output shows that the system will reboot at 16:00:00 on March 10, 2006 (in two hours and five 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 the 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, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display system-failure command 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 main parameters of the pluggable transceiver in the specified interface. interface-type interface-number represents interface type and interface number. If it is not specified, the command displays main parameters of the pluggable transceivers in all the interfaces.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display transceiver command to display the main parameters of a single or all pluggable transceivers.

Examples

# Display main parameters of the pluggable transceiver in interface GigabitEthernet 1/0/28.

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

GigabitEthernet1/0/28 transceiver information:

  Transceiver Type              : 1000_BASE_LX_SFP

  Connector Type                : LC

  Wavelength(nm)                : 1310

  Transfer Distance(km)         : 10(9um)

  Digital Diagnostic Monitoring : YES

  Vendor Name                   : H3C

  Ordering Name                 : SFP-GE-LX10-SM1310

 

Table 7 Output description

Field

Description

transceiver information

Pluggable transceiver information

Transceiver Type

Pluggable transceiver type

Connector Type

Type of the connectors of the transceiver:

·       Optical connectors, including SC (SC connector, developed by NTT) and LC (LC connector, 1.25 mm/RJ-45 optical connector developed by Lucent).

·       Other connectors, including RJ-45 and CX 4.

Wavelength(nm)

·       Optical transceiver: central wavelength of the laser sent, in nm. If the transceiver supports multiple wavelengths, every two wavelength values are separated by a comma.

·       Electrical transceiver: displayed as N/A.

Transfer distance(xx)

Transfer distance, with xx representing km for single-mode transceivers and m for other transceivers. If the transceiver supports multiple transfer medium, every two values of the transfer distance are separated by a comma. The corresponding transfer medium is included in the bracket following the transfer distance value. The following are the 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

·       TP: Twisted pair

·       CX4: CX4 cable

Digital Diagnostic Monitoring

Whether the digital diagnosis function is supported:

·       YES: supported

·       NO: not supported

Vendor Name

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

·       H3C is displayed for an H3C customized anti-spoofing transceiver.

·       The vendor name is displayed for other transceivers.

Ordering Name

Pluggable transceiver model

 

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 the current alarm information of the pluggable transceiver in the specified interface. interface-type interface-number represents interface type and interface number. If it is not specified, the command displays the current alarm information of the pluggable transceiver in all the interfaces.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display transceiver alarm command to display the alarm information of a single or all transceivers.

If no error occurs, None is displayed.

The following table shows the alarm information that might occur to the commonly used transceivers.

Table 8 Output description

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.

XFP

RX loss of signal

Incoming (RX) signal is lost.

RX not ready

RX is not ready

RX CDR loss of lock

RX clock cannot be recovered.

RX power high

RX power is high.

RX power low

RX power is low.

TX not ready

TX is not ready.

TX fault

TX fault

TX CDR loss of lock

TX clock cannot be recovered.

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.

Module not ready

Module is not ready.

APD supply fault

APD (Avalanche Photo Diode) supply fault

TEC fault

TEC (Thermoelectric Cooler) fault

Wavelength unlocked

Wavelength of optical signal exceeds the manufacturer’s tolerance.

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.

 

Examples

# Display the alarm information of the pluggable transceiver in interface GigabitEthernet 1/0/28.

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

GigabitEthernet1/0/28 transceiver current alarm information:

  RX loss of signal

  RX power low

Table 9 Output description

Field

Description

transceiver current alarm information

Current alarm information of the transceiver

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 currently measured values of digital diagnosis parameters of the H3C customized anti-spoofing pluggable optical transceiver in the specified interface. interface-type interface-number represents interface type and interface number. If it is not specified, the command displays the currently measured values of digital diagnosis parameters of H3C customized anti-spoofing pluggable optical transceivers in all the interfaces.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display transceiver diagnosis command to display the currently measured values of digital diagnosis parameters of H3C customized anti-spoofing pluggable optical transceivers.

Examples

# Display the currently measured values of the digital diagnosis parameters of the H3C customized anti-spoofing pluggable optical transceiver in interface GigabitEthernet 1/0/28.

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

GigabitEthernet1/0/28 transceiver diagnostic information:

  Current diagnostic parameters:

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

    33        3.28        0.00      -36.95          -40.00

Table 10 Output description

Field

Description

transceiver diagnostic information

Digital diagnosis information of the transceiver 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 part of the electrical label information of the H3C customized anti-spoofing pluggable transceiver in the specified interface. interface-type interface-number represents interface type and interface number. If it is not specified, the command displays part of the electrical label information of the H3C customized anti-spoofing pluggable transceivers in all the interfaces.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display transceiver manuinfo command to display part of the electrical label information of a single or all H3C customized anti-spoofing pluggable transceivers.

Examples

# Display the electrical label information of the H3C customized anti-spoofing pluggable transceiver in interface GigabitEthernet 1/0/28.

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

GigabitEthernet1/0/28 transceiver manufacture information:

  Manu. Serial Number  : 213410A0000054000251

  Manufacturing Date   : 2006-09-01

  Vendor Name          : H3C

Table 11 Output description

Field

Description

Manu. Serial Number

Serial number generated during debugging and testing of the customized transceivers

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 the 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, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display version command to display 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 (The system version information varies by the device.).

<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: Sets the banner displayed when a user interface is activated by a Modem user. If authentication is needed, the incoming banner is displayed after the authentication is passed.

legal: Sets the license information banner before a user logs onto the terminal interface. The legal banner is displayed before the user inputs the username and password.

login: Sets the login banner at authentication.

motd: Sets the banner displayed before login. If authentication is required, the banner is displayed before authentication.

shell: Sets the banner displayed when a non Modem login user enters user view.

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

Description

Use the header command to create a banner.

Use the undo header command to clear a banner.

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 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)%

 

 

NOTE:

·       Character % is the starting/ending character of text in this example. Entering % after the displayed text quits the header command.

·       As the starting and ending character, % is not a part of a banner.

 

# Test the configuration remotely using Telnet. (only when login authentication is configured can the login banner be displayed).

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

* 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 name of the scheduled task, a string of 1 to 32 characters.

Description

Use the job command to create a scheduled task and enter job view, or enter this view directly if a task is ready.

Use the undo job command to remove the task.

By default, no scheduled task is created.

After creating a scheduled task, you can configure the task in job view. For example, you can specify the execution time for the commands in the task.

This command can be repeatedly executed to create multiple independent scheduled tasks.

Related commands: time and view.

Examples

# Create a scheduled task or enter the scheduled task saveconfiguration.

<Sysname> system-view

[Sysname] job saveconfiguration

[Sysname-job-saveconfiguration]

reboot

Syntax

reboot [ slot slot-number ]

View

User view

Default level

3: Manage level

Parameters

slot slot-number: Reboots the specified device. The slot-number argument refers to the number of the slot where the device resides, and its value is 1.

Description

Use the reboot command to reboot the device.

 

CAUTION

CAUTION:

·       Device reboot might result in the interruption of the ongoing services. Use these commands with caution.

·       If a main boot file fails or does not exist, the device cannot be rebooted with the reboot command. In this case, you can re-specify a main boot file to reboot the device, or you can power off the device, then power it on and the system automatically uses the backup boot file to restart the device.

·       If you are performing file operations when the device will be rebooted, the system does not execute the command for security.

 

Examples

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

<Sysname> reboot

reset unused porttag

Syntax

reset unused porttag

View

User view

Default level

1: Monitor level

Parameters

None

Description

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

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 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 for, 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 the schedule reboot at command to enable the scheduled reboot function and specify a specific reboot time and date.

Use the undo schedule reboot command to disable the scheduled reboot function.

By default, the scheduled reboot function is disabled.

If no specific reboot date is specified:

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

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

·           If you are performing file operations at the reboot time, no reboot occurs for security.

The precision of the timer is 1 minute. One minute before the reboot time, a prompt “REBOOT IN ONE MINUTE” is displayed.

The difference between the reboot date and the current date cannot exceed 30 x 24 hours (namely, 30 days).

After you execute this command, a prompt is displayed to ask you to confirm the configuration. You must enter Y or y to make the configuration take effect. The original configuration will be overwritten at the same time.

If a date (month/day/year or year/month/day) later than the current date is specified for the schedule reboot at command, a reboot occurs at the reboot time.

If you use the clock command after the schedule reboot at command to adjust the system time, the reboot time set by the schedule reboot at command will become invalid.

 

CAUTION

CAUTION:

This command is executed in a future time, which might result in service interruption. Please use it with caution.

 

Examples

# Configure a reboot at 12:00 AM (supposing that the current time is 11:43 on June 6, 2006).

<Sysname> schedule reboot at 12:00

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

 confirm? [Y/N]:

Enter <y> to confirm the configuration. If you have enabled log display with the terminal logging command, the system automatically displays the following log information. By default, the log display function is enabled.

<Sysname>

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

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

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 wait time, 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 wait time in minutes, which ranges from 0 to 43,200.

Description

Use the schedule reboot delay command to enable the scheduled reboot function and set a reboot wait time.

Use the undo schedule reboot command to disable the scheduled reboot function.

By default, the scheduled reboot function is disabled.

The reboot wait time can be in the hh:mm format or mm format—absolute minutes. The absolute minutes cannot exceed 30 x 24 x 60 minutes, namely, 30 days.

The precision of the timer is 1 minute. One minute before the reboot time, a prompt “REBOOT IN ONE MINUTE” is displayed.

After you execute this command, a prompt is displayed to ask you to confirm the configuration. You must enter Y or y to make the configuration take effect. The original configuration will be overwritten at the same time.

If you use the clock command after the schedule reboot delay command to adjust the system time, the reboot wait time set by the schedule reboot delay command will become invalid.

If you are performing file operations at the reboot time, no reboot occurs for security.

 

CAUTION

CAUTION:

This command is executed after the specified delay, which might result in service interruption. Please use it with caution.

 

Examples

# Configure a reboot in 88 minutes (supposing the current time is 11:48 on June 6, 2006).

<Sysname> schedule reboot delay 88

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

Enter <y> to confirm the configuration. If you have enabled log display with the terminal logging command, the system automatically displays the following log information. By default, the log display function is enabled.

<Sysname>

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

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

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 the shutdown-interval command to set a detection interval.

Use the undo shutdown-interval command to restore the default.

By default, the detection interval is 30 seconds.

Some protocol modules might shut down ports under specific circumstances. For example, an MSTP module will automatically shut down a port that receives configuration messages after the BPDU guard function is enabled on the port. Then, the MSTP module enables a detection timer and detects the status of the port. If the port is down before the detection timer times out, the MSTP module will automatically bring up the port.

·           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 the sysname command to set the name of the device.

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

By default, the device 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 the system-failure command 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

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: Set the temperature thresholds for the specified device. The slot-number argument refers to the number of the slot where the device resides, and its value is 1.

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: Low temperature limit in Celsius degrees. For a hotspot sensor, the value ranges from –30°C to 0°C (–22°F to +32°F). For an inflow sensor, the value ranges from –30°C to –5°C (–22°F to +23°F).

warninglimit: Warning temperature threshold in Celsius degrees.

alarmlimit: Alarming temperature threshold in Celsius degrees. If you do not specify this argument, the current configuration is used.

Description

Use the temperature-limit command to set the temperature thresholds.

Use the undo temperature-limit command to restore the default.

By default, the warning threshold is 82°C (179.6°F), and the warning threshold is 92°C (197.6°F).

If the temperature is lower than the low temperature limit, the system logs the event and outputs the log information and trap information. If the temperature reaches the warning threshold, the system logs the event and outputs the log information and trap information. If the temperature reaches the alarming threshold, the system not only repeatedly outputs the log information and trap information in the terminal display, but also alerts users through the LED on the device panel.

 

 

NOTE:

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

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

 

Examples

# Set the lower temperature limit for the intake sensor 1 to –10 Celsius degrees, the warning threshold to 70 Celsius degrees, and the alarming threshold to 100 Celsius degrees.

<Sysname> system-view

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

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 the time at command to schedule a task.

Use the undo time command to remove the time schedule for the task.

·           Use time timeid at time date command command to specify the execution time for the command. The time must be later than the current time of the system.

·           Use time timeid one-off at time command command to specify the time on the current day for executing the command. If the specified time has passed, this command will be executed next day. This command will be executed only once.

·           Use time timeid one-off at time month-date month-day command command to specify the time on the specified day in the current month for executing the command. If the specified time has passed, this command will be executed at the specified time on the specified day in the next month. This command will be executed only once.

·           Use time timeid one-off at time week-day week-daylist command command to specify the time on the specified day or days in the current week for executing the command. If the time has passed, this command will be executed at the specified time on the specified day or days in the next week. This command will be executed only once.

·           Use time timeid repeating at time command command to specify the time for repeating the command every day.

·           Use time timeid repeating at time month-date month-day command command to specify the time on a specific day for repeating the command every month.

·           Use time timeid repeating at time week-day week-daylist command command to specify the time on a specified day or days for repeating the command every week.

Related commands: job and view.

 

 

NOTE:

·       The commands configured in a scheduled task must belong to the same view.

·       A scheduled task can be configured with up to 10 commands, each of which corresponds to a unique time ID. If you want more than 10 commands to be executed, configure them into different tasks.

 

Examples

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

<Sysname> system-view

[Sysname] job saveconfig

[Sysname-job-saveconfig] view monitor

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

# Schedule a task to save the configuration file 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 task to save the configuration file at 8:00 AM on 5th in the current month, which might be executed in the second month if the time has passed.

<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 task to save the configuration file at 8:00 AM on 5th 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 task to save the configuration file at 8:00 AM on Friday and Saturday in the current week, which might be delayed to the next week if the time has passed.

<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 task to save the configuration file at 8:00 every Fridays and Saturdays.

<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 the time delay command to configure a command to be executed after a specified delay time.

Use the undo time command to cancel the configuration.

·           Use time timeID one-off delay time command command to specify the time delay for executing the command. This command will be executed only once.

·           Use time timeID repeating delay time command command to specify the time interval for executing the command periodically.

Related commands: job and view.

 

 

NOTE:

·       The commands configured in a scheduled task must belong to the same view.

·       A scheduled task can be configured with up to 10 commands, each of which corresponds to a unique time ID. If you want more than 10 commands to be executed, configure them into different tasks.

 

Examples

# Save the configuration file 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 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 name of the view in which commands in the scheduled task are executed. A view name is a string of 1 to 90 characters.

Description

Use the view command to specify the view in which the commands contained in the scheduled task are automatically executed.

Use the undo view command to remove the configuration.

By default, no view is specified for the scheduled task.

Only one view can be specified for a scheduled task. That is, all the commands in the task are automatically executed in the specified view. If different views are specified by executing the view view-name command repeatedly, only the last configuration takes effect.

The view specified for a schedule task must be supported by the system and the view name is in its complete format. Commonly used view names include: monitor for user view, system for system view, GigabitEtherentx/x/x for GigabitEthernet interface view, and Vlan-interfacex for VLAN interface view.

Related commands: job and time.

Examples

# Configure a task to be automatically executed in system view.

<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
新华三官网