01-Fundamentals Command Reference

HomeSupportRoutersH3C SR8800 Router SeriesReference GuidesCommand ReferencesH3C SR8800 Command Reference-Release3347-6W10301-Fundamentals Command Reference
07-Device Management Commands
Title Size Download
07-Device Management Commands 316.48 KB

 

 

NOTE:

In this document, SPC cards refer to the cards with silkscreen staring with SPC, for example, SPC-GT48L, and SPE cards refer to the cards with silkscreen staring with SPE, for example, SPE-1020-E-II.

File names in this document comply with the following rules:

·       Path + file name (namely, a full file name): File on a specified path. A full file name consists of 1 to 135 characters.

·       “File name” (namely, only a file name without a path): File on the current working path. The file name without a path consists of 1 to 91 characters.

 

buffer-manage share-size

Syntax

buffer-manage { ingress | egress } slot slot-number share-size size-value

undo buffer-manage { ingress | egress } slot slot-number share-size

View

System view

Default level

3: Manage level

Parameters

ingress: Sets the receive buffer shared by all interfaces on the router.

egress: Sets the transmit buffer shared by all interfaces on the router.

slot slot-number: Specifies the slot number of a card.

size-value: Sets the size in blocks of the shared receive buffer or transmit buffer, with a step of 512. The size in blocks of the shared receive buffer ranges from 0 to 2048, and that of the shared transmit buffer ranges from 0 to 7168.

Description

Use the buffer-manage share-size command to set the size in blocks of the receive or transmit buffer shared by all interfaces on the card.

Use the undo buffer-manage share-size command to restore the default.

By default, the size in blocks of the shared receive buffer is 1024, and that of the shared transmit buffer is 4608.

You can tune the shared buffer area depending on traffic patterns. If transient large traffic bursts occur on some interfaces, you can expand the shared buffer to accommodate the bursts to prevent traffic loss. If transient small traffic bursts often occur on the interfaces, you can decrease the shared buffer so that each port can get more dedicated buffer memory.

 

 

NOTE:

·       The router does not support the ingress keyword. That is, you cannot set the receive buffer that all interfaces on the router share.

·       You cannot set shared buffers for the SPE cards.

 

Examples

# Set the size of the shared transmit buffer on the card in slot 3 to 2048 blocks.

<Sysname> system-view

[Sysname] buffer-manage egress slot 3 share-size 2048

card-mode

Syntax

card-mode slot slot-number subslot subslot-number mode-name

View

System view

Default level

2: System level

Parameters

slot slot-number: Specifies slot number of a card.

subslot subslot-number: Specifies subslot number of a subcard.

mode-name: Working mode of a specified subcard. The router supports the following modes:

·           e: Sets the working mode E mode (including E1 and E3 modes).

·           t: Sets the working mode to T mode (including T1 and T3 modes).

Description

Use the card-mode command to set the working mode of an interface subcard.

 

 

NOTE:

You must restart the router to make the newly configured working mode take effect.

 

Examples

# Set the working mode of the interface subcard 1 in slot 2 to E mode.

<Sysname> system-view

[Sysname] card-mode slot 2 subslot 1 e

Info: Please reboot or hot-swap the board or card (if supported) to make the configuration take effect.

clock datetime

Syntax

clock datetime time date

View

User view

Default level

3: Manage level

Parameters

time: Specifies a 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: Specifies a 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 current time and date of the router.

The current time and date of the router must be set in an environment that requires the acquisition of absolute time.

You may choose not to provide seconds when inputting the time parameters.

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

Examples

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

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

# 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: Specifies a daylight saving time schedule by a zone name, a case-sensitive string of 1 to 32 characters.

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

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

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

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

add-time: Specifies a time to be 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 router.

Use the undo clock summer-time command 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: display clock, clock datetime, clock summer-time repeating, and clock timezone.

Examples

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

<Sysname> system-view

[Sysname] clock summer-time abc1 one-off 6 08/01/2007 6 09/01/2007 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: Specifies a daylight saving time schedule by a zone name, a case-sensitive string of 1 to 32 characters.

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

start-date: Specifies a 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: Specifies an end time, in the hh:mm:ss format. Zeros can be omitted, unless you specify 00:00:00.

end-date: Specifies an 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: Specifies a time to be 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 set a recurring daylight saving schedule.

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

By default, daylight saving time is disabled and 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: display clock, clock datetime, clock summer-time one-off, and clock timezone.

Examples

# Set the system time ahead one hour every year after 2007 (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/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: Specifies a time zone by its name, a case-sensitive string of 1 to 32 characters.

add: Adds a specified offset to UTC.

minus: Subtracts a specified offset to UTC.

zone-offset: Specifies an offset to the UTC, 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 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: display clock, clock datetime, clock summer-time one-off, and clock summer-time repeating.

Examples

# Set local time zone to add five hours to 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 displaying the copyright statement.

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

By default, this feature is enabled.

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-2009 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-2009 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.

display alarm

Syntax

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

View

Any view

Default level

1: Monitor level

Parameters

slot slot-number: Displays the alarm information on the specified card, where slot-number represents the slot number of a card. If the slot-number argument is not specified, the command displays the alarm information on all cards.

|: 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 the display alarm command to display the alarm information on the router.

After this command is configured, the system automatically queries the current alarm information on the boards and displays the alarm information.

Examples

# Display the alarm information on the router.

<Sysname> display alarm

Slot  Level    Info

6     ERROR    Fan 2 is absent.

6     ERROR    Power 2 is absent.

6     ERROR    The board in slot 10 is faulty.

3     WARNING  The temperature of sensor 3 exceeds the lower limit.

Table 1 Output description

Field

Description

Slot

Slot where the alarm resides.

Level

Alarm severity level:

·       ERROR

·       WARNING

·       NOTICE

·       INFO

Info

Detailed alarm information.

The board in slot n is faulty.

The card is starting up or the card is faulty.

 

display buffer-manage configuration

Syntax

display buffer-manage configuration [ slot slot-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

slot slot-number: Displays the configuration of the shared buffer on the specified card, where slot-number represents the slot number of a card. If the slot-number argument is not specified, the command displays the configuration of the shared buffer on all cards.

|: 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 the display buffer-manage configuration command to display the configuration of the shared buffer on the specified card.

Examples

# Display the configuration of the shared buffer on card 3.

<Sysname> display buffer-manage configuration slot 3

Ingress: the number of shared buffer units for received packets

Egress: the number of shared buffer units for sent packets

Slot No. Ingress    Egress

3        1536       4096

display clipboard

Syntax

display clipboard [ | { 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 the display clipboard command to view the contents of the clipboard.

To copy the specified content to the clipboard:

·           Move the cursor to the starting position of the content and press <Esc+Shift+,> (“,” is an English comma).

·           Move the cursor to the ending position of the content and press the <Esc+Shift+.> combination (“.” is an English dot) to copy the specified content to the clipboard.

Examples

# View the content of the clipboard.

<Sysname> display clipboard

---------------- CLIPBOARD-----------------

        ip route 10.1.0.0 255.0.0.0 eth 0

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 the display clock command 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. 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/2007

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 usage statistics record to be displayed and that of the last CPU usage 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 displays the statistics records from the one with the idx of 9. idx represents the serial number of the period for the statistics, and its value ranges from 0 to 60 cyclically. The system makes CPU usage statistics periodically; after each period, the system records the average CPU usage 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, this command displays the brief information of the CPU usage statistics.

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

slot slot-number: Displays the CPU usage statistics for a card. The slot-number argument specifies the slot number of a card. If no card is specified, this command displays the CPU usage statistics for all cards.

cpu cpu-number: Displays the CPU usage statistics of the specified CPU. If the cpu-number argument is not provided, the system displays the CPU usage statistics for all CPUs of the specified card.

Description

Use the display cpu-usage command 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 the 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 number latest records, starting from the last (offset+1)th record.

Examples

# Display the current CPU usage statistics.

<Sysname> display cpu-usage

Slot 3 CPU usage:

       4% in last 5 seconds

       0% in last 1 minute

       0% in last 5 minutes

Slot 3 CPU 1 CPU usage:

       1% in last 5 seconds

       1% in last 1 minute

       0% in last 5 minutes

Slot 6 CPU usage:

       2% in last 5 seconds

       3% in last 1 minute

       0% in last 5 minutes

# Display the last fifth and sixth record entries in CPU usage statistics.

<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 : 2007-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 : 2007-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 2 Output description

Field

Description

Slot 3 CPU usage

CPU usage of the card in slot 3.

If multiple CPUs are on this card, Slot 3 CPU usage indicates the usage of the primary CPU of the card in slot 3; Slot 3 CPU 1 CPU usage indicates the usage of the secondary CPU of the card in slot 3.

4% in last 5 seconds

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

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

0% in last 1 minute

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

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

0% in last 5 minutes

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

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

CPU usage info (no:  idx:)

Information of CPU usage records (no: The (no+1)th record is 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 measurement interval, in seconds. For example, if the value is 41, it indicates that the average CPU usage during the last 41 seconds is calculated. The value range of this field is 1 to 60.

CPU Usage

Average CPU usage in a measurement interval, in percentage

CPU Usage Stat. Time

CPU usage 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 records may 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 historical CPU usage statistics for the specified task, where task-id represents the task number. If the task-id argument is not provided, this command displays the historical CPU usage statistics for the entire system (the CPU usage rates of the entire system is the sum of CPU usage rates of all tasks).

slot slot-number: Displays the historical CPU usage statistics for the specified card. The slot-number argument specifies the slot number of a card. If no card is specified, this command displays the historical CPU usage statistics for the active main processing unit (MPU).

cpu cpu-number: Displays the historical CPU usage statistics for the specified CPU.

|: 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 the display cpu-usage history command to display historical CPU usage statistics in charts. If no argument is specified, the CPU usage of the active MPU is displayed.

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 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 usage 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 usage statistics 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 usage 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 ] [ [ slot slot-number [ subslot subslot-number ] ] | verbose ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

2: System level

Parameters

cf-card: Displays CF card information.

slot slot-number: Displays information about the specified card. The slot-number argument represents the slot number of a card.

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 the display device command to display device information.

If the cf-card keyword is not provided, the system displays information about all cards.

Examples

# Display device information.

<Sysname> display device

Slot No.   Brd Type        Brd Status   Software Version

 0         SR02SRP2E3      Master       SR8800-CMW520-A3324

 1         SR02SRP1E3      Slave        SR8800-CMW520-A3324

 2         SPC-GP24L       Normal       SR8800-CMW520-A3324

 3         SPE-1010-II     Normal       SR8800-CMW520-A3324

   Sub1    PIC-AHP1L       Normal

 4         NONE            Absent       NONE

 5         NONE            Absent       NONE

 6         NONE            Absent       NONE      

Table 3 Output description

Field

Description

Slot No.

Slot number of a card

Brd Type

Hardware type of a card

Brd Status

Card status, which can be the following values:

·       Slave: The card is a standby MPU.

·       Master: The card is an active MPU.

·       Absent: No card is in the slot.

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

·       Normal: The card is a card and functions normally.

Software Version

Version of the running software on the card

 

display device manuinfo

Syntax

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

View

Any view

Default level

3: Manage level

Parameters

slot slot-number: Displays the electronic label data for the specified card. The slot-number argument represents the slot number of a card. If no card is specified, this command displays the electronic label data for all cards.

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 the display device manuinfo command to display the electronic label data for the device.

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.

This command displays part of the electronic label data.

Examples

# Display the electronic label data for the device.

<Sysname> display device manuinfo

Slot 0:

DEVICE_NAME          : SR02SRP2E3

DEVICE_SERIAL_NUMBER : 210231A80EH098000012

MAC_ADDRESS          : 0023-8940-8E00

MANUFACTURING_DATE   : 2009-08-20

VENDOR_NAME          : H3C

 Slot 1:

DEVICE_NAME          : SR02SRP1E3

DEVICE_SERIAL_NUMBER : 210231A82EH09A000008

MAC_ADDRESS          : 0023-897C-D400

MANUFACTURING_DATE   : 2009-10-17

VENDOR_NAME          : H3C

 Slot 2:

DEVICE_NAME          :

DEVICE_SERIAL_NUMBER :

MAC_ADDRESS          :

MANUFACTURING_DATE   :

VENDOR_NAME          :

 Slot 3:

DEVICE_NAME          :

DEVICE_SERIAL_NUMBER :

MAC_ADDRESS          :

MANUFACTURING_DATE   :

VENDOR_NAME          :

Table 4  Output description

Field

Description

DEVICE_NAME

Device name

DEVICE_SERIAL_NUMBER

Device serial number

MAC_ADDRESS

Factory default MAC address of the device

MANUFACTURING_DATE

Manufacturing date of the device

VENDOR_NAME

Vendor name

 

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 the display diagnostic-information command 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.

The output of this command can be saved on the active MPU instead of the standby MPU.

Examples

# Save running status data for multiple feature modules.

<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, and use the Page Up and Page Down keys to browse pages.

# Display running status data for multiple feature modules.

<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 the temperature information of the sensors on a card. The slot-number argument is the slot number of the card.

|: 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 the display environment command to display the temperature information of the device, including the current temperature and temperature thresholds.

If the slot keyword is not provided, the command displays the temperature information of all sensors.

Examples

# Display the temperature information of cards.

<Sysname> display environment

System temperature information (degree centigrade):

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

Slot  Sensor    Temperature  LowerLimit  WarningLimit  AlarmLimit ShutdownLimit

   0  hotspot 1       40           0           70           85          N/A

   0  hotspot 2       44          20           80           95          N/A

   1  hotspot 1       40           0           70           85          N/A

   1  hotspot 2       39          20           80           95          N/A

   2  inflow  1       34         -10           55           75          N/A

   2  outflow 1       36          -5           65           85          N/A

   2  hotspot 1       37          -5           65           85          N/A

   3  hotspot 1       45          -5           65           85          N/A

   3  hotspot 2       37          -5           65           85          N/A

Table 5 Output description

Field

Description

System Temperature information (degree centigrade)

Temperature information of system cards (degree centigrade)

Slot

A number in this field indicates a card.

Sensor

Temperature sensor

·       hotspot: A hotspot sensor.

·       inflow: An air intake sensor.

·       outflow: An air exhaust sensor.

Temperature

Current temperature

Lower limit

Lower limit of temperature

WarningLimit

Warning temperature threshold

AlarmLimit

Alarming temperature threshold

ShutdownLimit

Shut-down temperature threshold. When the sensor temperature reaches this limit, the device 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 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 the display fan command to display the operating states of built-in fans.

Examples

# Display the operating states of all fans.

<Sysname> display fan

 Fan  1 State: Normal

 Fan  2 State: Normal

The above information shows that all fans work normally.

display hardware-failure-detection

Syntax

display hardware-failure-detection [ | { 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 the display hardware-failure-detection command to display hardware failure detection information and fix operation records, including the fix actions configured to be taken for different failures, and the latest 10 fix operation records for each card. If the same operation is executed repeatedly, only the last one is recorded.

 

 

NOTE:

The fix operation records for each card are stored in the MPU. You can use the display hardware-failure-detection command to display stored information even after a card is plugged out or has been replaced.

 

Examples

# Display hardware failure detection information and fix operation records on the router.

<Sysname> display hardware-failure-detection

Current level:

    chip       : warning

    board      : off

    forwarding : warning

--------------------------Slot  1 executed records:-----------------------------

There is no record.

 

--------------------------Slot  1 trapped records:-----------------------------

Slot  1:

   1. 2010-10-29, 10:01:28 warned by board detection.

Figure 1 Output description

Field

Description

Current level

Fix actions corresponding to different failures

Slot slotid records

Fix operation records stored on the MPU

Slot slotid:

Fix operation records for the card

 

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 job 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 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 the display job command to display information about scheduled jobs configured by using the job command.

If no job is specified, this 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

  Time 2: Execute command save 2.cfg every 600 minutes

  Time 3: Execute command save 3.cfg after 1 minutes has been executed

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

Table 6 Output description

Field

Description

Job name

Name of the scheduled job

Specified view

View containing the commands in the job

Time timeID

Execution time of each command in the job

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 the memory usage statistics for a card. The slot-number argument represents the number of the slot where the card resides.

cpu cpu-number: Displays the memory usage statistics for a CPU. The cpu-number represents the ID of the CPU.

|: 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 the display memory command to display memory usage statistics. If no card is specified, this command displays the memory usage statistics for the active MPU. If no CPU is specified, this command displays the memory usage statistics for the main CPU.

Examples

# Display memory usage statistics.

<Sysname> display memory

System Total Memory(bytes): 431869088

Total Used Memory(bytes): 71963156

Used Rate: 16%

Table 7 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-supply

Syntax

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

View

Any view

Default level

1: Monitor level

Parameters

verbose: Displays detailed power supply 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 the display power-supply command to display power supply information.

The power supply information includes the following:

·           States of the present power modules

·           Power supply states of the cards

Examples

# Display detailed power supply information.

[Sysname] display power-supply verbose

Power  1    state: Normal

Power  2    state: Absent

 

Slot No.         Board Power Status

 0               POWER ON

 2               POWER ON

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 the display schedule job command to display the job configured by using the schedule job command.

Related commands: schedule job.

Examples

# Display the configuration of 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/2008 (in 0 hours and 16 minutes)

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

Table 8 Output description

Field

Description

Specified command

Command to be executed as scheduled

Specified view

View for the command to be executed

Executed time

Execution time of the command and the difference between the current system 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 the display schedule reboot command 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 12:00 2007/07/01 (in 14 hours and 13 minutes).

display system working mode

Syntax

display system working mode [ | { 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 the display system working mode command to display the working mode of the system.

Examples

# Display the system working mode.

<Sysname> display system working mode

Current system working mode      : Hybrid

Working mode after system restart: Hybrid

Notice: Changing working mode will take effect only after system restart. 

The output shows that the system operates in hybrid mode, and the system will operate in hybrid mode after the system reboots.

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 the display system-failure command to display the exception handling method for the active MPU and standby MPU.

Related commands: system-failure.

Examples

# Display the exception handling method.

<Sysname> display system-failure

 System failure handling method: reboot

display transceiver

Syntax

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

View

Any view

Default level

2: System level

Parameters

controller [ controller-type controller-number ]: Displays the key parameters of the transceiver module in a controller interface. The controller-type controller-number argument specifies a controller interface by its type and number. If no controller interface is specified, this command displays the key parameters for the transceiver modules in all controller interfaces.

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

|: 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 the display transceiver command to display the key parameters of transceiver modules.

Examples

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

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

GigabitEthernet3/1/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 9 Output description

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

Ordering Name

Product code

 

display transceiver alarm

Syntax

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

View

Any view

Default level

2: System level

Parameters

controller [ controller-type controller-number ]: Displays alarms that are present on the transceiver module in a controller interface. The controller-type controller-number argument specifies a controller interface by its type and number. If no controller interface is specified, this command displays present alarm information for the transceiver modules in all controller interfaces.

interface [ interface-type interface-number ]: Displays the alarms that are present on the transceiver module in an interface. The interface-type interface-number argument specifies an interface by its type and number. If no interface is specified, this command displays present alarm information for the transceiver modules in all interfaces.

|: 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 the display transceiver alarm command to display alarms present on transceiver modules.

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

Table 10 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.

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 alarm information for the transceiver module in interface GigabitEthernet 3/1/1.

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

GigabitEthernet3/1/1 transceiver current alarm information:

  RX loss of signal

  RX power low

Table 11 Output description

Field

Description

transceiver current alarm information

Alarms present on 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 { controller [ controller-type controller-number ] | interface [ interface-type interface-number ] } [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

2: System level

Parameters

controller [ controller-type controller-number ]: Displays the present measured values of the digital diagnosis parameters for the transceiver module in a controller interface. The controller-type controller-number argument specifies a controller interface by its type and number. If no controller interface is specified, this command displays the present measured values of the digital diagnosis parameters for transceiver modules in all controller interfaces.

interface [ interface-type interface-number ]: Displays the present measured values of the digital diagnosis parameters for the transceiver module in an interface. The interface-type interface-number argument specifies an interface by its type and number. If no interface is specified, this command displays the present measured values of the digital diagnosis parameters for the transceiver modules in all interfaces.

|: 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 the display transceiver diagnosis command to display the present measured values of the digital diagnosis parameters for transceiver modules.

Examples

# Display the present measured values of the digital diagnosis parameters for the transceiver module in interface GigabitEthernet 3/1/1.

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

GigabitEthernet3/1/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 12 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 { controller [ controller-type controller-number ] | interface [ interface-type interface-number ] } [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

2: System level

Parameters

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

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

|: 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 the display transceiver manuinfo command to display the electronic label data for transceiver modules.

Examples

# Display the electronic label data for the transceiver module in interface GigabitEthernet 3/1/1.

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

GigabitEthernet3/1/1 transceiver manufacture information:

  Manu. Serial Number  : 213410A0000054000251

  Manufacturing Date   : 2007-09-01

  Vendor Name          : H3C

Table 13 Output description

Field

Description

Manu. Serial Number

Serial number generated during debugging and testing of the transceiver module.

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

Vendor name of the transceiver module.

 

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 the display version command to display system version information, including the system software version, chassis model, and card data.

Examples

# Display system version information.

<Sysname> display version

H3C Comware Platform Software

Comware Software, Version 5.20, Beta 3341

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

H3C SR8800 uptime is 0 week, 0 day, 2 hours, 5 minutes

 

 

SR02SRP1E3 0:  uptime is 0 week, 0 day, 2 hours, 5 minutes

1024    Mbytes SDRAM

512     Kbytes NVRAM Memory

Type     : SR02SRP1E3

BootRom  : 202

Software : SR8800-CMW520-B3341

PCB      : Ver.B

Board Cpu:

  Number of Cpld: 2

  Cpld 0:

    SoftWare  : 003

  Cpld 1:

    SoftWare  : 004

Clock card

  Type      : LSR1CLKA

  Software  : 103

  PCB       : A

  Number of Cpld: 1

  Cpld 0:

    SoftWare  : 001

 

 

NOTE:

The output is for reference only.

 

display xbar

Syntax

display xbar [ | { 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 the display xbar command to display the load mode of the active MPU and standby MPU of the device, including configured load mode and current load mode.

Related commands: xbar.

 

 

NOTE:

The configured load mode may be different from the running load mode. The load sharing mode becomes valid only when both the active MPU and the standby MPU are in the slot ; otherwise, even if the load sharing mode is configured the active MPU automatically switches to the active-standby mode.

 

Examples

# Display the load mode of the active MPU and standby MPU of the device.

[Sysname] display xbar

The configured system HA xbar load mode is BALANCE

The activated system HA xbar load mode is SINGLE

The above information shows that the configured load mode is load balancing and the running load mode is active/standby.

forward-path check

Syntax

forward-path check { enable | disable }

View

System view

Default level

3: Manage level

Parameters

enable: Enables automatic forwarding path check.

disable: Disables automatic forwarding path check.

Description

Use the forward-path check command to configured automatic forwarding path check. The automatic forwarding path check function can check whether traffic forwarding in the router works properly.

By default, the automatic forwarding path check function is enabled.

Examples

# Disable automatic forwarding path check.

<Sysname> system-view

[Sysname] forward-path check disable

hardware-failure-detection

Syntax

hardware-failure-detection { chip | board | forwarding } { off | warning | reset | isolate }

View

System view

Default level

3: Manage level

Parameters

chip: Enables in-service hardware failure detection for chips (including chips, capacitors, and resistors)

board: Enables in-service hardware failure detection for cards, including control channel detection and card status fast detection.

forwarding: Enables in-service hardware failure detection for the forwarding service.

off: Takes no action.

warning: Sends warning messages.

reset: Reset the failed card.

isolate: Shuts down the failed port, isolates the failed card, prohibits the failed card from loading software, or powers off the failed card to reduce the impact of the failure to the system.

 

 

NOTE:

·       The router does not support the keywords reset and isolate.

·       After configuring in-service diagnosis and failure protection, you can use the display hardware-failure-detection command to check the running information of the feature.

 

Description

Use the hardware-failure-detection command to enable in-service hardware failure detection and configure fix actions taken in case of hardware failures.

You can enable this feature for chips, cards, and the forwarding service respectively. The fix actions include off, warning, reset, and isolate.

By default, the fix action taken for all hardware failures is warning.

Examples

# Enable in-service hardware failure detection for chips and configure no action in case of failures.

<Sysname> system-view

[Sysname]hardware-failure-detection chip off

Config successfully

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-in user accesses user view.

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

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.

 

 

NOTE:

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

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

 

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

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

* Copyright (c) 2004-2012 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 the name for a job, a string of 1 to 32 characters.

Description

Use the job command to create a job or enter job view.

Use the undo job command to delete a scheduled job.

By default, no job is created.

You can add commands in job view to execute at certain times.

You can use the job command to create 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]

power alarm enable

Syntax

power alarm enable

undo power alarm

View

System view

Default level

3: Manage level

Parameters

None

Description

Use the power alarm enable command to enable the power alarm monitoring function.

Use the undo power alarm command to restore the default.

By default, the power alarm monitoring function is disabled.

After the power alarm monitoring function is enabled, the device displays the power status through the ALARM LED on the MPU:

·           If the ALARM LED is steady on, exceptions migh have occurred to a power module or a card. You can use the display alarm command to check the exceptions.

·           If the ALARM LED blinks, one or multiple power modules are not present.

·           If the ALARM LED is off, all power modules operate normally.

Related commands: display alarm.

 

 

NOTE:

If you enable this function and save the configuration, the ALARM LED on the MPU can display the power status even after the MPU reboots.

 

Examples

# Enable the power alarm monitoring function.

<Sysname> system-view

[Sysname] power alarm enable

power-supply off

Syntax

power-supply off slot slot-number

View

User view

Default level

3: Manage level

Parameters

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

Description

Use the power-supply off command to stop power supply to the specified card.

 

 

NOTE:

The specified card cannot be an MPU.

 

Examples

# Stop the power supply to the card in slot 9.

<Sysname> power-supply off slot 9

power-supply on

Syntax

power-supply on slot slot-number

View

User view

Default level

3: Manage level

Parameters

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

Description

Use the power-supply on command to start power supply to the specified card.

 

 

NOTE:

The specified card cannot be an MPU.

 

Examples

# Start power supply to the card in slot 9.

<Sysname> power-supply on slot 9

reboot

Syntax

reboot [ slot slot-number ]

View

User view

Default level

3: Manage level

Parameters

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

Description

Use the reboot command to reboot a card, a subcard, or the whole system.

If the slot keyword is not provided, this command reboots the whole system.

You cannot use the reboot command to reboot the standby MPUs. Instead, use the slave restart command (see High Availability Command Reference).

 

CAUTION

CAUTION:

·       Device reboot can interrupt network services.

·       If the main system software image file has been corrupted or does not exist, the device cannot reboot. 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 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 interface indexes of the active MPU and the standby MPUs.

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 interface 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 command

undo schedule job

View

User view

Default level

3: Manage level

Parameters

delay time2: Runs the job after a delay. The time2 argument specifies the delay in one of the following formats:

·           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 the schedule job command to schedule a job in the non-modular approach.

Use the undo schedule job command 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).

·           The job scheduled by using the schedule job command cannot be saved. When an active/standby MPU switchover or master/slave switchover occurs, the job is lost.

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 10/31/2007 (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 10/31/2008 (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 for the device, 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 schedule a device reboot to occur at a specific time and date for the whole system (including all cards).

Use the undo schedule reboot command 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:

·       Device reboot can interrupt network services.

·       Changing any clock setting can cancel the reboot schedule.

 

Examples

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

<Sysname> schedule reboot at 12:00

Reboot system at 12:00 06/06/2007(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 2007 Sysname CMD/4/REBOOT:

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

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 43200.

Description

Use the schedule reboot delay command to schedule a device reboot to occur after a delay for the whole system (including all cards).

Use the undo schedule reboot command 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:

·       Device reboot can interrupt network services.

·       Changing any clock setting can cancel the reboot schedule.

 

Examples

# Schedule a device reboot in 88 minutes. This example assumes that the current time is 11:48 on June 6, 2007.

<Sysname> schedule reboot delay 88

Reboot system at 13:16 06/06/2007(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 2007 Sysname CMD/5/REBOOT:

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

shutdown-interval

Syntax

shutdown-interval time

undo shutdown-interval

View

System view

Default level

2: System level

Parameters

time: Specifies the port status detection timer in seconds, which ranges from 0 to 300.

Description

Use the shutdown-interval command to set the port status detection timer.

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

By default, the port status detection timer 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 timer to T1 during port detection, the interval from when you change the timer to the time when the protocol module shuts down the port is T. If T<T1, the down port will be recovered after T1-T time. If T>=T1, the down port is recovered immediately. For example, if the detection timer 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 recovered 8 seconds later. If the detection timer is set to 30 seconds and you change it to 2 seconds ten seconds after the port is shut down, this port is recovered immediately.

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

Examples

# Set the port status detection timer 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 router, which is a string of 1 to 30 characters.

Description

Use the sysname command to set the device name.

Use the undo sysname command to restore the default.

A device name identifies a device in a network and works as the user view prompt at the CLI. For example, if the device name is Sysname, the user view prompt is <Sysname>.

Examples

# Set the name of the router to R2000.

<Sysname>system-view

System View: return to User View with Ctrl+Z.

[Sysname]sysname R2000

[R2000]

system working mode

Syntax

system working mode { hybrid | spc | spe }

undo system working mode

View

System view

Default level

3: Manage level

Parameters

hybrid: Specifies the system to work in hybrid mode. In this mode, both the SPC and SPE cards can work normally.

spc: Specifies the system to work in SPC mode. In this mode, only the SPC cards (for example, SPC-GT48L) can work normally.

spe: Specifies the system to work in SPE mode. In this mode, only the SPE cards (for example, SPE-1020-E-II) can work normally.

Description

Use the system working mode command to configure the working mode of the system, thus changing assignment of hardware resources.

Use the undo system working mode command to restore the default.

By default, the system works in hybrid mode.

 

 

NOTE:

A reboot is required after you change the working mode of the system to make your changes take effect.

 

Examples

# Configure the working mode of the system as SPC.

<Sysname> system-view

[Sysname] system working mode spc

Spc mode has been set. It will take effect after system restart.

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 on the active MPU and the standby MPU.

By default, the active MPU and the standby MPU adopt the reboot method to handle exceptions.

When this command is configured, both the active MPU and the standby MPU adopt the same method to handle exceptions. The system adopts the reboot method to handle exceptions happened on a card or the auxiliary CPU system, or, in other words, the system reboots the failed card.

The exception handling method is effective to the failed card only, and does not influence the functions of other cards.

Examples

# Set the exception handling method to reboot.

<Sysname> system-view

[Sysname] system-failure reboot

temperature-limit

Syntax

temperature-limit slot slot-number hotspot sensor-number lowerlimit warninglimit [ alarmlimit ]

undo temperature-limit slot slot-number hotspot sensor-number

View

System view

Default level

2: System level

Parameters

slot slot-number: Specifies a temperature limit for a card.

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

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

outflow: Specifies an exhaust sensor, which is placed near the air exhaust 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 threshold in Celsius degrees.

warninglimit: Warning temperature threshold in Celsius degrees.

alarmlimit: Alarming temperature threshold in Celsius degrees.

Description

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

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

When the device temperature drops below the lower temperature threshold or reaches the warning threshold, the device logs the event and outputs a log message and a trap.

When the device temperature reaches the alarming threshold, the device logs the event and outputs a log message and a trap repeatedly, and alerts users through the LED on the device panel.

 

 

NOTE:

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

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

 

Examples

# Set the lower temperature threshold for the intake sensor 1 on the card in slot 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

update clockmcu

Syntax

update clockmcu slot slotnumber file filename

View

User view

Default level

2: System level

Parameters

slotnumber: Slot number of the specified main control board.

filename: File specified for upgrade. You need to specify the absolute path of the file, and the file must exist on the MPU where the clock card to be upgraded resides.

Description

Use the update clockmcu command to upgrade the clock card on the specified MPU.

Examples

# Upgrade the clock card on the MPU in slot 0.

<Sysname> update clockmcu slot 0 file flash:/ SR01CK3A.APP

time

Syntax

time timeid at time1 date command command

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

time timeid { one-off | repeating } delay time2 command command

undo time timeID

View

Job view

Default level

3: Manage level

Parameters

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

at time1: Specifies an 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.

date: Specifies an 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.

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, make sure of the correctness of the configuration.

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

repeating: Specifies a recurring time schedule.

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

week-day week-daylist: Specifies the day(s) in a week for executing the command. week-daylist specifies one day or up to seven days, which can be a 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.

delay time2: 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.

The delay keyword is not related to the system time, which means that the command is executed after the delay time, if specified, even if the system time changes.

Description

Use the time command to add a command to run in the job schedule.

Use the undo time command to remove a command from the job schedule.

Use Table 14 when you add commands in a job.

Table 14 Command schedule options

Command

Description

time timeid at time1 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 time1 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 time1 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 time1 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 time1 command command

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

time timeID repeating at time1 month-date month-day command command

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

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

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

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.

undo time timeid

 

 

 

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, 2009.

<Sysname> system-view

[Sysname] job saveconfig

[Sysname-job-saveconfig] view monitor

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

# Schedule a job 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 job 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 job 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 job 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 job 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

# Schedule a job to 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

# Schedule a job to 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 a view in which commands in the job run. A view name is a string of 1 to 90 characters.  

Description

Use the view command to specify a view for a job.

Use the undo view command 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.

Enter 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, GigabitEthernetx/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

xbar

Syntax

xbar { load-balance | load-single }

View

System view

Default level

2: System level

Parameters

load-balance: Specifies the active MPU and the standby MPU to work in load sharing mode.

load-single: Specifies the active MPU and the standby MPU to work in active-standby mode, whereas the standby MPU only backs up data and monitors the state of the active MPU

Description

Use the xbar command to set the load mode for the active MPU and the standby MPU of the device.

By default, the active MPU and the standby MPU work in load-single mode.

Related commands: display xbar.

 

 

NOTE:

The load-balance mode is valid only when both the active MPU and the standby MPU are in their slots. Otherwise, even if the load-balance mode is configured, the active MPU automatically switches to the load-single mode.

 

Examples

# Set the load mode for the active MPU and the standby MPU to load-balance.

<Sysname> system-view

[Sysname] xbar load-balance

 

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