- Table of Contents
-
- 01-Fundamentals Command Reference
- 00-Preface
- 01-CLI commands
- 02-RBAC commands
- 03-Login management commands
- 04-FTP and TFTP commands
- 05-File system management commands
- 06-Configuration file management commands
- 07-Software upgrade commands
- 08-ISSU commands
- 09-Emergency shell commands
- 10-Device management commands
- 11-MDC commands
- 12-TCL commands
- 13-License management commands
- Related Documents
-
Title | Size | Download |
---|---|---|
10-Device management commands | 336.59 KB |
display device manuinfo chassis-only
display device manuinfo power-monitor
display diagnostic-information
display hardware-failure-detection
display hardware-failure-protection
hardware-failure-protection aggregation
hardware-failure-protection auto-down
board-offline
Use board-offline to isolate a card from the system.
Use undo board-offline to restore the default.
Syntax
In standalone mode:
board-offline slot slot-number
undo board-offline slot slot-number
In IRF mode:
board-offline chassis chassis-number slot slot-number
undo board-offline chassis chassis-number slot slot-number
Default
A card is not isolated from the system.
Views
System view
Predefined user roles
network-admin
Parameters
slot slot-number: Specifies a card by the number of the slot where the card resides.
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument refers to the ID of the IRF member device, and the slot-number argument refers to the number of the slot where the card resides.
Usage guidelines
When a card fails or an interface card's CPU daughter card logic needs to be upgraded, you can isolate the card from the system, so the card stops providing services without affecting the system operation and the services on other cards.
An isolated card is in offline state. You can use the display device command to verify the status.
The active MPU cannot be isolated.
The last switching fabric card in a device cannot be isolated.
To eliminate possible impact on the system, H3C recommends you isolate a switching fabric card before unplugging it.
You cannot perform an ISSU when one or more cards are isolated.
Do not perform configurations for an isolated card. The configurations might not be able to take effect.
Examples
# Isolate the card in slot 3.
<Sysname> system-view
[Sysname] board-offline slot 3
Caution: This command is only for diagnostic purpose which will cause board normal service unusable. Continue? [Y/N]:y
Config successfully
brand
Use brand to change the brand name of an MPU.
Syntax
In standalone mode:
brand { hp | h3c } [ slot slot-number ]
In IRF mode:
brand { hp | h3c } [ chassis chassis-number slot slot-number ]
Default
The default brand name is H3C.
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
hp: Sets the brand name to HP.
h3c: Sets the brand name to H3C.
slot slot-number: Specifies an MPU by the number of the slot where the MPU resides. If no MPU is specified, the command configures a brand name for both MPUs. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies an MPU on an IRF member device. The chassis-number argument refers to the ID of the IRF member device, and the slot-number argument refers to the number of the slot where the MPU resides. If no MPU is specified, the command configures a brand name for all MPUs in the IRF fabric. (In IRF mode.)
Usage guidelines
Change to the brand name of an MPU takes effect after the MPU reboots.
Examples
# Set the brand names of the MPUs to HP.
<Sysname> brand hp
Configuration will take effect after next reboot, do you want to continue? [Y/N]:y
Configuration is successful.
Related commands
display brand
clock datetime
Use clock datetime to set the UTC time.
Syntax
clock datetime time date
Views
User view
Predefined user roles
network-admin
Parameters
time: Specifies a time in the format hh:mm:ss. The hh value is in the range of 0 to 23, the mm value is in the range of 0 to 59, and the ss value is in the range of 0 to 59. The leading zero in a segment can be omitted. If the seconds segment is 0 (hh:mm:00), you can omit it. If both the minutes and seconds segments are 0 (hh:00:00), you can omit both of the segments. For example, to specify 08:00:00, you can enter 8.
date: Specifies a date in the format MM/DD/YYYY or YYYY/MM/DD. The YYYY value is in the range of 2000 to 2035, the MM value is in the range of 1 to 12, and the value range of DD depends on the month value.
Usage guidelines
The UTC time, together with the local time zone and daylight saving time, determines the system time. You can use the display clock command to view the system time.
A correct system time setting is essential to network management and communication. Set the system time correctly or use NTP to synchronize your device with a trusted time source before you run it on the network.
Examples
# Set the UTC time to 08:08:08 01/01/2012.
<Sysname> clock datetime 8:8:8 1/1/2012
# Set the UTC time to 08:10:00 01/01/2012.
<Sysname> clock datetime 8:10 2012/1/1
Related commands
· clock summer-time
· clock timezone
· display clock
clock timezone
Use clock timezone to set the local time zone.
Use undo clock timezone to restore the default.
Syntax
clock timezone zone-name { add | minus } zone-offset
undo clock timezone
Default
The local time zone is the UTC time zone.
Views
System view
Predefined user roles
network-admin
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 the UTC time.
minus: Decreases the UTC time by a specified offset.
zone-offset: Specifies an offset to the UTC time, in the format hh:mm:ss. The hh value is in the range of 0 to 23, the mm value is in the range of 0 to 59, and the ss value is in the range of 0 to 59. The leading zero in a segment can be omitted. If the seconds segment is 0 (hh:mm:00), you can omit it. If both the minutes and seconds segments are 0 (hh:00:00), you can omit both of the segments. For example, to specify 08:00:00, you can enter 8.
Usage guidelines
The local time zone, together with the UTC time and daylight saving time, determines the system time. You can use the display clock command to view the system time.
A correct system time setting is essential to network management and communication. Set the system time correctly or use NTP to synchronize your device with a trusted time source before you run it on the network.
Examples
# Set the name of the local time zone to Z5, and add 5 hours to the UTC time.
<Sysname> system-view
[Sysname] clock timezone Z5 add 5
Related commands
· clock datetime
· clock summer-time
· display clock
clock summer-time
Use clock summer-time to configure the device to use daylight saving time during a specific period of time.
Use undo clock summer-time to cancel the configuration.
Syntax
clock summer-time name start-time start-date end-time end-date add-time
undo clock summer-time
Default
Daylight saving time is disabled.
Views
System view
Pre-defined user roles
network-admin
mdc-admin
Parameters
name: Specifies a name for the daylight saving time schedule, a case-sensitive string of 1 to 32 characters.
start-time: Specifies the start time in the format hh:mm:ss. The hh value is in the range of 0 to 23, the mm value is in the range of 0 to 59, and the ss value is in the range of 0 to 59. The leading zero in a segment can be omitted. If the seconds segment is 0 (hh:mm:00), you can omit it. If both the minutes and seconds segments are 0 (hh:00:00), you can omit both of the segments. For example, to specify 08:00:00, you can enter 8.
start-date: Specifies the start date in one of the following formats:
· MM/DD. The MM value is in the range of 1 to 12, and the value range of DD depends on the month value.
· month week date, where:
¡ month—Takes January, February, March, April, May, June, July, August, September, October, November or December.
¡ week—Represents week of the month. It takes first, second, third, fourth, fifth, or last.
¡ day—Takes Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, or Saturday.
end-time: Specifies the end time in the format hh:mm:ss. The hh value is in the range of 0 to 23, the mm value is in the range of 0 to 59, and the ss value is in the range of 0 to 59. The leading zero in a segment can be omitted. If the seconds segment is 0 (hh:mm:00), you can omit it. If both the minutes and seconds segments are 0 (hh:00:00), you can omit both of the segments. For example, to specify 08:00:00, you can enter 8.
end-date: Specifies the end date in one of the following formats:
· MM/DD. The MM value is in the range of 1 to 12, and the value range of DD depends on the month value.
· month week date, where:
¡ month—Takes January, February, March, April, May, June, July, August, September, October, November or December.
¡ week—Represents week of the month. It takes first, second, third, fourth, fifth, or last.
¡ day—Takes Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, or Saturday.
add-time: Specifies the time to be added to the standard time, in the format hh:mm:ss. The hh value is in the range of 0 to 23, the mm value is in the range of 0 to 59, and the ss value is in the range of 0 to 59. The leading zero in a segment can be omitted. If the seconds segment is 0 (hh:mm:00), you can omit it. If both the minutes and seconds segments are 0 (hh:00:00), you can omit both of the segments. For example, to specify 08:00:00, you can enter 8.
Usage guidelines
The daylight saving time, together with the UTC time and local time zone, determines the system time. You can use the display clock command to view the system time.
A correct system time setting is essential to network management and communication. Set the system time correctly or use NTP to synchronize your device with a trusted time source before you run it on the network.
Examples
# Set the system time ahead one hour for the period between 06:00:00 on 08/01 and 06:00:00 on 09/01.
<Sysname> system-view
[Sysname] clock summer-time PDT 6 08/01 6 09/01 1
Related commands
display clock
command
Use command to assign a command to a job.
Use undo command to revoke a command.
Syntax
command id command
undo command id
Default
No command is assigned to a job.
Views
Job view
Predefined user roles
network-admin
mdc-admin
Parameters
id: Specifies a command ID in the range of 0 to 4294967295.
command: Specifies the command to be assigned to the job.
Usage guidelines
A job can have multiple commands. Commands in a job are uniquely identified by their IDs. A command with a smaller ID is executed earlier.
If a command uses the ID of an existing command, the existing command is replaced.
A job cannot contain any of these commands: telnet, ftp, ssh2, and monitor process.
The system does not check the validity of the command argument. You must make sure the command is supported by the device, is input in the correct format, and uses valid values. Otherwise, the command cannot be executed automatically.
Examples
# Assign commands to job backupconfig to back up configuration file startup.cfg to the TFTP server at 192.168.100.11.
<Sysname> system-view
[Sysname] scheduler job backupconfig
[Sysname-job-backupconfig] command 2 tftp 192.168.100.11 put flash:/startup.cfg backup.cfg
Related commands
scheduler job
copyright-info enable
Use copyright-info enable to enable displaying the copyright statement.
Use undo copyright-info enable to disable displaying the copyright statement.
Syntax
copyright-info enable
undo copyright-info enable
Default
The copyright statement is displayed.
Views
System view
Predefined user roles
network-admin
mdc-admin
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-2012 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-2012 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.
Press ENTER to get started.
# 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.
Press ENTER to get started.
display alarm
Use display alarm to display alarm information.
Syntax
In standalone mode:
display alarm [ slot slot-number ]
In IRF mode:
display alarm [ chassis chassis-number slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
slot slot-number: Specifies a card by the number of the slot where the card resides. If no card is specified, the command displays the alarm information of all cards. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument refers to the ID of the IRF member device, and the slot-number argument refers to the number of the slot where the card resides. If no IRF member device or card is specified, the command displays the alarm information of all cards in the IRF fabric. (In IRF mode.)
Examples
# Display alarm information in standalone mode.
<Sysname> display alarm
Slot Level Info
2 ERROR Fan 2 is absent.
5 ERROR Power 2 is absent.
6 ERROR The board in slot 6 is faulty.
8 WARNING The temperature of sensor 3 exceeds the lower limit.
Table 1 Command output
Field |
Description |
Slot |
Number of the slot where the card with an alarm resides. If the value is a hyphen (-), the alarm was generated by the chassis. |
Level |
Alarm severity. Possible values include ERROR, WARNING, NOTICE, and INFO, in descending order. |
Info |
Detailed alarm information. |
faulty |
The card is starting up or is faulty. |
# Display alarm information in IRF mode.
<Sysname> display alarm
Chassis Slot Level Info
1 6 ERROR Fan 2 is absent.
1 6 ERROR Power 2 is absent.
1 6 ERROR The board in slot 6 is faulty.
2 3 WARNING The temperature of sensor 3 exceeds the lower limit.
Table 2 Command output
Field |
Description |
Chassis |
ID of the IRF member device with an alarm. |
Slot |
Number of the slot where the card resides. |
Level |
Alarm severity. Possible values include ERROR, WARNING, NOTICE, and INFO, in descending order. |
Info |
Detailed alarm information. |
The board in slot n is faulty. |
The card in slot n is starting up or is faulty. |
display brand
Use display brand to display the brand information of MPUs.
Syntax
display brand
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display the brand information of MPUs.
<Sysname> display brand
Current BRANDs:
Slot 0: H3C.
Slot 1: HP.
New BRANDs:
Slot 0: HP.
Slot 1: HP.
Table 3 Command output
Field |
Description |
Current BRANDs |
Current brand names of the MPUs. |
New BRANDs |
Brand names of the MPUs after a reboot. |
Related commands
brand
display clock
Use display clock to display the system time, date, local time zone, and daylight saving time.
Syntax
display clock
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Examples
# Display the system time and date when the local time zone is not specified.
<Sysname> display clock
09:41:23 UTC Fri 03/16/2011
# Display the system time and date when the local time zone Z5 is specified.
<Sysname> display clock
09:42:23 UTC Fri 03/16/2012
Time Zone : Z5 add 00:00:00
# Display the system time and date when the local time zone Z5 and daylight saving time PDT are specified.
<Sysname> display clock
15:11:00 Z5 Fri 03/16/2012
Time Zone : Z5 add 05:00:00
Summer Time : PDT 06:00:00 08/01 06:00:00 09/01 01:00:00
Related commands
· clock datetime
· clock summer-time
· clock timezone
display copyright
Use display copyright to display the copyright statement, including software and hardware copyright statements, and third-party software license agreements.
network-admin
network-operator
mdc-admin
mdc-operator
# Display the copyright statement.
display cpu-usage
Use display cpu-usage to display CPU usage statistics.
Syntax
In standalone mode:
display cpu-usage [ slot slot-number [ cpu cpu-number ] ]
In IRF mode:
display cpu-usage [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
slot slot-number: Specifies a card by the number of the slot where the card resides. If no card is specified, this command displays the CPU usage statistics for all cards. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument refers to the ID of the IRF member device, and the slot-number argument refers to the number of the slot where the card resides. If no IRF member device or card is specified, this command displays the CPU usage statistics for all cards in the IRF fabric. (In IRF mode.)
cpu cpu-number: Displays the CPU usage statistics for the specified CPU. If this option is not provided, the command displays the CPU usage statistics for all CPUs on the card in the specified slot.
Usage guidelines
The system regularly (typically at 60-second intervals) collects CPU usage statistics and saves the statistical results in the history record area.
Examples
# Display the current CPU usage statistics in standalone mode.
<Sysname> display cpu-usage
Slot 0 CPU 0 CPU usage:
1% in last 5 seconds
0% in last 1 minute
0% in last 5 minutes
Slot 1 CPU usage:
1% in last 5 seconds
1% in last 1 minute
1% in last 5 minutes
# Display the current CPU usage statistics for all cards in IRF mode.
<Sysname> display cpu-usage
Chassis 1 Slot 0 CPU 0 CPU usage:
9% in last 5 seconds
8% in last 1 minute
8% in last 5 minutes
Chassis 1 Slot 1 CPU 0 CPU usage:
5% in last 5 seconds
4% in last 1 minute
4% in last 5 minutes
Chassis 2 Slot 0 CPU 0 CPU usage:
6% in last 5 seconds
6% in last 1 minute
6% in last 5 minutes
Chassis 2 Slot 1 CPU 0 CPU usage:
6% in last 5 seconds
6% in last 1 minute
6% in last 5 minutes
Table 4 Command output
Field |
Description |
1% in last 5 seconds |
Average CPU usage during the last 5 seconds. |
1% in last 1 minute |
Average CPU usage during the last minute. |
1% in last 5 minutes |
Average CPU usage during the last 5 minutes. |
Slot x CPU y CPU usage |
Usage statistics for CPU y of the card in slot x. (In standalone mode.) |
Chassis x Slot y CPU z CPU usage |
Usage statistics for CPU z of the card in slot y on member device x. (In IRF mode.) |
display cpu-usage history
Use display cpu-usage history to display the historical CPU usage statistics in charts.
Syntax
In standalone mode:
display cpu-usage history [ job job-id ] [ slot slot-number [ cpu cpu-number ] ]
In IRF mode:
display cpu-usage history [ job job-id ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
job job-id: Specifies a process by its ID. If no process is specified, this command displays the historical CPU usage statistics for the entire system, which is the sum of the historical CPU usage statistics for all processes in the system. To view the IDs and names of the running processes, use the display process command. For more information, see Network Management and Monitoring Command Reference.
slot slot-number: Specifies a card by the number of the slot where the card resides. If no card is specified, this command displays the historical CPU usage statistics for the active MPU's primary CPU. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument refers to the ID of the IRF member device, and the slot-number argument refers to the number of the slot where the card resides. If no IRF member device or card is specified, this command displays the historical CPU usage statistics for the primary CPU of the IRF fabric's active MPU. (In IRF mode.)
cpu cpu-number: Displays the historical CPU usage statistics for the specified CPU. If this option is not provided, the command displays the historical CPU usage statistics for the primary CPU on the specified card.
Usage guidelines
The system regularly collects CPU usage statistics and saves the statistics in the history record area. This command displays the CPU usage statistics for the last 60 minutes in axes as follows:
· 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 pound sign at a specific time represents the CPU usage at that time.
Examples
# Display the historical CPU usage statistics for the system's primary CPU.
<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 (CPU 0) last 60 minutes (SYSTEM)
The output shows the historical CPU usage statistics for the system's primary CPU (with the 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 historical CPU usage statistics for the primary CPU of process 1.
<Sysname> display cpu-usage history job 1
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 (CPU 0) last 60 minutes (scmd)
The output shows the historical CPU usage statistics for the primary CPU of process 1 (with the process name scmd) in the last 60 minutes. A process name with square brackets ([ ]) means that the process is a kernel process.
· 5%: 20 minutes ago
· 2% or lower than 2%: Other time
display device
Use display device to display device information.
Syntax
In standalone mode:
display device [ cf-card ] [ slot slot-number | verbose ]
In IRF mode:
display device [ cf-card ] [ chassis chassis-number [ slot slot-number ] | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
cf-card: Specifies the CF cards.
slot slot-number: Specifies a card by the number of the slot where the card resides. (In standalone mode.)
chassis chassis-number: Specifies an IRF member device by its member ID. If no IRF member device is specified, this command displays hardware information about all IRF member devices in the IRF fabric. (In IRF mode.)
verbose: Displays detailed hardware information.
Usage guidelines
If the cf-card, usb, and harddisk keywords are not provided, this command displays information about all cards on the device.
Examples
# Display device information in standalone mode.
<Sysname> display device
Slot No. Brd Type Brd Status Software Version
0 LST1MRPNC1 Standby S12500-CMW710-A7121
1 LST1MRPNC1 Master S12500-CMW710-A7121
2 NONE Absent NONE
3 NONE Absent NONE
4 NONE Absent NONE
5 LST1GT48LEC1 Normal S12500-CMW710-A7121
6 NONE Absent NONE
7 NONE Absent NONE
8 NONE Absent NONE
9 NONE Absent NONE
10 NONE Absent NONE
11 NONE Absent NONE
12 LST1SF08B1 Normal S12500-CMW710-A7121
13 LST1SF08B1 Normal S12500-CMW710-A7121
14 LST1SF08B1 Normal S12500-CMW710-A7121
15 LST1SF08B1 Normal S12500-CMW710-A7121
16 LST1SF08B1 Normal S12500-CMW710-A7121
17 LST1SF08B1 Normal S12500-CMW710-A7121
18 LST1SF08B1 Normal S12500-CMW710-A7121
The output shows that the device has two MPUs, one interface card, and seven switching fabric cards. The active MPU is in slot 1 and the standby MPU is in slot 0. The interface card is in slot 5, and the switching fabric cards are in slot 12 to slot 18.
Table 5 Command output
Field |
Description |
Slot No. |
Number of the slot where the card resides. |
Brd Type |
Hardware type of the card. |
Brd Status |
Card status: · Standby—The card is the standby MPU. · Master—The card is the active MPU. · Absent—The slot is not installed with a card. · Fault—The card is faulty and cannot start up. · Normal—The card is an interface card and is operating correctly. · Off—The card is powered off. · Illegal—The current software version of the device does not support the card and the card cannot operate properly. · Offline—The card is isolated. |
Software Version |
Software version of the card. |
# Display device information about all IRF member devices in IRF mode.
<Sysname> display device
Slot No. Brd Type Brd Status Software Version
1/0 LST1MRPNC1 Standby S12500-CMW710-A7121
1/1 LST1MRPNC1 Master S12500-CMW710-A7121
1/2 NONE Absent NONE
1/3 NONE Absent NONE
1/4 NONE Absent NONE
1/5 LST1GT48LEC1 Normal S12500-CMW710-A7121
1/6 NONE Absent NONE
1/7 NONE Absent NONE
1/8 NONE Absent NONE
1/9 NONE Absent NONE
1/10 NONE Absent NONE
1/11 NONE Absent NONE
1/12 LST1SF08B1 Normal S12500-CMW710-A7121
1/13 LST1SF08B1 Normal S12500-CMW710-A7121
1/14 LST1SF08B1 Normal S12500-CMW710-A7121
1/15 LST1SF08B1 Normal S12500-CMW710-A7121
1/16 LST1SF08B1 Normal S12500-CMW710-A7121
1/17 LST1SF08B1 Normal S12500-CMW710-A7121
1/18 LST1SF08B1 Normal S12500-CMW710-A7121
The output shows that the IRF fabric has one member device (with the member ID 1). The card in slot 1 on member device 1 is the active MPU of the IRF fabric. The card in slot 0 on member device 1 is a standby MPU of the IRF fabric.
Table 6 Command output
Field |
Description |
Slot No. |
ID of the IRF member device and number of the slot where the card on the IRF member device resides. |
Brd Type |
Card type. |
Brd Status |
Card status: · Absent—No card is inserted in the slot. · Master—The card is the active MPU of the IRF fabric. · Standby—The card is a standby MPU of the IRF fabric. · Normal—The card is an interface card and is operating correctly. · Fault—The card is faulty. · Off—The card is powered off. · Illegal—The current software version of the device does not support the card and the card cannot operate properly. |
Software Version |
Software version of the card. |
display device manuinfo
Use display device manuinfo to display the electronic label data for the device.
Syntax
In standalone mode:
display device manuinfo [ slot slot-number ]
In IRF mode:
display device manuinfo [ chassis chassis-number [ slot slot-number ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
slot slot-number: Specifies a card by the number of the slot where the card resides. If no card is specified, this command displays the electronic label data for all cards.
Usage guidelines
An electronic label is a profile of a device or card and contains the permanent configuration information including the serial number, manufacturing date, MAC address, and vendor name. The data is written to the storage component during debugging or testing.
Examples
# Display the electronic label data for the device in standalone mode.
<Sysname> display device manuinfo
Chassis self
Slot 0:
DEVICE_NAME : LST1MRPNC1
DEVICE_SERIAL_NUMBER : 210231A9680112000022
MAC_ADDRESS : 3822-D645-EC00
MANUFACTURING_DATE : 2011-02-24
VENDOR_NAME : H3C
Slot 2:
DEVICE_NAME : LST1GT48LEC1
DEVICE_SERIAL_NUMBER : 210231A85L0123456789
MAC_ADDRESS : NONE
MANUFACTURING_DATE : 2011-05-18
VENDOR_NAME : H3C
Table 7 Command output
Field |
Description |
Slot 1 |
Number of the slot where the card resides. |
DEVICE_NAME |
Device name. |
DEVICE_SERIAL_NUMBER |
Serial number. |
MAC_ADDRESS |
MAC address. |
MANUFACTURING_DATE |
Manufacturing date. |
VENDOR_NAME |
Vendor name. |
# Display the electronic label data for the device in IRF mode.
<Sysname> display device manuinfo
Chassis 1
Slot 0:
DEVICE_NAME : LST1MRPNC1
DEVICE_SERIAL_NUMBER : 210231A9680112000022
MAC_ADDRESS : 3822-D645-EC00
MANUFACTURING_DATE : 2011-02-24
VENDOR_NAME : H3C
Slot 2:
DEVICE_NAME : LST1GT48LEC1
DEVICE_SERIAL_NUMBER : 210231A85L0123456789
MAC_ADDRESS : NONE
MANUFACTURING_DATE : 2011-05-18
VENDOR_NAME : H3C
Table 8 Command output
Field |
Description |
Chassis 1 |
ID of the IRF member device. |
Slot 0 |
Number of the slot where the card resides. |
DEVICE_NAME |
Device name. |
DEVICE_SERIAL_NUMBER |
Serial number. |
MAC_ADDRESS |
MAC address. |
MANUFACTURING_DATE |
Manufacturing date. |
VENDOR_NAME |
Vendor name. |
display device manuinfo chassis-only
Use display device manuinfo chassis-only to display the electronic label data for the specified backplane.
Syntax
In standalone mode:
display device manuinfo chassis-only
In IRF mode:
display device manuinfo chassis chassis-number chassis-only
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
Examples
# Display the electronic label data for the backplane in standalone mode.
<Sysname> display device manuinfo chassis-only
Chassis self
DEVICE_NAME : backplane
DEVICE_SERIAL_NUMBER : 210235A36L1234567890
MANUFACTURING_DATE : 2010-01-20
VENDOR_NAME : H3C
# Display the electronic label data for the backplane on IRF member device 1 in IRF mode.
<Sysname> display device manuinfo chassis 1 chassis-only
Chassis 1
Chassis self
DEVICE_NAME : backplane
DEVICE_SERIAL_NUMBER : 210235A36L1234567891
MANUFACTURING_DATE : 2010-01-20
VENDOR_NAME : H3C
display device manuinfo fan
Use display device manuinfo fan to display the electronic label data for the specified fan.
Syntax
In standalone mode:
display device manuinfo fan fan-id
In IRF mode:
display device manuinfo chassis chassis-number fan fan-id
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
fan-id: Specifies a fan by its ID, in the range of 1 to 2.
Examples
# Display the electronic label data for fan 2 in standalone mode.
<Sysname> display device manuinfo fan 2
Fan 2
DEVICE_NAME : fan
DEVICE_SERIAL_NUMBER : 210235A36L1234567890
MANUFACTURING_DATE : 2010-01-20
VENDOR_NAME : H3C
# Display the electronic label data for fan 2 on IRF member device 1 in IRF mode.
<Sysname> display device manuinfo chassis 1 fan 2
Chassis 1
Fan 2
DEVICE_NAME : fan2
DEVICE_SERIAL_NUMBER : 210235A36L1234567891
MANUFACTURING_DATE : 2010-01-20
VENDOR_NAME : H3C
display device manuinfo power
Use display device manuinfo power to display the electronic label data of a power supply.
Syntax
In standalone mode:
display device manuinfo power power-id
In IRF mode:
display device manuinfo chassis chassis-number power power-id
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
power-id: Specifies a power supply by its ID. The value range is 1 to 12 for an S12518 switch and 1 to 6 for other models of S12500 switches.
Examples
# Display the electronic label data for power supply 2 in standalone mode.
<Sysname> display device manuinfo power 2
Power 2:
DEVICE_NAME : power
DEVICE_SERIAL_NUMBER : 210235A36L1234567890
MANUFACTURING_DATE : 2010-01-20
VENDOR_NAME : H3C
# Display the electronic label data for power supply 2 on IRF member device 1 in IRF mode.
<Sysname> display device manuinfo chassis 1 power 2
Chassis 1:
Power 2:
DEVICE_NAME : power2
DEVICE_SERIAL_NUMBER : 210235A36L1234567891
MANUFACTURING_DATE : 2010-01-20
VENDOR_NAME : H3C
display device manuinfo power-monitor
Use display device manuinfo power-monitor to display the electronic label data of a power monitoring unit.
Syntax
In standalone mode:
display device manuinfo power-monitor pmu-id
In IRF mode:
display device manuinfo chassis chassis-number power-monitor pmu-id
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
power-monitor pmu-id: Specifies a power monitoring unit by its ID. For a switch with only one power supply shelf, such as S12508, the pmu-id argument must be 1. For a switch with two power supply shelves, the ID of the power monitoring unit for the upper power supply shelf is 1 and that of the power monitoring unit for the lower power supply shelf is 2.
Usage guidelines
The power monitoring units are hardware used to monitor power supplies on the device.
Examples
# Display the electronic label data of power monitoring unit 2 in standalone mode.
<Sysname> display device manuinfo power-monitor 2
PowerMonitor 2:
DEVICE_NAME : PMU
DEVICE_SERIAL_NUMBER : 210231A36L1234567890
MAC_ADDRESS : NONE
MANUFACTURING_DATE : 2010-01-20
VENDOR_NAME : H3C
# Display the electronic label data of power monitoring unit 2 on IRF member device 1.
<Sysname> display device manuinfo chassis 1 power-monitor 2
Chassis 2:
PowerMonitor 2:
DEVICE_NAME : PMU2
DEVICE_SERIAL_NUMBER : 210231A36L1234567891
MAC_ADDRESS : NONE
MANUFACTURING_DATE : 2010-01-20
VENDOR_NAME : H3C
display diagnostic-information
Use display diagnostic-information to display the operating statistics for multiple feature modules in the system.
Syntax
display diagnostic-information [ hardware | infrastructure | l2 | l3 | service ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
hardware: Displays hardware-related operating statistics.
infrastructure: Displays operating statistics for the fundamental modules.
l2: Displays operating statistics for the Layer 2 features.
l3: Displays operating statistics for the Layer 3 features.
service: Displays operating statistics for upper-layer features.
Usage guidelines
For diagnostics 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.
This display command does not support the | by-linenum option, the > filename option, or the >> filename option. However, this command asks you whether you want to save the output to a file or display the output on the screen. The file used to save the output is automatically compressed to save storage space.
Examples
# Display the operating statistics for multiple feature modules in the system.
<Sysname> display diagnostic-information
Save or display diagnostic information (Y=save, N=display)? [Y/N]:n
===============================================
===============display clock===============
14:03:55 UTC Thu 01/05/2012
=================================================
===============display version===============
…
display environment
Use display environment to display the temperature statistics for the temperature sensors, including the current temperature and temperature thresholds.
Syntax
In standalone mode:
display environment [ slot slot-number ]
In IRF mode:
display environment [ chassis chassis-number [ slot slot-number ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
slot slot-number: Specifies a card by the number of the slot where the card resides.
Usage guidelines
· If no card is specified, this command displays the temperature statistics for all temperature sensors on the device. (In standalone mode.)
· If no IRF member device is specified, this command displays the temperature statistics for all temperature sensors in the IRF fabric. If an IRF member device is specified but you do not specify any card, this command displays the temperature statistics for all sensors on the specified IRF member device. (In IRF mode.)
Examples
# Display the temperature statistics for all temperature sensors on the device in standalone mode.
<Sysname> display environment
System temperature information (degree centigrade):
-------------------------------------------------------------------------------
Slot Sensor Temperature LowerLimit WarningLimit AlarmLimit ShutdownLimit
1 inflow 1 21 -25 70 80 N/A
1 outflow 1 24 -15 70 85 N/A
1 hotspot 1 27 -15 75 85 N/A
5 inflow 1 27 -20 65 85 N/A
5 outflow 1 27 0 70 85 N/A
5 hotspot 1 30 -10 70 80 N/A
12 inflow 1 23 -10 55 80 N/A
12 outflow 1 42 5 85 95 N/A
# Display the temperature statistics for all temperature sensors in the IRF fabric in IRF mode.
<Sysname> display environment
System temperature information (degree centigrade):
-------------------------------------------------------------------------------
Slot Sensor Temperature LowerLimit WarningLimit AlarmLimit ShutdownLimit
1/1 inflow 1 21 -25 70 80 N/A
1/1 outflow 1 24 -15 70 85 N/A
1/1 hotspot 1 27 -15 75 85 N/A
1/5 inflow 1 27 -20 65 85 N/A
1/5 outflow 1 27 0 70 85 N/A
1/5 hotspot 1 30 -10 70 80 N/A
1/12 inflow 1 23 -10 55 80 N/A
1/12 outflow 1 42 5 85 95 N/A
Table 9 Command output
Field |
Description |
System Temperature information (degree centigrade) |
Temperature information (°C). |
sensor |
Temperature sensor: · hotspot—Hotspot sensor. · inflow—Air inlet sensor. · outflow—Air outlet sensor. |
Slot |
A number in this field indicates a card. (In standalone mode.) |
Slot |
The chassis-number/slot-number in this field indicates a card on an IRF member device. (In IRF mode.) |
Temperature |
Current temperature. |
LowerLimit |
Lower temperature limit. |
WarningLimit |
Warning temperature threshold. |
AlarmLimit |
Alarming temperature threshold. |
ShutdownLimit |
Shutdown temperature threshold. When the sensor temperature reaches the limit, the system shuts down automatically. |
display fan
Use display fan to display the operating states of fans.
Syntax
In standalone mode:
display fan [ verbose ]
In IRF mode:
display fan [ chassis chassis-number ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
verbose: Displays detailed information.
chassis chassis-number: Specifies an IRF member device by its member ID. If you do not specify this option, information about all members are displayed. (In IRF mode.)
Examples
# Display the operating states of all fans.
Fan-tray state on chassis 0:
Fan-tray 1 state: Normal
# Display the operating states of all fans.
<Sysname>display fan verbose
Fan-tray verbose state on chassis 2:
Fan-tray 1:
Software version: 105
Hardware version: Ver.A
CPLD version: 002
Fan number: 12
Temperature: 37 °C
High temperature alarm threshold: 60 °C
Low speed alarm threshold: 750 rpm
Fan Status Speed(rpm)
--- ---------- ----------
1 normal 4320
2 normal 4440
3 normal 4380
4 normal 4740
5 normal 4080
6 normal 4440
7 normal 4320
8 normal 4320
9 normal 4380
10 normal 4560
11 normal 4500
12 normal 4500
Fan-tray 2 is absent.
display hardware-failure-detection
Use display hardware-failure-detection to display hardware failure detection and fix information.
Syntax
display hardware-failure-detection
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Usage guidelines
This command displays the hardware failure detection configuration information and actions taken for detected hardware failures on each card. The system keeps the latest 10 records for each card. Two successive actions that are the same generates only one record.
The records are saved on the active MPU. They are not removed when the relevant cards are unplugged.
Examples
# Display hardware failure detection and fix information.
<Sysname> display hardware-failure-detection
Current level:
chip : isolate
board : isolate
forwarding : warning
--------------------------Slot 0 executed records:-----------------------------
There is no record.
--------------------------Slot 0 trapped records:-----------------------------
There is no record.
Table 10 Command output
Field |
Description |
Slot n executed records: |
Hardware failure detection and protection records. |
display hardware-failure-protection
Use display hardware-failure-protection to display hardware failure protection information.
Syntax
display hardware-failure-protection [ aggregation | port { auto-down | interface-type interface-number } ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
aggregation: Displays the hardware failure protection configuration for aggregation groups.
port: Displays the hardware failure protection configuration for interfaces.
auto-down: Displays the ports configured with hardware failure protection.
interface-type interface-number: Displays the hardware failure protection configuration for a specific interface. The interface-type interface-number option specifies the type and number of the interface.
Usage guidelines
If you do not specify any option, this command displays all hardware failure protection configuration information for the switch.
Examples
# Display all hardware failure protection configuration information of the switch.
<Sysname> display hardware-failure-protection
Aggregation: on
Port: ge2/0/1 ge3/0/1
# Display the ports configured with hardware failure protection.
<Sysname> display hardware-failure-protection port auto-down
Port: ge2/0/1 ge3/0/1
# Display the hardware failure protection configuration for interface GigabitEthernet 2/0/2.
<Sysname> display hardware-failure-protection port GigabitEthernet 2/0/2
Auto-down is NOT allowed while hardware-failure happened.
display memory
Use display memory to display memory usage.
Syntax
In standalone mode:
display memory [ slot slot-number ]
In IRF mode:
display memory [ chassis chassis-number slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
slot slot-number: Specifies a card by its slot number. Without this option, the command displays memory usage for all cards. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. Without this option, the command displays memory usage for all cards in the IRF fabric. (In IRF mode.)
Examples
# Display memory usage in standalone mode.
<Sysname> display memory
The statistics about memory is measured in KB:
Slot 0:
Total Used Free Shared Buffers Cached FreeRatio
Mem: 507980 154896 353084 0 488 54488 69.5%
-/+ Buffers/Cache: 99920 408060
Swap: 0 0 0
# Display memory usage in IRF mode.
<Sysname> display memory
The statistics about memory is measured in KB:
Chassis 1 Slot 0:
Total Used Free Shared Buffers Cached FreeRatio
Mem: 507980 154896 353084 0 488 54488 69.5%
-/+ Buffers/Cache: 99920 408060
Swap: 0 0 0
Table 11 Command output
Field |
Description |
Slot |
Slot number of a card. (In standalone mode.) |
Chassis x Slot x |
Slot number of a card on a member device. (In IRF mode.) |
Mem |
Memory usage information. |
total |
Total physical memory size, which might be less than the actual memory size. |
used |
Used physical memory. |
free |
Free physical memory. |
shared |
Physical memory shared by processes. |
buffers |
Physical memory used for buffers. |
cached |
Physical memory used for caches. |
FreeRatio |
Free memory ratio. |
-/+ buffers/cache |
-/+ buffers/cache:used = Mem:used – Mem:buffers – Mem:cached, which indicates the physical memory used by applications. -/+ buffers/cache:free = Mem:free + Mem:buffers + Mem:cached, which indicates the physical memory available for applications. |
Swap |
Swap memory. |
display memory-threshold
Use display memory-threshold to display memory usage thresholds and memory usage notification statistics.
Syntax
In standalone mode:
display memory-threshold [ slot slot-number ]
In IRF mode:
display memory-threshold [ chassis chassis-number slot slot-number ]
Views
Any view
Predefined user roles
network-admin
mdc-admin
Parameters
slot slot-number: Specifies a card by its slot number. Without this option, the command displays the memory usage thresholds and memory usage notification statistics for the active MPU. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. Without this option, the command displays the memory usage thresholds and memory usage notification statistics for the global active MPU. (In IRF mode.)
Usage guidelines
For more information about memory usage notifications, see log information containing MEM_EXCEED_THRESHOLD or MEM_BELOW_THRESHOLD.
Examples
# Display memory usage thresholds and memory usage notification statistics.
<Sysname> display memory-threshold
Memory usage threshold:
Minor: 64M
Severe: 48M
Critical: 32M
Normal: 96M
Current memory state: Normal
Event statistics:
[Back to normal state]
First notification: 2012-5-15 09:21:35.546
Latest notification: 2012-5-15 09:21:35.546
Total number of notifications sent: 1
[Enter minor low-memory state]
First notification at: 2012-5-15 09:07:05.941
Lastest notification at: 2012-5-15 09:07:05.941
Total number of notifications sent: 1
[Back to minor low-memory state]
First notification at: 0.0
Lastest notification at: 0.0
Total number of notifications sent: 0
[Enter severe low-memory state]
First notification at: 0.0
Lastest notification at: 0.0
Total number of notifications sent: 0
[Back to severe low-memory state]
First notification at: 0.0
Lastest notification at: 0.0
Total number of notifications sent: 0
[Enter critical low-memory state]
First notification at: 0.0
Lastest notification at: 0.0
Total number of notifications sent: 0
display power-supply
Use display power-supply to display power supply information.
Syntax
display power-supply [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
verbose: Displays detailed information.
Examples
# Display power supply information.
<Sysname> display power-supply
Power info on chassis 2:
PSU 1/1 state: Absent
PSU 1/2 state: Absent
PSU 1/3 state: Normal
PSU 1/4 state: Absent
PSU 1/5 state: Fault
PSU 1/6 state: Absent
# Display detailed power supply information.
<Sysname>display power-supply verbose
Power info on chassis 2:
System power-supply policy: enable
System power-module redundant(configured): 1
System power usable: 2000 Watts
System power redundant(actual): 0 Watts
System power allocated: 1265 Watts
System power available: 735 Watts
System power used(current): 398.49 Watts
System power monitoring unit 1:
Software version: 107
Type In/Out Rated-Vol(V) Existing Usable Redundant(actual)
---------- ------ ------------ -------- ------ -----------------
PSE9000-A AC/DC 220(default) 2 1 0
DC output voltage information:
Tray Value(V) Upper-Threshold(V) Lower-Threshold(V) Status
---- -------- ------------------ ------------------ -------
1 49.81 51.00 49.00 Normal
DC output current information:
Total current(A): 8.00
Branch Value(A)
------ --------
1/1 N/A
1/2 N/A
1/3 8.00
1/4 N/A
1/5 Unknown
1/6 N/A
PSU Status:
ID Status Input-Err Output-Err High-Temperature Fan-Err Closed Current-Limit
--- ------- ----------- ---------- ---------------- ------- ------ -------------
1/1 Absent
1/2 Absent
1/3 Normal
1/4 Absent
1/5 Fault
1/6 Absent
Line-card power status:
Slot Board-Type Watts Status
---- --------------- ----- ------
2 None -- Absent
3 None -- Absent
4 None -- Absent
5 LST1GT48LEC1 190 On
6 None -- Absent
7 None -- Absent
8 None -- Absent
display scheduler job
Use display scheduler job to display job configuration information.
Syntax
display scheduler job [ job-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
job-name: Specifies a job by its name, a case-sensitive string of 1 to 47 characters. If no job is specified, the command displays the configuration information of all jobs.
Examples
# Display the configuration information of all jobs.
<Sysname> display scheduler job
Job name: saveconfig
copy startup.cfg backup.cfg
Job name: backupconfig
Job name: creat-VLAN100
system-view
vlan 100
// The output shows that the device has three jobs: the first has one command, the second has no command, and the third has two commands. Jobs are separated by blank lines.
display scheduler logfile
Use display scheduler logfile to display job execution log information.
Syntax
display scheduler logfile
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Examples
# Display job execution log information.
<Sysname> display scheduler logfile
Logfile Size: 1902 Bytes.
Job name : shutdown
Schedule name : shutdown
Execution time : Tue Dec 27 10:44:42 2011
Completion time : Tue Dec 27 10:44:47 2011
--------------------------------- Job output -----------------------------------
<Sysname>system-view
System View: return to User View with Ctrl+Z.
[Sysname]interface rang GigabitEthernet 3/0/1 to GigabitEthernet 3/0/3
[Sysname-if-range]shutdown
Table 12 Command output
Field |
Description |
Logfile Size |
Size of the log file, in bytes. |
Schedule name |
Schedule to which the job belongs. |
Execution time |
Time when the job was started. |
Completion time |
Time when the job was completed. If the job has never been executed or the job has no commands, this field is not displayed. |
Job output |
Commands in the job and their output. |
Related commands
reset scheduler logfile
display scheduler reboot
Use display scheduler reboot to display the automatic reboot schedule.
Syntax
display scheduler reboot
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Examples
# Display the automatic reboot schedule.
<Sysname> display scheduler reboot
System will reboot at 16:32:00 05/23/2011(in 1 hours and 39 minutes).
· scheduler reboot at
· scheduler reboot delay
display scheduler schedule
Use display scheduler schedule to display schedule information.
Syntax
display scheduler schedule [ schedule-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
schedule-name: Specifies a schedule by its name, a case-sensitive string of 1 to 47 characters. If no schedule is specified, the command displays information about all schedules.
Examples
# Display information about all schedules.
<Sysname> display scheduler schedule
Schedule name : shutdown
Schedule type : Run once after 0 hours 2 minutes
Start time : Tue Dec 27 10:44:42 2011
Last execution time : Tue Dec 27 10:44:42 2011
Last completion time : Tue Dec 27 10:44:47 2011
Execution counts : 1
-----------------------------------------------------------------------
Job name Last execution status
shutdown Successful
Table 13 Command output
Field |
Description |
Schedule type |
Execution time setting of the schedule. If no execution time is specified, this field is not displayed. |
Start time |
Time to execute the schedule for the first time. If no execution time is specified, this field is not displayed. |
Last execution time |
Last time when the schedule was executed. If no execution time is specified, this field is not displayed. If the schedule has never been executed, "Yet to be executed" is displayed for this field. |
Last completion time |
Last time when the schedule was completed. If no execution time is specified, this field is not displayed. |
Execution counts |
Number of times the schedule has been executed. If the schedule has never been executed, this field is not displayed. |
Job name |
Name of a job under the schedule. |
Last execution status |
Result of the last execution: · Successful. · Failed. · Waiting—The device is executing the schedule and the job is waiting to be executed. · In process—The job is being executed. · -NA-—The execution time has not arrived yet. To view information about whether the commands in the job has been executed and the execution results, execute the display scheduler logfile command. |
display system-working-mode
Use display system-working-mode to display the current system operating mode.
Syntax
display system-working-mode
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Examples
# Display the current system operating mode.
<Sysname> display system-working-mode
The current system working mode is bridgee.
The next system working mode is bridgee.
display transceiver alarm
Use display transceiver alarm to display the alarms present on transceiver modules.
Syntax
display transceiver alarm interface [ interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
interface [ interface-type interface-number ]: Specifies an interface by its type and number. If no interface is specified, this command displays the alarms present on the transceiver modules on all interfaces.
Usage guidelines
Table 14 shows the alarms that might occur to the commonly used transceiver modules.
If no error occurs, "None" is displayed.
Table 14 Alarms on commonly used transceiver modules
Field |
Remarks |
SFP: |
|
RX loss of signal |
Received signals are lost. |
RX power high |
The received optical power is high. |
RX power low |
The received optical power is low. |
TX fault |
Transmission error. |
TX bias high |
The transmitted bias current is high. |
TX bias low |
The transmitted bias current is low. |
TX power high |
The transmitted optical power is high. |
TX power low |
The transmitted optical power is low. |
Temp high |
The temperature is high. |
Temp low |
The temperature is low. |
Voltage high |
The voltage is high. |
Voltage low |
The voltage is low. |
Transceiver info I/O error |
Transceiver information read/write error. |
Transceiver info checksum error |
Transceiver information checksum error. |
Transceiver type and port configuration mismatch |
The type of the transceiver module does not match the port configuration. |
Transceiver type not supported by port hardware |
The port does not support this type of transceiver modules. |
XFP: |
|
RX loss of signal |
Received signals are lost. |
RX not ready |
The receiving status is not ready |
RX CDR loss of lock |
Receiving CDR loss of lock. |
RX power high |
The received optical power is high. |
RX power low |
The received optical power is low. |
TX not ready |
The transmission status is ready. |
TX fault |
Transmission error. |
TX CDR loss of lock |
Transmission CDR loss of lock. |
TX bias high |
The transmitted bias current is high. |
TX bias low |
The transmitted bias current is low. |
TX power high |
The transmitted optical power is high. |
TX power low |
The transmitted optical power is low. |
Module not ready |
The module is not ready. |
APD supply fault |
Avalanche photo diode error. |
TEC fault |
Thermoelectric cooler error. |
Wavelength unlocked |
Wavelength loss of lock. |
Temp high |
The temperature is high. |
Temp low |
The temperature is low. |
Voltage high |
The voltage is high. |
Voltage low |
The voltage is low. |
Transceiver info I/O error |
Transceiver information read/write error. |
Transceiver info checksum error |
Transceiver information checksum error. |
Transceiver type and port configuration mismatch |
The type of the transceiver module does not match the port configuration. |
Transceiver type not supported by port hardware |
The port does not support this type of transceiver modules. |
Examples
# Display the alarms present on the transceiver module in interface GigabitEthernet 3/0/1.
<Sysname> display transceiver alarm interface gigabitethernet 3/0/1
GigabitEthernet3/0/1 transceiver current alarm information:
RX loss of signal
RX power low
Table 15 Command output
Field |
Description |
transceiver current alarm information |
Alarms present on the transceiver module. |
RX loss of signal |
Received signals are lost. |
RX power low |
Received power is low. |
display transceiver diagnosis
Use display transceiver diagnosis to display the current measured values of the digital diagnosis parameters for transceiver modules.
Syntax
display transceiver diagnosis interface [ interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
interface [ interface-type interface-number ]: Specifies an interface by its type and number. If no interface is specified, this command displays the current measured values of the digital diagnosis parameters for the transceiver modules on all interfaces.
Usage guidelines
This command cannot display information for some transceiver modules.
Examples
# Display the current measured values of the digital diagnosis parameters for the transceiver module on interface GigabitEthernet 3/0/2.
<Sysname> display transceiver diagnosis interface gigabitethernet 3/0/2
GigabitEthernet3/0/2 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 16 Command output
Field |
Description |
transceiver diagnostic information |
Digital diagnosis information of the transceiver module on the interface. |
Current diagnostic parameters |
Current diagnosis parameters. |
Temp.(°C) |
Digital diagnosis parameter—Temperature, in °C, accurate to 1°C. |
Voltage(V) |
Digital diagnosis parameter—Voltage, in V, accurate to 0.01 V. |
Bias(mA) |
Digital diagnosis parameter—Bias current, in mA, accurate to 0.01 mA. |
RX power(dBm) |
Digital diagnosis parameter—RX power, in dBm, accurate to 0.01 dBm. |
TX power(dBm) |
Digital diagnosis parameter—TX power, in dBm, accurate to 0.01 dBm. |
display transceiver interface
Use display transceiver interface to display the key parameters of transceiver modules.
Syntax
display transceiver interface [ interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
interface-type interface-number: Specifies an interface by its type and number. If no interface is specified, this command displays the key parameters of the transceiver modules on all interfaces of the device.
Examples
# Display the key parameters of the transceiver module on interface GigabitEthernet 3/0/3.
<Sysname> display transceiver interface gigabitethernet 3/0/3
GigabitEthernet3/0/3 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 : ****
Ordering Name : SFP-GE-SX-MM850
Table 17 Command output
Field |
Description |
transceiver information |
Transceiver module information. |
Transceiver Type |
Transceiver module type. |
Connector Type |
Connector type options: · SC—Fiber connector developed by NTT. · LC—1.25 mm/RJ-45 fiber connector developed by Lucent. · RJ-45. · CX 4. |
Wavelength(nm) |
· Fiber transceiver: Central wavelength (in nm) of the transmit laser. If the transceiver supports multiple wavelengths, every two wavelength values are separated by a comma. · Copper cable: Displayed as N/A. |
Transfer Distance(xx) |
Transfer distance, with "xx" representing the distance unit: km (kilometers) for single-mode transceiver modules and m (meters) for other transceiver modules. If the transceiver module supports multiple transfer media, the transfer distances are separated by commas. The transfer medium is included in the bracket following the transfer distance value. The following are the transfer media: · 9 um—9/125 um single-mode fiber. · 50 um—50/125 um multi-mode fiber. · 62.5 um—62.5/125 um multi-mode fiber. · TP—Twisted pair. · CX4—CX4 cable. |
Digital Diagnostic Monitoring |
Support for the digital diagnosis function: · YES—Supported. · NO—Not supported. |
Ordering Name |
Product code. |
display transceiver manuinfo
Use display transceiver manuinfo to display the electronic label data for transceiver modules.
Syntax
display transceiver manuinfo interface [ interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
interface [ interface-type interface-number ]: Specifies an interface by its type and number. If no interface is specified, this command displays part of the electronic label data for the transceiver modules on all interfaces.
Usage guidelines
This command cannot display information for some transceiver modules.
Examples
# Display the electronic label data for the transceiver module on interface GigabitEthernet 3/0/4.
<Sysname> display transceiver manuinfo interface gigabitethernet 3/0/4
GigabitEthernet3/0/4 transceiver manufacture information:
Manu. Serial Number : 213410A0000054000251
Manufacturing Date : 2010-09-01
Vendor Name : ****
Table 18 Command output
Field |
Description |
Manu. Serial Number |
Serial number generated during commissioning and testing of the transceiver module. |
Manufacturing Date |
Commissioning date. |
Vendor Name |
Name of the vendor. |
display version
Use display version to display system version information.
Syntax
display version
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Examples
# Display system version information.
<Sysname> display version
H3C Comware Software, Version 7.1.026, Beta 1330
Copyright (c) 2004-2012 Hangzhou H3C Tech. Co., Ltd. All rights reserved.
H3C S12508 uptime is 0 weeks, 0 days, 1 hours, 42 minutes
Last reboot reason : User reboot
Boot image: cfa0:/s12500-cmw710-boot-a7122.bin
Boot image version: 7.1.025
System image: cfa0:/s12500-cmw710-system-a7122.bin
version: 7.1.026, Beta 1330
LST1MRPNC1 2/1: uptime is 0 weeks, 0 days, 1 hours, 42 minutes
Last reboot reason : User reboot
1024 Mbytes SDRAM
1024 Kbytes NVRAM Memory
Type : LST1MRPNC1
BootRom : 2.11
Software : S12500-CMW710-A7122
PCB : Ver.B
Board Cpu:
Number of Cpld: 2
Cpld 0:
SoftWare : 003
Cpld 1:
SoftWare : 003
---- More ----
forward-path-detection
Use forward-path-detection to enable data forwarding path failure detection.
Use undo forward-path-detection to disable data forwarding path failure detection.
Syntax
forward-path-detection enable
undo forward-path-detection enable
Default
Data forwarding path failure detection is enabled.
Views
System view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
You can enable the device to automatically detect data forwarding path failures and output log information for notification.
Examples
# Enable data forwarding path failure detection.
<Sysname> system-view
[Sysname] forward-path-detection enable
hardware-failure-detection
Use hardware-failure-detection to configure hardware failure detection and specify the actions to be taken in response to hardware failures.
Use undo hardware-failure-detection to restore the default.
Syntax
hardware-failure-detection { board | chip | forwarding } { off | isolate | reset | warning }
undo hardware-failure-detection { board | chip | forwarding }
Default
The system takes the action of warning in response to hardware failures on chips, cards, and the forwarding plane.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
board: Specifies failures on control paths and cards.
chip: Specifies failures on components of cards such as the chips, capacitances, resistances.
forwarding: Specifies failures on the forwarding plane (including services and other relevant items).
off: Takes no action.
isolate: Shuts down the relevant ports, prohibits loading software for the relevant cards, isolates and powers off the relevant cards to reduce the failure effects.
reset: Restarts the cards to try to recover from failures.
warning: Sends logs.
Usage guidelines
The device automatically detects hardware failures on components, cards, and the forwarding plane. You can specify the actions to be taken in response to detected failures.
Examples
# Configure the device to perform hardware failure detection and send traps in response to failures on components.
<Sysname> system-view
[Sysname] hardware-failure-detection chip warning
# Configure the device to hardware failure detection and restart the cards in response to failures on cards.
<Sysname> system-view
[Sysname] hardware-failure-detection board reset
hardware-failure-protection aggregation
Use hardware-failure-protection aggregation to enable hardware failure protection for aggregation groups.
Use undo hardware-failure-protection aggregation to disable hardware failure protection for aggregation groups.
Syntax
hardware-failure-protection aggregation
undo hardware-failure-protection aggregation
Default
Hardware failure protection is disabled for aggregation groups.
Views
System view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
Hardware failure protection is enabled on interfaces by default. To enable hardware failure protection for aggregation groups, execute the undo hardware-failure-protection auto-down command on the member interfaces first.
An interface shut down for hardware failure protection is in Protect DOWN state. You can use the display interface command to view the status. To restore the interface to UP state, execute the undo shutdown command.
This command does not take effect on a member interface in the following cases:
· Loopback testing is enabled (using the loopback { external | internal } command).
· The interface is forcibly brought up (using the port up-mode command).
· The interface is a physical IRF port.
Examples
# Enable hardware failure protection for aggregation groups.
<Sysname> system-view
[Sysname] hardware-failure-protection aggregation
# Disable hardware failure protection for aggregation groups.
<Sysname> system-view
[Sysname] undo hardware-failure-protection aggregation
hardware-failure-protection auto-down
Use hardware-failure-protection auto-down to enable hardware failure protection for an interface.
Use undo hardware-failure-protection auto-down to disable hardware failure protection for an interface.
Syntax
hardware-failure-protection auto-down
undo hardware-failure-protection auto-down
Default
Hardware failure protection is enabled for an interface.
Views
Ethernet interface view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
After you enable hardware failure protection on an interface, the system automatically shuts the interface down when it detects a hardware failure on the interface. An interface shut down this way is in Protect Down state.
After the failure on an interface is removed, bring the interface up using the undo shutdown command.
This command takes effect only when the hardware-failure-detection forwarding isolate command is configured.
This command does not take effect on an interface in the following cases:
· Loopback testing is enabled (using the loopback { external | internal } command).
· The interface is forcibly brought up (using the port up-mode command).
· The interface is a physical IRF port.
Examples
# Enable hardware failure protection on interface GigabitEthernet 7/0/47.
<Sysname> system-view
[Sysname]interface GigabitEthernet 7/0/47
[Sysname-GigabitEthernet7/0/47]hardware-failure-protection auto-down
# Disable hardware failure protection on interface GigabitEthernet 7/0/47.
<Sysname> system-view
[Sysname]interface GigabitEthernet 7/0/47
[Sysname-GigabitEthernet7/0/47]undo hardware-failure-protection auto-down
header
Use header to create a banner.
Use undo header to clear a banner.
Syntax
header { incoming | legal | login | motd | shell } text
undo header { incoming | legal | login | motd | shell }
Default
No banner is configured.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
incoming: Configures the banner to be displayed before a modem dial-up user accesses user view. If authentication is required, the incoming banner appears after the authentication is passed.
legal: Configures the banner to be displayed before a user inputs the username and password to access the CLI.
login: Configures the banner displayed to be before password or scheme authentication is performed for a login user.
motd: Configures the greeting banner to be displayed before the legal banner appears.
shell: Configures the banner to be displayed before a non-modem dial-in user accesses user view.
text: Specifies the banner message, which can be entered in two formats. For more information, see Fundamentals Configuration Guide.
Examples
# Create the incoming banner, legal banner, login banner, MOTD banner, and shell banner.
<Sysname> system-view
[Sysname] header incoming
Please input banner content, and quit with the character '%'.
Welcome to incoming(header incoming)%
[Sysname] header legal
Please input banner content, and quit with the character '%'.
Welcome to legal (header legal)%
[Sysname] header login
Please input banner content, and quit with the character '%'.
Welcome to login(header login)%
[Sysname] header motd
Please input banner content, and quit with the character '%'.
Welcome to motd(header motd)%
[Sysname] header shell
Please input banner content, and quit with the character '%'.
Welcome to shell(header shell)%
In this example, the percentage sign (%) is the starting and ending character of the text argument. Entering the percentage sign after the text quits the header command. Because it is the starting and ending character, the percentage sign is not included in the banner.
# Test the configuration by using Telnet. The login banner appears only when password or scheme login authentication has been 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
Use job to assign a job to a schedule.
Use undo job to revoke a job.
Syntax
job job-name
undo job job-name
Default
No job is assigned to a schedule.
Views
Schedule view
Predefined user roles
network-admin
mdc-admin
Parameters
job-name: Specifies the job name, a case-sensitive string of 1 to 47 characters.
Usage guidelines
You can assign multiple jobs to a schedule. The jobs in a schedule are executed concurrently.
The jobs to be assigned to a schedule must already exist. To create a job, use the scheduler job command.
Examples
# Assign job save-job to schedule saveconfig.
<Sysname> system-view
[Sysname] scheduler schedule saveconfig
[Sysname-schedule-saveconfig] job save-job
Related commands
· scheduler job
· scheduler schedule
memory-threshold
Use memory-threshold to set memory usage thresholds.
Use undo memory-threshold to restore the defaults.
Syntax
In standalone mode:
memory-threshold [ slot slot-number ] minor minor-value severe severe-value critical critical-value normal normal-value
undo memory-threshold [ slot slot-number ]
In IRF mode:
memory-threshold [ chassis chassis-number slot slot-number ] minor minor-value severe severe-value critical critical-value normal normal-value
undo memory-threshold [ chassis chassis-number slot slot-number ]
Default
· Level-1 threshold: 96 MB.
· Level-2 threshold: 64 MB.
· Level-3 threshold: 48 MB.
· Normal level threshold: 128 MB.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
minor minor-value: Specifies the Level-1 threshold, in the range of 0 to 4294967295. This threshold must be equal to or less than the total memory size. Setting this threshold to 0 disables the Level-1 threshold alarm function.
severe severe-value: Specifies the Level-2 threshold, in the range of 0 to 4294967295. This threshold must be equal to or less than the Level-1 threshold. Setting this threshold to 0 disables the Level-2 threshold alarm function.
critical critical-value: Specifies the Level-3 threshold, in the range of 0 to 4294967295. This threshold must be equal to or less than the Level-2 threshold. Setting this threshold to 0 disables the Level-3 threshold alarm function.
normal normal-value: Specifies the normal level threshold, in the range of 0 to 4294967295. This threshold must be equal to or greater than the Level-1 threshold.
slot slot-number: Specifies a card by its slot number. Without this option, the command sets memory usage thresholds for the active MPU. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. Without this option, the command sets memory usage thresholds for the global active MPU. (In IRF mode.)
Usage guidelines
To ensure proper operation and improve memory utilization, the system monitors the amount of the free memory space in real time. When certain conditions are met, the system generates an alarm notification or an alarm cancellation notification and sends it to related service modules or processes so actions can be taken in response.
For more information about the conditions and rules for generating alarm notifications and alarm cancellation notifications, see Fundamentals Configuration Guide.
# Set the Level-1, Level-2, Level-3, and normal level thresholds to 64 MB, 48 MB, 32 MB, and 96 MB, respectively.
<Sysname> system-view
[Sysname] memory-threshold minor 64 severe 48 critical 32 normal 96
power-supply off
Use power-supply off to power off a card.
Syntax
In standalone mode:
power-supply off slot slot-number
In IRF mode:
power-supply off chassis chassis-number slot slot-number
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
slot slot-number: Specifies a card by the number of the slot where the card resides. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. (In IRF mode.)
Usage guidelines
You cannot power off an MPU or switching fabric card.
When the power for the device is insufficient, you can manually power off interface cards that are idle or connected to unimportant network nodes to ensure proper powering of critical interface cards.
To avoid IRF split, the system does not power off an interface card that contains all active physical IRF ports of a member device. (In IRF mode.)
Examples
# Power off the card in slot 9 in standalone mode.
<Sysname> power-supply off slot 9
# Power off the card in slot 3 on member device 1 in IRF mode.
<Sysname> power-supply off chassis 1 slot 3
power-supply on
Use power-supply on to power on a card.
Syntax
In standalone mode:
power-supply on slot slot-number
In IRF mode:
power-supply on chassis chassis-number slot slot-number
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
slot slot-number: Specifies a card by the number of the slot where the card resides. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. (In IRF mode.)
Usage guidelines
You cannot power on an MPU or switching fabric card.
Examples
# Power on the card in slot 9 in standalone mode.
<Sysname> power-supply on slot 9
# Power on the card in slot 3 on IRF member device 1 in IRF mode.
<Sysname> power-supply on chassis 1 slot 3
power-supply led-blink
Use power-supply led-blink to correlate IDs randomly assigned by the system with the slot numbers of power supplies.
Syntax
In standalone mode:
power-supply led-blink [ module id ] [ blink-time value ] [ delay-time value ]
In IRF mode:
power-supply led-blink chassis chassis-number [ module id ] [ blink-time value ] [ delay-time value ]
Views
System view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
module id: Specifies the ID of an AC power supply.
blink-time value: Sets the operation LED blink duration of the AC power supply, in the range of 1 to 10 seconds. The default is 3.
delay-time value: Sets the delay time after which the LED begins to blink in response to this command. The delay time is in the range of 0 to 30 seconds and defaults to 0. If you set the delay time to 0, the LED of the power supply that is using the specified ID blinks immediately.
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
Usage guidelines
This command applies only to PSE9000 AC power supplies. To view the models of power supplies, use the display power-supply command.
If you execute this command for a power supply, the operation LED of the power supply blinks to show you its location. If you execute this command without specifying a power supply ID, all power supplies blink one by one in ascending order of IDs.
Examples
# Make the power supply with the ID 2 blink five seconds after 10 seconds.
<Sysname> system-view
[Sysname] power-supply led-blink module 2 blink-time 5 delay-time 10
power-supply module new-id
Use power-supply module new-id to re-assign IDs to AC power supplies.
Syntax
In standalone mode:
power-supply module old-id-list new-id new-id-list
In IRF mode:
power-supply module chassis chassis-number old-id-list new-id new-id-list
Default
The power supplies use the IDs randomly assigned by the system.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
old-id-list: Specifies the old IDs of the power supplies. The IDs must be delimited by spaces.
new-id-list: Specifies the new IDs for the power supplies. The IDs must be delimited by spaces.
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
Usage guidelines
This command applies only to PSE9000 AC power supplies. To view the models of power supplies, use the display power-supply command.
The location of a power supply's new ID in the new-ID list must be exactly the same as that of the power supply's old ID in the old-ID list.
Each AC power supply must have a unique ID. For easy identification, H3C recommends you use the slot numbers as the power supplies' IDs.
Examples
# Re-set the IDs of AC power supplies 2 and 3 to 3 and 2 to respectively.
<Sysname> system-view
[Sysname] power-supply module 2 3 new-id 3 2
power-supply policy enable
Use power-supply policy enable to enable power supply management.
Use undo power-supply policy enable to disable power supply management.
Syntax
In standalone mode:
power-supply policy enable
undo power-supply policy enable
In IRF mode:
power-supply policy chassis chassis-number enable
undo power-supply policy chassis chassis-number enable
Default
Power supply management is enabled.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
Examples
# Enable power supply management in standalone mode.
<Sysname> system-view
[Sysname] power-supply policy enable
# Enable power supply management for IRF member device 1 in IRF mode.
<Sysname> system-view
[Sysname] power-supply policy chassis 1 enable
power-supply policy redundant
Use power-supply policy redundant to specify the number of redundant power supplies.
Use undo power-supply policy redundant to restore the default.
Syntax
In standalone mode:
power-supply policy redundant module-count
undo power-supply policy redundant
In IRF mode:
power-supply policy chassis chassis-number redundant module-count
undo power-supply policy chassis chassis-number redundant
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
module-count: Specifies the number of redundant power supplies. The upper limit of the value range is the maximum number of redundant power supplies supported by the system. Depending on the number of the inserted interface cards and power consumption, the actual number of redundant power supplies that you can configure is smaller than or equal to the maximum number of redundant power supplies supported by the system.
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
Usage guidelines
The configuration of this command takes effect only when power supply management is enabled.
Examples
# Set the number of redundant power supplies to 3 in standalone mode.
<Sysname> system-view
[Sysname] power-supply policy redundant 3
# Set the number of redundant power supplies on IRF member device 1 to 3 in IRF mode.
<Sysname> system-view
[Sysname] power-supply policy chassis 1 redundant 3
reboot
Use reboot to reboot a card or the entire system. (In standalone mode.)
Use reboot to reboot an IRF member device or all IRF member devices. (In IRF mode.)
Syntax
In standalone mode:
reboot [ slot slot-number ] [ force ]
In IRF mode:
reboot [ chassis chassis-number [ slot slot-number ] ] [ force ]
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
slot slot-number: Specifies a card by the number of the slot where the card resides.
force: Reboots the device immediately without performing any software check. If this keyword is not specified, the system checks, for example, whether the main system software image file exists and whether the hard disk is not being written. If any circumstance might affect data protection, the system does not reboot the device.
Usage guidelines
|
CAUTION: · Device reboot interrupts network services. · If the main startup software images are corrupted or missing, you must respecify a set of main startup software images before using the reboot command to reboot the device. Otherwise, the device cannot start up. |
For data security, the device does not reboot if you reboot the device while the device is performing file operations.
· In standalone mode:
If no card is specified, this command reboots the device.
If a card is specified, this command reboots the specified card.
· In IRF mode:
You can use reboot [ chassis chassis-number [ slot slot-number ] ] on the master to reboot the master or a subordinate member device.
¡ If neither an IRF member device nor a card is specified, this command reboots all IRF member devices.
¡ If an IRF member device is specified but no card is specified, this command reboots the specified IRF member device.
¡ If both an IRF member device and a card are specified, this command reboots the specified card in the IRF fabric.
Examples
# Reboot the device when no configuration change has occurred since the last time you saved the running configuration.
<Sysname> reboot
Start to check configuration with next startup configuration file, please wait..
.......DONE!
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait...
# If any configuration has changed, reboot the device and save the configuration.
<Sysname> reboot
Start to check configuration with next startup configuration file, please wait..
.......DONE!
Current configuration will be lost after the reboot, save current configuration?
[Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
flash:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait...
Configuration is saved to flash successfully.
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait...
# If any configuration has changed, reboot the device but do not save the configuration.
<Sysname> reboot
Start to check configuration with next startup configuration file, please wait..
.......DONE!
Current configuration will be lost after the reboot, save current configuration? [Y/N]:n
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait...
# Reboot the device immediately without performing any software check.
<Sysname> reboot force
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait...
# In standalone mode, reboot the interface card in slot 2.
<Sysname> reboot slot 2
This command will reboot the specified slot, Continue? [Y/N]:y
Now rebooting, please wait...
# In standalone mode, reboot the interface card in slot 2 by force.
<Sysname> reboot slot 2 force
This command will reboot the specified slot, Continue? [Y/N]:y
Now rebooting, please wait...
# In IRF mode, reboot IRF member device 2.
<Sysname> reboot chassis 2
This command will reboot the specified chassis, Continue? [Y/N]:y
Now rebooting, please wait...
# In IRF mode, reboot IRF member device 2 by force.
<Sysname> reboot chassis 2 force
This command will reboot the specified chassis, Continue? [Y/N]:y
Now rebooting, please wait...
# In IRF mode, reboot the interface card in slot 2 on IRF member device 2.
<Sysname> reboot chassis 2 slot 2
This command will reboot the specified slot, Continue? [Y/N]:y
Now rebooting, please wait...
# In IRF mode, reboot the interface card in slot 2 on IRF member device 2 by force.
<Sysname> reboot chassis 2 slot 2 force
This command will reboot the specified slot, Continue? [Y/N]:y
Now rebooting, please wait...
reset scheduler logfile
Use reset scheduler logfile to clear job execution log information.
Syntax
reset scheduler logfile
Views
User view
Predefined user roles
network-admin
mdc-admin
Examples
# Clear job execution log information.
<Sysname> reset scheduler logfile
Related commands
display scheduler logfile
scheduler job
Use scheduler job to create a job and enter job view. If the job already exists, you enter job view directly.
Use undo scheduler job to delete a job.
Syntax
scheduler job job-name
undo scheduler job job-name
Default
No job exists.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
job-name: Specifies the job name, a case-sensitive string of 1 to 47 characters.
Usage guidelines
A job can be referenced by multiple schedules. In job view, you can assign commands to the job.
Examples
# Create a job named backupconfig and enter job view.
<Sysname> system-view
[Sysname] scheduler job backupconfig
[Sysname-job-backupconfig]
Related commands
· command
· scheduler schedule
scheduler logfile size
Use scheduler logfile size to set the size of the job execution log file.
Syntax
scheduler logfile size value
Default
The size of the job execution log file is 16 KB.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
value: Sets the size of the job execution log file, in KB. The value range is 16 to 1024.
Usage guidelines
The job execution log file saves the execution information of jobs. If the file is full, old records will be replaced by new records. If the size of the log information to be written to the file is larger than the size of the file, the excessive part is not written to the file.
Examples
# Set the size of the job execution log file to 32 KB.
<Sysname> system-view
[Sysname] scheduler logfile size 32
Related commands
display scheduler logfile
scheduler reboot at
Use scheduler reboot at to specify the reboot date and time.
Use undo scheduler reboot to remove the reboot schedule configuration.
Syntax
scheduler reboot at time [ date ]
undo scheduler reboot
Default
No reboot date or time is specified.
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
time: Specifies the reboot time in the format hh:mm, where hh is in the range of 0 to 23, and mm is in the range of 0 to 59.
date: Specifies the reboot date in the format MM/DD/YYYY or YYYY/MM/DD. The YYYY value is in the range of 2000 to 2035, the MM value is in the range of 1 to 12, and the value range of DD depends on the month value.
Usage guidelines
|
CAUTION: Device reboot interrupts network services. |
When the date argument is not 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.
You can have only one reboot schedule. The schedule reboot at command and the schedule reboot delay command overwrite each other, and whichever is configured last takes effect.
For data security, if you are performing file operations at the reboot time, the system does not reboot.
Examples
# Configure the device to reboot at 12:00 p.m. This example assumes that the current time is 11:43 a.m. on June 6, 2011.
<Sysname> scheduler reboot at 12:00
Reboot system at 12:00:00 06/06/2011(in 0 hours and 16 minutes). Confirm?[Y/N]:Y
<Sysname>
Related commands
scheduler reboot delay
scheduler reboot delay
Use scheduler reboot delay to specify the reboot delay time.
Use undo scheduler reboot to remove the reboot schedule configuration.
Syntax
scheduler reboot delay time
undo scheduler reboot
Default
No reboot delay time is specified.
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
time: Specifies the reboot delay time in the format hh:mm or mm. This argument can consist up to 6 characters. When in the format hh:mm, mm must be in the range of 0 to 59.
Usage guidelines
|
CAUTION: Device reboot interrupts network services. |
For data security, if you are performing file operations at the reboot time, the system does not reboot.
You can have only one reboot schedule. The schedule reboot at command and the schedule reboot delay command overwrite each other, and whichever is configured last takes effect.
Examples
# Configure the device to reboot after 88 minutes. This example assumes that the current time is 11:48 a.m. on June 6, 2011.
<Sysname> scheduler reboot delay 88
Reboot system at 13:16:00 06/06/2011(in 1 hours and 28 minutes). Confirm?[Y/N]:Y
<Sysname>
scheduler schedule
Use scheduler schedule to create a schedule and enter schedule view. If the schedule already exists, you enter schedule view directly.
Use undo scheduler schedule to delete a schedule.
Syntax
scheduler schedule schedule-name
undo scheduler schedule schedule-name
Default
No schedule exists.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
schedule-name: Specifies the schedule name, a case-sensitive string of 1 to 47 characters.
Usage guidelines
You can schedule a job to have the device automatically run a command or a set of commands without administrative interference.
To configure a schedule:
1. Use the scheduler job command to create a job.
2. In job view, use the command command to assign commands to the job.
3. Use the scheduler schedule command to create a schedule.
4. In schedule view, use the job command to assign the job to the schedule. You can assign multiple jobs to a schedule. The jobs must already exist.
5. In schedule view, use the time at, time once, or time repeating command to specify an execution time for the schedule. You can specify only one execution time per schedule.
Examples
# Create a schedule named saveconfig.
<Sysname> system-view
[Sysname] scheduler schedule saveconfig
[Sysname-schedule-saveconfig]
Related commands
· job
· time at
· time once
· time interval
shutdown-interval
Use shutdown-interval to set the detection timer.
Use undo shutdown-interval to restore the default.
Syntax
shutdown-interval time
undo shutdown-interval
Default
The detection interval is 30 seconds.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
time: Specifies a detection timer (in seconds) in the range of 1 to 300.
Usage guidelines
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. Then, the device starts the detection timer. If the port is still down when the detection timer expires, the device automatically activates and restores the port to its actual 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.
Examples
# Set the detection timer to 100 seconds.
<Sysname> system-view
[Sysname] shutdown-interval 100
sysname
Use sysname to set the device name.
Use undo sysname to restore the default.
Syntax
sysname sysname
undo sysname
Default
The device name is H3C.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
sysname: Specifies a name for the device, a string of 1 to 30 characters.
Usage guidelines
A device name identifies a device in a network and is used 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 device to R2000.
<Sysname> system-view
[Sysname] sysname R2000
system-working-mode
Use system-working-mode to set the operating mode of the device.
Use undo system-working-mode to restore the default.
Syntax
system-working-mode { advance | bridgee | routee | standard }
undo system-working-mode
Default
The device operates in standard mode.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
advance: Sets the operating mode of the device to advanced.
bridgee: Sets the operating mode of the device to enhanced Layer 2.
routee: Sets the operating mode of the device to enhanced Layer 3.
standard: Sets the operating mode of the device to standard.
Usage guidelines
The supported features and the specifications of the supported features vary with the operating mode of the device.
After changing the operating mode, you must reboot the device to make the device operate in the new mode.
Examples
# Set the operating mode to enhanced Layer 3.
[Sysname] system-working-mode routee
Do you want to change the system working mode? [Y/N]:Y
The system working mode is changed, please save the configuration and reboot the
system to make it effective!
temperature-limit
Use temperature-limit to set the temperature alarm thresholds for the device.
Use undo temperature-limit to restore the default.
Syntax
In standalone mode:
temperature-limit slot slot-number { hotspot | inflow | outflow } sensor-number lowerlimit warninglimit [ alarmlimit ]
undo temperature-limit slot slot-number { hotspot | inflow | outflow } sensor-number
In IRF mode:
temperature-limit chassis chassis-number slot slot-number { hotspot | inflow | outflow } sensor-number lowerlimit warninglimit [ alarmlimit ]
undo temperature-limit chassis chassis-number slot slot-number { hotspot | inflow | outflow } sensor-number
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
slot slot-number: Specifies a card by the number of the slot where the card resides.
hotspot: Configures temperature alarm thresholds for hotspot sensors on an MPU or interface card. A hotspot sensor is typically near the chip that generates a great amount of heat and used to monitor the chip.
inflow: Configures temperature alarm thresholds for inlet sensors on a card. An inlet sensor is near the air inlet and used for monitoring ambient temperature.
outflow: Configures temperature alarm thresholds for outlet sensors on a card. An outlet sensor is near the air outlet for monitoring device temperature.
sensor-number: Specifies a sensor by its number, an integer starting from 1. Each number represents a temperature sensor on the device or card.
lowerlimit: Specifies a lower temperature threshold in Celsius degrees. The value range and default value depend on the device model and the card.
warninglimit: Specifies a warning temperature threshold in Celsius degrees. The value range and default value depend on the device model and the card. This threshold must be greater than the lower temperature threshold.
alarmlimit: Specifies an alarming temperature threshold in Celsius degrees. The value range and default value depend on the device model and the card. This threshold must be greater than the warning temperature threshold.
Usage guidelines
When the device temperature drops below the lower temperature threshold or reaches the warning threshold, the device logs the event and sends a log message and a trap.
When the device temperature reaches the alarming threshold, the device logs the event and notifies users by repeatedly sending log messages and traps and setting the LEDs on the device panel.
The warning temperature threshold must be higher than the lower temperature threshold, and the alarming temperature threshold must be higher than the warning temperature threshold.
Examples
# In standalone mode, set the lower temperature threshold for inlet sensor 1 on the card in slot 0 to –20°C (68°F), the warning threshold to 70°C (158°F), and the alarming threshold to 90°C (194°F).
<Sysname> system-view
[sysname] temperature-limit slot 0 inflow 1 -20 70 90
# In IRF mode, set the lower temperature threshold for inlet sensor 1 on the card in slot 0 on IRF member device 1 to –20°C (68°F), the warning threshold to 70°C (158°F), and the alarming threshold to 90°C (194°F).
<Sysname> system-view
[sysname] temperature-limit chassis 1 slot 0 inflow 1 -20 70 90
time at
Use time at to specify an execution date and time for a one-time schedule.
Use undo time to remove the execution time configuration for a schedule.
Syntax
time at time date
undo time
Default
No execution time or date is specified for a schedule.
Views
Schedule view
Predefined user roles
network-admin
mdc-admin
Parameters
time: Specifies the schedule execution time in the format hh:mm, where hh is in the range of 0 to 23, and mm is in the range of 0 to 59.
date: Specifies the schedule execution date in the format MM/DD/YYYY or YYYY/MM/DD. The YYYY value is in the range of 2000 to 2035, the MM value is in the range of 1 to 12, and the value range of DD depends on the month value.
Usage guidelines
The specified time (date plus time) must be later than the current system time.
The time at command, the time once command, and the time repeating command overwrite one another, whichever is configured last takes effect.
Examples
# Configure the device to execute schedule saveconfig at 01:01 a.m. on May 11, 2012.
<Sysname> system-view
[Sysname] scheduler schedule saveconfig
[Sysname-schedule-saveconfig] time at 1:1 2012/05/11
Related commands
scheduler schedule
time once
Use time once to specify one or more execution days and the execution time for a one-time schedule.
Use undo time to remove the execution time configuration for a schedule.
Syntax
time once at time [ month-date month-day | week-day week-day&<1-7> ]
time once delay time
undo time
Default
No execution time or day is specified for a schedule.
Views
Schedule view
Predefined user roles
network-admin
mdc-admin
Parameters
at time: Specifies the execution time in the format hh:mm, where hh is in the range of 0 to 23, and mm is in the range of 0 to 59.
month-date month-day: Specifies the day in a month for the schedule, in the range of 1 to 31. If you specify a day that does not exist in the current month, the configuration takes effect on the day in the next month.
week-day week-day&<1-7>: Specifies one or more week days for the schedule. Valid values include Mon, Tue, Wed, Thu, Fri, Sat, and Sun. <1-7> means that you can specify one to 7 week days. To specify multiple week days, separate the values with spaces.
delay time: Specifies the delay time for executing the schedule, in the format hh:mm or mm. This argument can consist up to 6 characters. When in the format hh:mm, mm must be in the range of 0 to 59.
Usage guidelines
After you specify an execution day and time for a schedule, the schedule will be executed once at the specified time point or each specified time point. If the specified time, the specified day in the month, or a specified day in a week is already past, the schedule will be executed at the specified time next day, the specified day in the next month, or the specified day in the next week.
The time at command, the time once command, and the time repeating command overwrite one another, whichever is configured last takes effect.
Examples
# Configure the device to execute schedule saveconfig once at 15:00.
<Sysname> system-view
[Sysname] scheduler schedule saveconfig
[Sysname-schedule-saveconfig] time once at 15:00
Schedule starts at 15:00 5/11/2011.
# Configure the device to execute schedule saveconfig once at 15:00 on the coming 15th day in a month.
<Sysname> system-view
[Sysname] scheduler schedule saveconfig
[Sysname-schedule-saveconfig] time once at 15:00 month-date 15
# Configure the device to execute schedule saveconfig at 12:00 p.m. on the coming Monday and Friday.
<Sysname> system-view
[Sysname] scheduler schedule saveconfig
[Sysname-schedule-saveconfig] time once at 12:00 week-day mon fri
# Configure the device to execute schedule saveconfig after 10 minutes.
<Sysname> system-view
[Sysname] scheduler schedule saveconfig
[Sysname-schedule-saveconfig] time once delay 10
Related commands
scheduler schedule
time repeating
Use time repeating to specify an execution time table for a periodic schedule.
Use undo time to remove the execution time configuration for a schedule.
Syntax
time repeating [ at time [ date ] ] interval interval-time
time repeating at time [ month-date [ month-day | last ] | week-day week-day&<1-7> ]
undo time
Default
No execution time table is specified for a schedule.
Views
Schedule view
Predefined user roles
network-admin
mdc-admin
Parameters
at time: Specifies the execution time in the format hh:mm, where hh is in the range of 0 to 23, and mm is in the range of 0 to 59. If you do not specify this option, the current system time is used as the execution time.
date: Specifies the start date for the periodic schedule, in the format MM/DD/YYYY or YYYY/MM/DD. The YYYY value is in the range of 2000 to 2035, the MM value is in the range of 1 to 12, and the value range of DD depends on the month value. If you do not specify this argument, the execution start date is the first day when the specified time arrives.
interval interval-time: Specifies the execution time interval in the format hh:mm or mm. This argument can consist up to 6 characters. When in the format hh:mm, mm must be in the range of 0 to 59. When in the format mm, this argument must be at least one minute.
month-date [ month-day | last ]: Specifies a day in a month, in the range 1 to 31. The last keyword indicates the last day of a month.
week-day week-day&<1-7>: Specifies one or more week days. Valid values include Mon, Tue, Wed, Thu, Fri, Sat, and Sun. <1-7> means that you can specify one to seven week days. To specify multiple week days, separate the values with spaces.
Usage guidelines
The time repeating [ at time [ date ] ] interval interval-time command configures the device to execute a schedule at an interval from the specified time on.
The time repeating at time [ month-date [ month-day | last ] | week-day week-day&<1-7> ] command configures the device to execute a schedule at the specified time on every specified day in a month or week.
The time at command, the time once command, and the time repeating command overwrite one another, whichever is configured last takes effect.
Examples
# Configure the device to execute schedule saveconfig once a hour from 8:00 a.m. on.
<Sysname> system-view
[Sysname] scheduler schedule saveconfig
[Sysname-schedule-saveconfig] time repeating at 8:00 interval 60
# Configure the device to execute schedule saveconfig at 12:00 p.m. every day.
<Sysname> system-view
[Sysname] scheduler schedule saveconfig
[Sysname-schedule-saveconfig] time repeating at 12:00
# Configure the device to execute schedule saveconfig at 8:00 a.m. on the 5th of every month.
<Sysname> system-view
[Sysname] scheduler schedule saveconfig
[Sysname-schedule-saveconfig] time repeating at 8:00 month-date 5
# Configure the device to execute schedule saveconfig at 8:00 a.m. on the last day of every month.
<Sysname> system-view
[Sysname] scheduler schedule saveconfig
[Sysname-schedule-saveconfig] time repeating at 8:00 month-date last
# Configure the device to execute schedule saveconfig at 8:00 a.m. every Friday and Saturday.
<Sysname> system-view
[Sysname] scheduler schedule saveconfig
[Sysname-schedule-saveconfig] time repeating at 8:00 week-day fri sat
Related commands
scheduler schedule
transceiver phony-alarm-disable
Use transceiver phony-alarm-disable to disable alarm traps for transceiver modules.
Use undo transceiver phony-alarm-disable to restore the default.
Syntax
transceiver phony-alarm-disable
undo transceiver phony-alarm-disable
Default
Alarm traps are enabled for transceiver modules.
Views
System view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
If you install a transceiver module that has no vendor name, the system repeatedly outputs traps and logs to notify the user to replace the module. To continue to use such a transceiver module that is manufactured or customized by H3C but has no vendor information, you can disable alarm traps so the system stops outputting alarm traps.
Examples
# Disable alarm traps for transceiver modules.
<Sysname> system-view
[Sysname] transceiver phony-alarm-disable
usb disable
Use usb disable to disable all USB interfaces.
Use undo usb disable to enable all USB interfaces.
Syntax
usb disable
undo usb disable
Default
All USB interfaces are enabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
This command is supported only on the default MDC.
You can use USB interfaces to upload or download files. By default, all USB interfaces are enabled. You can disable USB interfaces as needed.
Examples
# Enable all USB interfaces.
<Sysname> system-view
[Sysname] undo usb disable