01-Fundamentals Configuration Guide

HomeSupportSwitchesH3C S9500E Switch SeriesConfigure & DeployConfiguration GuidesH3C S9500E Configuration Guides-Release1828P04-6W18201-Fundamentals Configuration Guide
08-Device Management Configuration
Title Size Download
08-Device Management Configuration 224.22 KB

Device management includes monitoring the operating status of devices and configuring their running parameters.

Storage media include Flash, compact Flash (CF), and universal serial bus (USB). Flash is exemplified in this document.

The configuration tasks in this document are all optional and independent from one another.

Configuring the device name

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

To configure the device name:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Configure the device name.

sysname sysname

Optional.

By default, the device name is H3C.

 

Changing the system time

You must synchronize your device with a trusted time source by using NTP or changing the system time before you run it on the network. Network management depends on an accurate system time setting, because the timestamps of system messages and logs use the system time.

In a small-sized network, you can manually set the system time of each device.

Configuration guidelines

You can change the system time by configuring the relative time, time zone, and daylight saving time. The configuration result depends on their configuration order (see Table 1). In the first column of this table, 1 represents the clock datetime command, 2 represents the clock timezone command, and 3 represents the clock summer-time command. To verify the system time setting, use the display clock command. This table assumes that the original system time is 2005/1/1 1:00:00.

Table 1 System time configuration results

Command

Effective system time

Configuration example

System time

1

date-time

clock datetime 1:00 2007/1/1

01:00:00 UTC Mon 01/01/2007.

2

Original system time ± zone-offset

clock timezone zone-time add 1

02:00:00 zone-time Sat 01/01/2005.

1, 2

date-time ± zone-offset

clock datetime 2:00 2007/2/2

clock timezone zone-time add 1

03:00:00 zone-time Fri 02/02/2007.

2, 1

date-time

clock timezone zone-time add 1

clock datetime 3:00 2007/3/3

03:00:00 zone-time Sat 03/03/2007.

3

The original system time outside the daylight saving time range:

The system time does not change until it is in the daylight saving time range.

clock summer-time ss one-off 1:00 2006/1/1 1:00 2006/8/8 2

01:00:00 UTC Sat 01/01/2005.

The original system time in the daylight saving time range:

The system time increases by summer-offset.

clock summer-time ss one-off 00:30 2005/1/1 1:00 2005/8/8 2

03:00:00 ss Sat 01/01/2005.

NOTE:

If the original system time plus summer-offset is beyond the daylight saving time range, the original system time does not change. After you disable the daylight saving setting, the system time automatically decreases by summer-offset.

1, 3

date-time outside the daylight saving time range:

date-time

clock datetime 1:00 2007/1/1

clock summer-time ss one-off 1:00 2006/1/1 1:00 2006/8/8 2

01:00:00 UTC Mon 01/01/2007.

date-time in the daylight saving time range:

date-time + summer-offset

clock datetime 8:00 2007/1/1

clock summer-time ss one-off 1:00 2007/1/1 1:00 2007/8/8 2

10:00:00 ss Mon 01/01/2007.

NOTE:

If the date-time plus summer-offset is outside the daylight saving time range, the system time equals date-time. After you disable the daylight saving setting, the system time automatically decreases by summer-offset.

3, 1

(date-time outside the daylight saving time range)

date-time

clock summer-time ss one-off 1:00 2007/1/1 1:00 2007/8/8 2

clock datetime 1:00 2008/1/1

01:00:00 UTC Tue 01/01/2008.

3, 1

(date-time in the daylight saving time range)

date-timesummer-offset outside the daylight saving time range:

date-timesummer-offset

clock summer-time ss one-off 1:00 2007/1/1 1:00 2007/8/8 2

clock datetime 1:30 2007/1/1

23:30:00 UTC Sun 12/31/2006.

date-timesummer-offset in the daylight saving time range:

date-time

clock summer-time ss one-off 1:00 2007/1/1 1:00 2007/8/8 2

clock datetime 3:00 2007/1/1

03:00:00 ss Mon 01/01/2007.

2, 3 or 3, 2

Original system clock ± zone-offset outside the daylight saving time range:

Original system clock ± zone-offset

clock timezone zone-time add 1

clock summer-time ss one-off 1:00 2007/1/1 1:00 2007/8/8 2

02:00:00 zone-time Sat 01/01/2005.

Original system clock ± zone-offset outside the daylight saving time range:

Original system clock ± zone-offset + summer-offset

clock timezone zone-time add 1

clock summer-time ss one-off 1:00 2005/1/1 1:00 2005/8/8 2

System clock configured: 04:00:00 ss Sat 01/01/2005.

1, 2 , 3 or 1, 3, 2

date-time ± zone-offset outside the daylight saving time range:

date-time ± zone-offset

clock datetime 1:00 2007/1/1

clock timezone zone-time add 1

clock summer-time ss one-off 1:00 2008/1/1 1:00 2008/8/8 2

02:00:00 zone-time Mon 01/01/2007.

date-time ± zone-offset outside the daylight saving time range:

date-time ± zone-offset + summer-offset

clock datetime 1:00 2007/1/1

clock timezone zone-time add 1

clock summer-time ss one-off 1:00 2007/1/1 1:00 2007/8/8 2

04:00:00 ss Mon 01/01/2007.

2, 3, 1 or 3, 2, 1

date-time outside the daylight saving time range:

date-time

clock timezone zone-time add 1

clock summer-time ss one-off 1:00 2008/1/1 1:00 2008/8/8 2

clock datetime 1:00 2007/1/1

01:00:00 zone-time Mon 01/01/2007.

date-time in the daylight saving time range, but date-time – summer-offset outside the summer-time range:

date-time – summer-offset

clock timezone zone-time add 1

clock summer-time ss one-off 1:00 2008/1/1 1:00 2008/8/8 2

clock datetime 1:30 2008/1/1

23:30:00 zone-time Mon 12/31/2007.

Both date-time and date-time – summer-offset in the daylight saving time range:

date-time

clock timezone zone-time add 1

clock summer-time ss one-off 1:00 2008/1/1 1:00 2008/8/8 2

clock datetime 3:00 2008/1/1

03:00:00 ss Tue 01/01/2008.

 

Configuration procedure

To change the system time:

 

Step

Command

Remarks

3.     Set the time and date.

clock datetime time date

Optional.

Available in user view.

4.     Enter system view.

system-view

N/A

5.     Set the time zone.

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

Optional.

Universal time coordinated (UTC) time zone by default.

6.     Set a daylight saving time scheme.

·     Set a non-recurring scheme:
clock summer-time zone-name one-off start-time start-date end-time end-date add-time

·     Set a recurring scheme:
clock summer-time zone-name repeating start-time start-date end-time end-date add-time

Optional.

Use either command.

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

 

Enabling displaying the copyright statement

The device by default displays the copyright statement when a Telnet or SSH user logs in, or when a console user quits user view. You can disable or enable the function as needed. The following is a sample copyright statement:

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

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

* Without the owner's prior written consent,                                 *

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

To enable displaying the copyright statement:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enable displaying copyright statement.

copyright-info enable

Optional.

Enabled by default.

 

Configuring banners

Banners are messages that the system displays during user login.

The system supports the following banners:

·     Legal banner—Appears after the copyright or license statement. To continue login, the user must enter Y or press Enter. To quit the process, the user must enter N. Y and N are case-insensitive.

·     Message of the Day (MOTD) banner—Appears after the legal banner and before the login banner.

·     Login banner—Appears only when password or scheme authentication has been configured.

·     Incoming banner—Appears for Modem users.

·     Shell banner—Appears for non-Modem users.

Banner input modes

You can configure a single-line banner or a multi-line banner:

·     Single-line banner.

A single-line banner must be input in the same line as the command. The start and end delimiters for the banner can be any printable character, but they must be the same and must not be included in the banner. The input text, including the command keywords and the delimiters, cannot exceed 510 characters. Do not press Enter before you input the end delimiter.

For example, you can configure the shell banner "Have a nice day." as follows:

<System> system-view

[System] header shell %Have a nice day.%

·     Multi-line banner.

A multi-line banner can be up to 2000 characters. To input a multi-line banner, use one of the following methods:

¡     Method 1—Press Enter after the final command keyword. At the system prompt, enter the banner message and end with the delimiter character %. For example, you can configure the banner “Have a nice day. Please input the password.” as follows:

<System> system-view

[System] header shell

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

Have a nice day.

Please input the password.%

¡     Method 2—After you type the final command keyword, type any character as the start delimiter for the banner message and press Enter. At the system prompt, type the banner message and end the final line with a delimiter that is the same as the start delimiter. For example, you can configure the banner “Have a nice day. Please input the password.” as follows:

<System> system-view

[System] header shell A

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

Have a nice day.

Please input the password.A

¡     Method 3—After you type the final keyword, type the start delimiter and part of the banner message and press Enter. At the system prompt, enter the rest of the banner and end the final line with a delimiter that is the same as the start delimiter. Using this method, you can use any character as the start and end delimiters but must make sure that it is not the same as the end character of the message text in the first line. For example, you can configure the banner “Have a nice day. Please input the password.” as follows:

<System> system-view

[System] header shell AHave a nice day.

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

Please input the password.A

Configuration procedure

To configure a banner:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Configure the incoming banner.

header incoming text

Optional.

3.     Configure the login banner.

header login text

Optional.

4.     Configure the legal banner.

header legal text

Optional.

5.     Configure the shell banner.

header shell text

Optional.

6.     Configure the MOTD banner.

header motd text

Optional.

 

Configuring the exception handling method

In standalone mode, when the system detects any software abnormality on the active main processing unit (MPU), it handles the situation with one of the following methods:

·     reboot—The device automatically reboots the failed active MPU to recover from the error condition.

·     maintain—The device stays in the error condition so you can collect complete data, including error messages, for diagnosis. Using this method, you must manually reboot the device.

The system always reboots an interface card or the auxiliary CPU system when an exception occurs to them.

To configure the exception handling method:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Configure the exception handling method of the MPUs.

system-failure { maintain | reboot }

Optional.

By default, an MPU reboots when an exception occurs to it.

 

In IRF mode, when the system detects any software abnormality on the active MPU on an IRF member device, it handles the situation with one of the following two methods:

·     reboot—The device automatically reboots the failed active MPU to recover from the error condition.

·     maintain—The device stays in the error condition so you can collect complete data, including error messages, for diagnosis. Using this method, you must manually reboot the device.

The system always reboots an interface card or the auxiliary CPU system when an exception occurs to them.

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

To configure the exception handling method:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Configure the exception handling method of the MPUs.

system-failure { maintain | reboot }

By default, an MPU reboots when an exception occurs to it.

 

 

NOTE:

·     The system always reboots an interface card or the auxiliary CPU system when an exception occurs to them.

·     The exception handling method is effective only for the failed card, and does not influence the functions of other cards or the IRF fabric.

 

Rebooting the switch

CAUTION

CAUTION:

Device reboot can interrupt network services.

 

You can reboot the switch in one of the following ways to recover from an error condition:

·     Reboot the switch immediately at the CLI.

·     At the CLI, schedule a reboot to occur at a specific time and date or after a delay.

·     Power off and then re-power on the switch. This method might cause data loss and hardware damage, and is the least preferred method.

Reboot at the CLI enables easy remote device maintenance.

Configuration guidelines

·     To avoid data loss, use the save command to save the current configuration before a reboot.

·     Use the display startup and display boot-loader commands to check that you have correctly set the startup configuration file and the main system software image file. If the main system software image file has been corrupted or does not exist, the device cannot reboot. You must re-specify a main system software image file, or power off the device and then power it on so the system can reboot with the backup system software image file.

·     If the device has only one MPU, rebooting the MPU causes the device to reboot. If the device has two MPUs, rebooting the active MPU causes the active MPU to reboot and an active/standby switchover. You cannot use the reboot command to reboots a standby MPU. To reboot a standby MPU, use the slave restart command (see High Availability Command Reference).

Configuration procedure

To reboot a switch, perform one of these commands in user view:

 

Task

Command

Remarks

Reboot a switch.

·     Reboot a card, or the whole system immediately (in standalone mode):
reboot
[ slot slot-number ]

·     Reboot a card, a member switch, or the whole system immediately (in IRF mode):
reboot [ chassis chassis-number [ slot slot-number ] ]

Use either command.

If you do not specify a slot, the switch reboots.

 

To schedule a device reboot, perform one of the following commands in user view:

 

Task

Command

Remarks

Schedule a reboot.

·     Schedule a reboot to occur at a specific time and date:
schedule reboot at hh:mm [ date ]

·     Schedule a reboot to occur after a delay:
schedule reboot delay { hh:mm | mm }

Use either method.

The scheduled reboot function is disabled by default.

NOTE:

Changing any clock setting can cancel the reboot schedule.

 

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

Configuring the system operating mode

In different system operating modes, the system adjusts the hardware resources to meet the requirements of different services. The switch has the following system operating modes:

·     advance—Advanced mode

·     bridgee—Enhanced L2 mode

·     routee—Enhanced L3 mode

·     standard—Standard mode

·     advance hybrid—Advanced hybrid mode

·     bridgee hybrid—Enhanced L2 hybrid mode

·     routee hybrid—Enhanced L3 hybrid mode

·     standard hybrid—Standard hybrid mode

Among the operating modes, advance hybrid, bridgee hybrid, routee hybrid, and standard hybrid can be called the hybrid mode. An IRF member switch cannot operate in hybrid mode. A switch operating in hybrid mode can operate in standalone mode rather than in IRF mode.

H3C recommends that you restart the switch immediately to make this configuration take effect.

To configure the system operating mode:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Configure the system operating mode.

system working mode { { advance | bridgee | routee | standard } [ hybrid ] }

By default, the system operating mode is standard.

 

Support for the system operating mode depends on the card type, as listed in the following matrix.

 

System operating mode

EB card

EC card

EF card

Interface base card

OAA card

standard

Supported

Supported

Supported

Not supported

Supported

bridgee

Not supported

Supported

Supported

Not supported

Supported

routee

Not supported

Supported

Supported

Not supported

Supported

advance

Not supported

Not supported

Supported

Not supported

Not supported

standard hybrid

Supported

Supported

Supported

Supported

Supported

bridgee hybrid

Not supported

Supported

Supported

Supported

Supported

routee hybrid

Not supported

Supported

Supported

Supported

Supported

advance hybrid

Not supported

Not supported

Supported

Supported

Not supported

 

An EB card has a silkscreen ended with EB, for example, LSR1GP48LEB1. An EC or EF card has a silkscreen ended with EC or EF.

An interface base card refers to the card with the silkscreen LSR1LN1BNL1 or LSR1LN2BNL1.

For more information about OAA card models, see OAA Configuration Guide.

The default values of some commands vary with system operating modes. Those parameters that do not vary with different system operating modes are not listed in the table. The following table illustrates the details.

 

Command

Operating mode and default value

standard

bridgee

routee

advance

standard hybrid

bridgee hybrid

routee hybrid

advance hybrid

multicast-vlan ipv6 entry-limit limit

511

4095

4095

4095

511

1024

1024

1024

multicast-vlan entry-limit limit

2047

4096

16384

30720

2047

4096

16384

16384

mac-table limit mac-limit-num

Not supported

131072

65536

131072

Not supported

131072

65536

131072

multicast forwarding-table route-limit limit

2047

4096

16384

30720

2047

4096

13824

13824

mld group-limit limit

2048

8192

8192

8192

2048

8192

8192

8192

ip verify source max-entries number

1536

7680 (without the acl ipv6 enable command)

3584 (with the acl ipv6 enable command)

7680 (without the acl ipv6 enable command)

3584 (with the acl ipv6 enable command)

32256 (without the acl ipv6 enable command)

15872 (with the acl ipv6 enable command)

1536

7680 (without the acl ipv6 enable command)

3584 (with the acl ipv6 enable command)

7680 (without the acl ipv6 enable command)

3584 (with the acl ipv6 enable command)

32256 (without the acl ipv6 enable command)

15872 (with the acl ipv6 enable command)

ip verify source max-entries number

1536

3584

3584

15872

1536

3584

3584

15872

 

Scheduling jobs

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

Job configuration methods

You can configure jobs by using a non-modular or modular method. Use the non-modular method for a one-time command execution and use non-modular method for complex maintenance work.

Table 2 A comparison of non-modular and modular methods

Comparison item

Scheduling a job by using the non-modular method

Scheduling a job using the modular method

Configuration method

Configure all elements in one command.

Separate job, view, and time settings.

Can multiple scheduled jobs be configured?

No.

Yes.

Can a job contain multiple commands?

No.

If you use the schedule job command multiple times, the most recent configuration takes effect.

Yes

You can use the time command in job view to configure commands to be executed at different time points.

Supported views

User view and system view. In the schedule job command, shell represents user view, and system represents system view.

All views. In the time command, monitor represents user view.

Supported commands

Commands in user view and system view.

Commands in all views.

Can a job be repeatedly executed?

No.

Yes.

Can a job be saved?

No.

Yes.

Can a job be backed up to the standby MPUs?

No.

Yes.

 

Configuration guidelines

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

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

·     The jobs run in the background without displaying any messages except log, trap and debugging messages.

·     Using the modular method:

¡     Every job can have only one view and up to 10 commands. If you specify multiple views, the view specified most recently takes effect.

¡     Input a view name in its complete form. Most commonly used view names include monitor for user view, system for system view, GigabitEthernet x/x/x for Ethernet interface view, and Vlan-interfacex for VLAN interface view.

¡     The time ID (time-id) must be unique in a job. If two time and command bindings have the same time ID, the most recent configuration takes effect.

Scheduling a job by using the non-modular method

To schedule a job, perform one of the following commands in user view:

 

Task

Command

Remarks

Schedule a job.

·     Schedule a job to run a command at a specific time:
schedule job at time [ date ] view view command

·     Schedule a job to run a command after a delay:
schedule job delay time view view command

Use either command.

NOTE:

·     If you execute the schedule job command multiple times, the most recent configuration takes effect.

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

 

Scheduling a job using the modular method

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Create a job and enter job view.

job job-name

N/A

3.     Specify the view in which the commands in the job run.

view view-name

You can specify only one view for a job. The job executes all commands in the specified view.

4.     Add commands to the job.

·     Configure a command to run at a specific time and date:
time time-id at time date command command

·     Configure a command to run at a specific time:
time
time-id { one-off | repeating } at time [ month-date month-day | week-day week-daylist ] command command

·     Configure a command to run after a delay:
time
time-id { one-off | repeating } delay time command command

Use any of the commands.

NOTE:

Changing a clock setting does not affect the schedule set by using the time at or time delay command.

 

Scheduled job configuration example

Network requirements

Configure scheduled jobs on the device to enable interfaces GigabitEthernet 3/0/1, GigabitEthernet 3/0/2, and GigabitEthernet 3/0/3 at 8:00 and disabled them at 18:00 on working days every week, to control the access of the PCs connected to these interfaces.

Figure 1 Network diagram

 

Configuration procedure

# Enter system view.

<Sysname> system-view

# Create scheduled job pc1, and enter its view.

[Sysname] job pc1

# Configure the job to be executed in the view of GigabitEthernet 3/0/1.

[Sysname-job-pc1] view GigabitEthernet 3/0/1

# Configure the device to start GigabitEthernet 3/0/1 at 8:00 on working days every week.

[Sysname-job-pc1] time 1 repeating at 8:00 week-day mon tue wed thu fri command undo shutdown

# Configure the device to shut down GigabitEthernet 3/0/1 at 18:00 on working days every week.

[Sysname-job-pc1] time 2 repeating at 18:00 week-day mon tue wed thu fri command shutdown

[Sysname-job-pc1] quit

# Create scheduled job pc2, and enter its view.

[Sysname] job pc2

# Configure the job to be executed in the view of GigabitEthernet 3/0/2.

[Sysname-job-pc2] view GigabitEthernet 3/0/2

# Configure the device to start GigabitEthernet 3/0/2 at 8:00 on working days every week.

[Sysname-job-pc2] time 1 repeating at 8:00 week-day mon tue wed thu fri command undo shutdown

# Configure the device to shut down GigabitEthernet 3/0/2 at 18:00 on working days every week.

[Sysname-job-pc2] time 2 repeating at 18:00 week-day mon tue wed thu fri command shutdown

[Sysname-job-pc2] quit

# Create scheduled job pc3, and enter its view.

[Sysname] job pc3

# Configure the job to be executed in the view of GigabitEthernet 3/0/3.

[Sysname-job-pc3] view GigabitEthernet 3/0/3

# Configure the device to start GigabitEthernet 3/0/3 at 8:00 on working days every week.

[Sysname-job-pc3] time 1 repeating at 8:00 week-day mon tue wed thu fri command undo shutdown

# Configure the device to shut down GigabitEthernet 3/0/3 at 18:00 on working days every week.

[Sysname-job-pc3] time 2 repeating at 18:00 week-day mon tue wed thu fri command shutdown

[Sysname-job-pc3] quit

# Display information about scheduled jobs.

[Sysname] display job

Job name: pc1

  Specified view: GigabitEthernet3/0/1

  Time 1: Execute command undo shutdown at 08:00 Mondays Tuesdays Wednesdays Thursdays Fridays

  Time 2: Execute command shutdown at 18:00 Mondays Tuesdays Wednesdays Thursdays Fridays

Job name: pc2

  Specified view: GigabitEthernet3/0/2

  Time 1: Execute command undo shutdown at 08:00 Mondays Tuesdays Wednesdays Thursdays Fridays

  Time 2: Execute command shutdown at 18:00 Mondays Tuesdays Wednesdays Thursdays Fridays

Job name: pc3

  Specified view: GigabitEthernet3/0/3

  Time 1: Execute command undo shutdown at 08:00 Mondays Tuesdays Wednesdays Thursdays Fridays

  Time 2: Execute command shutdown at 18:00 Mondays Tuesdays Wednesdays Thursdays Fridays

Configuring the port status detection timer

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, and the loop detection function in shutdown mode shuts down a port when a loop is detected on the port. You can set the port status detection timer so the device restores the port to its original physical status if the port is still down when the timer expires.

To configure the port status detection timer:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Configure the port status detection timer.

shutdown-interval time

Optional.

30 seconds by default.

 

Configuring temperature thresholds for a card

You can set the temperature threshold to monitor the temperature of a card.

The switch supports lower temperature threshold, warning temperature threshold, and alarming temperature threshold.

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

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

To configure temperature thresholds for a card:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Configure temperature thresholds for a card.

·     In standalone mode:
temperature-limit slot slot-number { inflow | hotspot | outflow } sensor-num LowerLimit WarningLimit  [ AlarmLimit ]

·     In IRF mode:
temperature-limit chassis chassis-number slot slot-number { inflow | hotspot | outflow } sensor-num LowerLimit WarningLimit  [ AlarmLimit ]

Optional.

Use either command.

 

Isolating and diagnosing an interface card

When the switch detects a card failure or upgrades the logic of the CPU daughter card on an interface card, you can isolate the faulty card or the CPU daughter card to prevent it from forwarding data packets. This operation allows for convenient on-site diagnosis or upgrading while causing no interference on the operation of the system and services of other cards.

After isolating a card, you can use the test diag-offline command to collect the diagnosis information of the card.

Configuration guidelines

·     When you upgrade the logic of a interface card, isolate the interface card first.

·     You can use the display device command to view whether a card is isolated (or in offline state).

·     When you execute the test diag-offline command, the path where the diagnosis information is saved is also displayed following the diagnosis information on the terminal. For example, you can see flash:/diag_slot3_20080522_103458.txt.

·     H3C recommends that you send the diagnosis information to qualified engineers for analysis.

Configuration procedure

To isolate and diagnose a card:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Isolate a card.

·     In standalone mode:
board-offline slot slot-number

·     In IRF mode:
board-offline chassis chassis-number slot slot-number

Use either command.

No card is isolated by default.

The active MPU cannot be isolated. If the standby MPU is isolated, the load mode of the active MPU becomes load-single.

3.     Diagnose the card problem.

·     In standalone mode:
test diag-offline slot slot-number

·     In IRF mode:
test diag-offline chassis chassis-number slot slot-number

Use either command.

The diagnosis information will be displayed and saved in logs under the root directory of the flash. Each log is named in the format of diag_slot_time, where slot indicates the location of the card and time indicates when the diagnosis operation is performed.

This command can be executed for only isolated cards. Other commands cannot take effect for such a card.

 

Powering on and powering off a card

When the power supply is not sufficient, the switch automatically adjusts power supply to the cards according to a specific mechanism. You can also use the display power-supply command to view the power supply conditions of the cards, and power on or power off some cards to adjust the available power according to the actual network services.

To power on a card, perform one of these commands in user view:

 

Task

Command

Remarks

Power on a card.

·     In standalone mode:
power-supply on slot slot-number

·     In IRF mode:
power-supply on chassis chassis-number slot slot-number

Optional.

Use either command.

The specified card cannot be the MPU.

 

To power off a card, perform one of these commands in user view:

 

Task

Command

Remarks

Power off a card.

·     In standalone mode:
power-supply off slot slot-number

·     In IRF mode:
power-supply off chassis chassis-number slot slot-number

Optional.

Use either command.

The specified card cannot be the MPU.

 

Configuring in-service hardware failure diagnosis and failure protection

CAUTION

CAUTION:

Before configuring the hardware-failure-protection auto-down command on a port, make sure that a backup link exists to avoid service interruption in case the port is shut down.

 

A hardware failure might cause traffic forwarding failures and service interruption. To improve the automatic failure detection and handling capabilities of the switch, you can configure in-service hardware failure diagnosis and failure protection.

The in-service hardware failure diagnosis and failure protection feature covers:

·     In-service hardware failure detection for chips, cards, and the forwarding service, and automatic fix actions taken for the detected failures.

·     Failure protection for ports. When a hardware failure is detected on a port, the switch automatically shuts down the port.

·     Failure protection for aggregation groups. When a hardware failure is detected on a member port of an aggregation group, if the member port is not configured with the hardware-failure-protection auto-down command but it is not the final port in up state in the aggregation group, the port is shut down automatically; if the member port is not configured with the command and it is the final port in up state in the aggregation group, the port will not be shut down; if the member port is configured with the command, the port is shut down automatically no matter whether it is the final port in up state in the aggregation group.

Configuration guidelines

·     Because hardware failure protection is enabled on member ports of an aggregation group, use the undo hardware-failure-protection auto-down command to disable this feature for the member ports of all aggregation groups before you enable hardware failure protection for the aggregation groups.

·     If a port is automatically shut down due to hardware failure protection, its status displayed with the display interface command is Protect DOWN. To bring up the port, use the undo shutdown command on the port.

·     If a card is isolated or its software is not allowed to be loaded due to hardware failure fix operations, you can remove the card and then install it to recover the card status.

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

Configuration procedure

To configure in-service hardware failure diagnosis and failure protection:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enable in-service hardware failure detection and configure fix actions taken in case of hardware failures..

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

The fix actions taken in case of hardware failures include:

·     off—Takes no action.

·     warning—Sends warning messages.

·     reset—Resets the failed card.

·     isolate—Shuts down the failed port, isolates the failed card, prohibits the failed card from loaded, or powers off the failed card to reduce the impact of the failure to the system.

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

3.     Enable hardware failure protection for aggregation groups.

hardware-failure-protection aggregation

Optional.

Disabled by default.

This command is effective only when the fix action is configured as isolate.

4.     Enter Ethernet interface view.

interface interface-type interface-number

N/A

5.     Configure hardware failure protection for the port.

hardware-failure-protection auto-down

Optional.

Enabled by default.

This command is effective only when the fix action is configured as isolate.

 

The hardware-failure-protection aggregation and hardware-failure-protection auto-down command do not take effect on a port in either of the following cases:

·     The port is configured with the loopback { external | internal } command.

·     The port is configured with the port up-mode command.

·     The port is configured as an IRF physical port.

For information about IRF physical ports, see IRF Configuration Guide.

Configuring the load mode for the active MPU and the standby MPU

The following load modes are available for the active MPU and standby MPU:

·     load-balance mode: Load ( for processing and forwarding packets) is balanced between the active MPU and standby MPU.

·     load-single mode: The active MPU processes and forwards packets, whereas the standby MPU only backs up data and monitors the state of the active MPU.

The load-balance mode is valid only when both the active MPU and standby MPU are in their slots. If only the active MPU is available, the active MPU will automatically switch to the load-single mode after the load-balance mode is configured.

The models of the active MPU and standby MPU must be consistent. Otherwise, the standby MPU cannot start correctly.

To configure the load mode for the active MPU and standby MPU:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Configure the load mode.

·     Configure the load mode for the active MPU and standby MPU (in standalone mode):
xbar { load-balance | load-single }

·     Configure the load mode for the active MPUs and standby MPUs on member devices (in IRF mode):
xbar chassis chassis-number { load-balance | load-single }

Optional.

Use either command.

load-balance mode by default.

 

Configuring the size of the buffer shared by all interfaces on an interface card

An interface card uses a buffer with a fixed size to buffer the packets received and sent. A buffer comprises multiple storage units. It is divided into two areas: fixed buffer and shared buffer. The fixed buffer is allocated to the interfaces according to a certain algorithm, and the shared buffer is shared by all interfaces. When the traffic of an interface becomes heavy, and the fixed buffer cannot provide sufficient memory, the shared buffer provides temporary memory for the interface.

By default, the fixed buffer and the shared buffer contain a fixed number of storage units. You can configure the number of storage units in the shared buffer as needed. Because the total number of storage units in a buffer is fixed, the number of storage units in the fixed buffer will change after your configuration. You can tune the shared buffer area depending on traffic patterns. If transient large traffic bursts occur on some interfaces, you can expand the shared buffer to accommodate the bursts to prevent traffic loss. If transient small traffic bursts often occur on the interfaces, you can decrease the shared buffer so that each port can get more dedicated buffer memory.

To set the size in blocks of the receive or transmit buffer shared by all interfaces on an interface card:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Set the size in blocks of the receive or transmit buffer shared by all interfaces on an interface card.

·     In standalone mode:
buffer-manage { ingress | egress } slot slot-number share-size size-value

·     In IRF mode:
buffer-manage { ingress | egress } chassis chassis-number slot slot-number share-size size-value

Optional.

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

 

Configuring automatic speed adjustment mode for fans

You can configure either of the following automatic speed adjustment modes for fans as required:

·     Low temperature mode: In this mode, the fans operate at a high speed to ensure low temperature for the switch.

·     Silent mode: In this mode, the fans operate at a low speed with low noise, but the temperature is a little higher than that in lower temperature mode. This mode is suitable for a noise-sensitive environment.

To configure the automatic speed adjustment mode, perform one of these commands in system view:

 

Task

Command

Remarks

Configure the automatic speed adjustment mode.

·     In standalone mode:
fan auto-control-mode { low-temperature-mode | silence-mode }

·     In IRF mode:
fan auto-control-mode { low-temperature-mode | silence-mode } chassis chassis-number

Use either command.

The switch operates in low temperature mode by default.

 

Clearing unused 16-bit interface indexes

The device must maintain persistent 16-bit interface indexes and keep one interface index match one interface name for network management. After deleting a logical interface, the device retains its 16-bit interface index so the same index can be assigned to the interface at interface re-creation.

To avoid index depletion causing interface creation failures, you can clear all 16-bit indexes that have been assigned but not in use. The operation does not affect the interface indexes of the interfaces that have been created but the indexes assigned to re-recreated interfaces might change.

A confirmation is required when you execute this command. If you fail to make a confirmation within 30 seconds or enter N to cancel the operation, the command is executed.

To clear unused 16-bit interface indexes:

 

Task

Command

Remarks

Clear unused 16-bit interface indexes.

reset unused porttag

Available in user view.

 

Enabling automatic forwarding path check

When the switch is operating, traffic forwarding exceptions might occur due to hardware failures or other reasons. You can enable automatic forwarding path check so that the switch gives prompts when a forwarding exception occurs. According to the prompts, you can troubleshoot the problem.

To enable automatic forwarding path check:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enable automatic forwarding path check.

forward-path check { enable | disable }

Enabled by default.

 

Above the configuration, if a forwarding exception occurs, the switch gives prompts, for example:

%Aug 20 14:55:54:973 2010 H3C DIAG/3/ERROR: -Slot=8; Forwarding fault: slot 5 to slot 8                                                                

%Aug 20 14:55:55:084 2010 H3C DIAG/3/ERROR: -Slot=6; Forwarding fault: slot 6 to slot 6

The output shows that a forwarding exception exists between the cards in slot 8 and slot 5, and an exception in internal data forwarding exists on the card in slot 6.

Verifying and diagnosing transceiver modules

Table 3 lists the commonly used transceiver modules. They can be further divided into optical transceivers and electrical transceivers based on transmission medium.

Table 3 Commonly used transceiver modules

Transceiver type

Application environment

Whether can be an optical transceiver

Whether can be an electrical transceiver

SFP (Small Form-factor Pluggable)

Generally used for 100M/1000M Ethernet interfaces or POS 155M/622M/2.5G interfaces

Yes

Yes

SFP+ (Enhanced 8.5 and 10 Gigabit Small Form-factor Pluggable)

Generally used for 10G Ethernet interfaces

Yes

Yes

XFP (10-Gigabit small Form-factor Pluggable)

Generally used for 10G Ethernet interfaces

Yes

No

 

Verifying transceiver modules

You can verify the genuineness of a transceiver module in the following ways:

·     Display the key parameters of a transceiver module, including its transceiver type, connector type, central wavelength of the transmit laser, transfer distance and vendor name.

·     Display its electronic label. The electronic label is a profile of the transceiver module and contains the permanent configuration including the serial number, manufacturing date, and vendor name. The data is written to the storage component during debugging or testing.

To verify transceiver modules, perform the following commands in any view:

 

Task

Command

Display key parameters of the transceiver modules.

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

Display transceiver modules’ electrical label information.

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

 

Diagnosing transceiver modules

The device provides the alarm function and the digital diagnosis function for transceiver modules. The digital diagnosis function monitors key transceiver module parameters, including the temperature, voltage, laser bias current, TX power, and RX power.

To diagnose transceiver modules:

 

Task

Command

Display alarms present on transceiver modules.

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

Display the measured values of the digital diagnosis parameters for transceiver modules.

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

 

Displaying and maintaining device management

For diagnosis or troubleshooting, you can use separate display commands to collect running status data module by module, or use the display diagnostic-information command to bulk collect running data for multiple modules.

 

Task

Command

Remarks

Display alarm information (in standalone mode).

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

Available in any view.

Display alarm information (in IRF mode).

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

Available in any view.

Display the system version information.

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

Available in any view.

Display the system time information.

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

Available in any view.

Display clipboard information.

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

Available in any view.

Display or save statistics of the running status of multiple modules.

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

Available in any view.

Display the configuration of the shared buffer on an interface card (in standalone mode).

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

Available in any view.

Display the configuration of the shared buffer on an interface card (in IRF mode).

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

Available in any view.

Display the statistics of the CPU usage (in standalone mode).

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

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

Available in any view.

Display the statistics of the CPU usage (in IRF mode).

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

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

Available in any view.

Display history statistics of the CPU usage in a chart (in standalone mode).

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

Available in any view.

Display history statistics of the CPU usage in a chart (in IRF mode).

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

Available in any view.

Display device information (in standalone mode).

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

Available in any view.

Display device information (in IRF mode).

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

Available in any view.

Display electrical label information of the switch (in standalone mode).

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

Available in any view.

Display electrical label information of an member switch (in IRF mode).

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

Available in any view.

Display the electrical label information of the specified chassis backplane (in standalone mode).

display device manuinfo chassis-only [ | { begin | exclude | include } regular-expression ]

Available in any view.

Display the electrical label information of the specified chassis backplane (in IRF mode).

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

Available in any view.

Display the electrical label information of the specified fan (in standalone mode).

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

Available in any view.

Display the electrical label information of the specified fan (in IRF mode).

display device manuinfo chassis chassis-number fan fan-id [ | { begin | exclude | include } regular-expression ]

Available in any view.

Display the electrical label information of the specified power module (in standalone mode).

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

Available in any view.

Display the electrical label information of the specified power module (in IRF mode).

display device manuinfo chassis chassis-number power power-id [ | { begin | exclude | include } regular-expression ]

Available in any view.

Display the temperature information of the switch (in standalone mode).

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

Available in any view.

Display the temperature information of an member switch (in IRF mode).

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

Available in any view.

Display the operating state of fans in the switch (in standalone mode).

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

Available in any view.

Display the operating state of fans in an IRF member switch (in IRF mode).

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

Available in any view.

Display the automatic speed adjustment mode of fans in the switch (in standalone mode).

display fan auto-control-mode [ | { begin | exclude | include } regular-expression ]

Available in any view.

Display the automatic speed adjustment mode of fans in an IRF member switch (in IRF mode).

display fan auto-control-mode chassis chassis-number [ | { begin | exclude | include } regular-expression ]

Available in any view.

Display hardware failure detection and fix operation records.

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

Available in any view.

Display hardware failure protection information.

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

Available in any view.

Display the usage of the memory of the switch (in standalone mode).

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

Available in any view.

Display the usage of the memory of an IRF member switch (in IRF mode).

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

Available in any view.

Display the power state of the switch  (in standalone mode).

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

Available in any view.

Display the power state of an IRF member switch (in IRF mode).

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

Available in any view.

Display the configuration of the scheduled job configured by the schedule job command.

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

Available in any view.

Display the reboot time of the switch.

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

Available in any view.

Display brief information about the hardware configuration file.

display system config file [ file-url ] [ | { begin | exclude | include } regular-expression ]

Available in any view.

Display the system operating mode.

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

Available in any view.

Display the configuration of scheduled jobs configured by the job command.

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

Available in any view.

Display the load mode of the current active MPU and standby MPU (in standalone mode).

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

Available in any view.

Display the load mode of the current active MPU and standby MPU (in IRF mode).

display xbar [ chassis chassis-number ] [ | { begin | exclude | include } regular-expression ]

Available in any view.

 

The display commands discussed above are for the global configuration. For the display command for specific protocol and interface, see corresponding sections.

 

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