No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S12700 V200R013C00 Command Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
CSS Configuration Commands

CSS Configuration Commands

Command Support

Commands provided in this section and all the parameters in the commands are supported by all switch models by default, unless otherwise specified. For details, see specific commands.

css authentication

Function

The css authentication command configures the authentication mode and authentication information used when a new switch needs to join a CSS.

The undo css authentication command deletes the authentication mode and authentication information used when a new switch needs to join a CSS.

By default, a new switch does not need to be authenticated when joining a CSS.

Format

css authentication chassis chassis-id { mac mac-address | esn esn-value }

undo css authentication chassis chassis-id

Parameters

Parameter

Description

Value

chassis chassis-id

Specifies the CSS ID of a switch.

The value is 1 or 2.

mac mac-address

Specifies MAC-based authentication and a MAC address.

The value is in H-H-H format, where H is a hexadecimal number of 1 to 4 digits.

esn esn-value

Specifies ESN-based authentication and an ESN.

The value is a string of 10 to 32 characters.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

A switch can join a CSS without being authenticated. In this situation, an attacker can add any switch to a CSS to obtain the configuration file of the CSS master switch, resulting in information leak. To solve this problem, configure authentication when a switch needs to join a CSS. This configuration ensures that this switch joins the CSS only when it is authenticated successfully.

A switch will be authenticated only when its CSS ID is the same as that specified in the css authentication command. Otherwise, this switch can join a CSS without being authenticated.

Precautions

  • This command can be executed only when the CSS function is enabled.
  • Only one authentication mode can be configured for a CSS ID, and the latest configuration takes effect.
  • When a new switch fails the authentication, it restarts repeatedly.

Example

# Configure MAC-based authentication to be used when a switch with the CSS ID 2 needs to join a CSS.

<HUAWEI> system-view
[HUAWEI] css authentication chassis 2 mac-address 3-3-3

css enable

Function

The css enable command enables the CSS function on a device.

The undo css enable command disables the CSS function on a device.

By default, the CSS function is disabled.

Format

css enable

undo css enable [ all | chassis chassis-id ]

Parameters

Parameter

Description

Value

all

Disables the CSS function on all devices in the CSS. This parameter is not available in single CSS.

-

chassis chassis-id

Disables the CSS function on the device with the specified frame ID. This parameter is not available in single CSS.

The value is 1 or 2.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To use the CSS function, run the css enable command to enable the CSS function. If the CSS function is not required, run the undo css enable command to disable the CSS function. You can use the display css status command to check whether the CSS function is enabled on a device.

Precautions

  • After running the css enable or undo css enable command, restart the device immediately to make the configuration take effect. Otherwise, the configuration does not take effect and you need to run the command again.

  • After the css enable command is executed, the system backs up the configuration file before enabling the CSS function. If the disk space is insufficient, the CSS function cannot be enabled. Therefore, you need to clean up the disk space before running this command. After the configuration file is backed up, the system saves the configuration file. If the configuration file cannot be saved, the system displays error information. You need to manually save the current configuration and restart the device.
  • You can use the css enable command only when the CSS function is disabled.
  • You can use the undo css enable command only when the CSS function is enabled.
  • If you do not specify the chassis chassis-id parameter in the undo css enable command, the CSS function is disabled only on the master switch.
  • If you use the all keyword in the undo css enable command, the CSS function is disabled on both the master and standby switches. If the configuration fails on one switch, the CSS function fails to be disabled on the two switches.
  • After the CSS function is disabled and the device is restarted, the system may become abnormal during the recovery of configurations. Therefore, before disabling the CSS function, you are advised to specify the configuration file for the next startup.

Example

# Disabled the CSS function.

<HUAWEI> system-view
[HUAWEI] undo css enable
Warning: This command will take effect only after the system is rebooted. The interface configuration will be lost after CSS is disabled. Reboot now? [Y/N]:y
Related Topics

css fast upgrade

Function

The css fast upgrade command fast upgrades switches in a CSS.

Format

css fast upgrade

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenarios

You can use the css fast upgrade command to fast upgrade switches in a CSS, which reduces the impact of device upgrade on services.

The specified software package for the next startup must support fast upgrade; otherwise, fast upgrade cannot be successful.

During a fast upgrade, if one of the following situations occurs, the upgrade will fail and the system will automatically perform version and patch rollback:
  • Boards do not register for a long period during the upgrade of the standby chassis.
  • Configurations cannot be restored or backed up in a batch for a long period during the upgrade of the standby chassis.
  • The standby chassis has no MPU installed, and the master chassis is forced to exit from the fast upgrade. If the standby chassis has MPUs installed, the standby chassis will enter the single-chassis CSS state, perform version and patch rollback, and join the CSS again.
To view information about the preceding fast upgrade failures, check the log CSSM/6/FASTUPGRADEROLLBACK.

If the fast upgrade fails, the standby chassis will roll back to the old version and start, enter the single-chassis CSS state, restart and then join the CSS after the boards on the standby chassis register. The rollback process lasts at most 1 hour. During the rollback, ports and services on the master chassis will be working normally, and the ports on the standby chassis will remain Down. Do not perform operations on the standby chassis hardware during the rollback, for example, install, remove, reset, or power off the boards on the standby chassis.

Precautions
  • This command can only be used in a cluster with the CSS function enabled.

  • You are advised to bundle CSS uplinks and downlinks into Eth-Trunks for link redundancy. Otherwise, data traffic may be interrupted for several minutes based on the service deployment.

Example

# Specify the software package for the next startup and start fast upgrade.

<HUAWEI> startup system-software V200R013C00.cc all
<HUAWEI> css fast upgrade

css master force

Function

The css master force command specifies a switch as the master switch in a CSS.

The undo css master force command cancels the configuration.

By default, the master switch of a CSS is not specified.

Format

css master force [ chassis chassis-id ]

undo css master force [ chassis chassis-id ]

Parameters

Parameter

Description

Value

chassis chassis-id

Specifies the chassis ID of a member switch.

This parameter is available only after the CSS is set up successfully, and is invisible in a non-CSS scenario or in a CSS of single device.

The value is 1 or 2.

Views

System view

Default Level

3: Management level

Usage Guidelines

The master switch is elected when the CSS is created. The CSS priority is not the sole determining factor in master switch election. The switch with higher priority may not become the master switch; therefore, you cannot determine the master switch by setting priorities of switches. To specify a switch as the master switch, run the css master force command.
  • If the specified switch is already the master switch, the CSS status remains unchanged.
  • If the specified switch is the standby switch, this switch becomes the master switch after data backup is complete.

If the system fails to obtain resources to specify the switch as the master switch or the command configuration fails to be delivered, the system displays an error message.

NOTE:
  • The configuration takes effect after the device is restarted.

  • If you do not specify chassis chassis-id in the command, the command takes effect only on the master switch.

  • In a non-CSS scenario, this command takes effect only on the local device. If the css master force command is configured on both switches before a CSS is set up, the configurations become invalid after the CSS is set up. The master switch of a CSS is elected through competition.
  • In a CSS scenario, if the css master force command is run multiple times, only the latest configuration takes effect.

Example

# Specify the local switch as the master switch.

<HUAWEI> system view
[HUAWEI] css master force
Info: CSS configuration has been changed, and the new configuration will take effect after a reboot and CSS has been enabled.
Related Topics

css port media-type

Function

The css port media-type command sets the type of ports used for CSS connections.

By default, the port type is SFP+.

Format

css port media-type { sfp+ | qsfp+ 40ge:4*xge } (supported by the S12710)

css port media-type { sfp+ | qsfp+ [ 40ge:4*xge ] } (supported by the S12704&S12708&S12712)

undo css port media-type qsfp+

Parameters

Parameter Description Value
sfp+

Indicates the SFP+ modules used on 10G ports.

-

qsfp+

Indicates the QSFP+ modules used on 40G ports.

-

qsfp+ 40ge:4*xge

Indicates that a 40G port is split into four 10GE ports.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

On the S12710, two types of ports can be used for CSS connections: 10G ports and 40G port. Before setting up a CSS, set the port type based on CSS connection requirements.

The S12710 supports only two port types for CSS connections: sfp+ and qsfp+ 40ge:4*xge. The S12704&S12708&S12712 supports three port types for CSS connections: sfp+, qsfp+, and qsfp+ 40ge:4*xge.

If S12710s set up a CSS using 10G ports, set the port type to sfp+. If S12710s set up a CSS using 40G ports, set the port type to qsfp+ 40ge:4*xge. If you use the S12704&S12708&S12712 to set up a CSS, perform configurations according to Table 3-48.
Table 3-48  S12704&S12708&S12712 configuration

CSS Card Type of the Local Chassis

CSS Card Type of the Peer Chassis

Port Type Configured on the Local and Peer Chassis

VS08

VS08

sfp+

VQ06

VQ06

qsfp+

SFUB-integrated CSS card, which uses 10G ports for CSS connections

VS08

sfp+

SFUB-integrated CSS card, which uses 40G ports for CSS connections

VQ06

qsfp+

SFUB-integrated CSS card, which uses 10G ports for CSS connections

SFUB-integrated CSS card, which uses 10G ports for CSS connections

sfp+

SFUB-integrated CSS card, which uses 40G ports for CSS connections

SFUB-integrated CSS card, which uses 40G ports for CSS connections

qsfp+ or qsfp+ 40ge:4*xge

Precautions

  • The css port media-type command configuration takes effect on the S12710 after the switch restarts. To view the current configuration, run the display css status command. To view the configuration that takes effect currently, run the display css status saved command.
  • The css port media-type command configuration takes effect on the S12704&S12708&S12712 after the corresponding SFU where the CSS card resides is reset. To view the current configuration and the configuration that takes effect currently, run the display css port media-type command.
  • In the switch, the 40G port on the SFUB is actually split into four 10G ports. You can run the display css channel command to view the connection status of the four ports.

  • After the port type is set to qsfp+ 40ge:4*xge or qsfp+ on the SFUB, 4*10G ports cannot go Up even if they are connected. Similarly, after the port type is set to sfp+, the 40G port cannot go Up even if it is connected.

  • If the configured port type is different from the CSS card port type, for example, the configured port type is sfp+ and the CSS card port type is 40GE, the CSS card cannot register after the SFU where this CSS card resides is reset.

Example

# Set the type of ports used for CSS connections to SFP+.

<HUAWEI> system-view
[HUAWEI] css port media-type sfp+

css port trigger error-down

Function

The css port trigger error-down command enables the CSS port error-down function in a Cluster Switch System (CSS).

The undo css port trigger error-down command disables the CSS port error-down function in a CSS.

By default, the CSS port error-down function is enabled.

Format

css port { crc | link-flap } trigger error-down

undo css port { crc | link-flap } trigger error-down

Parameters

Parameter Description Value
crc Indicates that a CSS port enters the error-down state because it continuously receives CRC error packets. -
link-flap Indicates that a CSS port enters the error-down state because it frequently alternates between Up and Down states. -

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

In a CSS, if CSS ports continuously receive CRC error packets or alternate between Up and Down states, packets will be lost on CSS ports. The CSS port error-down function shuts down a CSS port if the number of CRC error packets received or the number of Up/Down transitions on the CSS port in a specified period reaches the threshold. After the CSS port is shut down, traffic on the CSS port is switched to another port.

You can run the css port crc trigger or css port link-flap trigger command to set the thresholds for the number of CRC error packets received or the number of Up/Down transitions on CSS ports in a specified period.

Prerequisites

The CSS function has been enabled using the css enable command.

Example

# Enable the error-down function when a CSS port continuously receives CRC error packets.

<HUAWEI> system-view
[HUAWEI] css port crc trigger error-down

css port trigger error-down auto-recovery-interval

Function

The css port trigger error-down auto-recovery-interval command enables the error-down recovery function for CSS ports in a CSS and sets the interval before CSS ports in error-down state can automatically turn Up.

The undo css port trigger error-down auto-recovery-interval command disables the error-down recovery function for CSS ports in a CSS.

By default, the error-down recovery function is disabled for CSS ports.

Format

css port { crc | link-flap } trigger error-down auto-recovery-interval time

undo css port { crc | link-flap } trigger error-down auto-recovery-interval

Parameters

Parameter

Description

Value

crc

Indicates that a CSS port enters the error-down state because it continuously receives CRC error packets.

-
link-flap

Indicates that a CSS port enters the error-down state because it frequently alternates between Up and Down states.

-
time

Specifies the interval before a CSS port in error-down state can automatically turn Up.

The value is an integer that ranges from 3 to 30, in minutes.

Views

System view

Default Level

3: Management level

Usage Guidelines

In a CSS, a CSS port is shut down if the number of CRC error packets received per minute or the number of Up/Down transitions on the CSS port in a specified period reaches the threshold. You can run the css port trigger error-down auto-recovery-interval command to set the amount of time before the CSS port in error-down state can automatically turn Up.

Example

# Configure a CSS port to automatically turn Up after 5 minutes. This port enters the error-down state because it continuously receives CRC error packets.

<HUAWEI> system-view
[HUAWEI] css port crc trigger error-down auto-recovery-interval 5

css port crc trigger

Function

The css port crc trigger command sets the CRC error packet detection thresholds on CSS ports in a CSS, including the period during which CRC error packets are received and the number of CRC error packets received per minute.

The undo css port crc trigger command restores the default settings.

By default, the threshold for the period during which CRC error packets are received on a CSS port is 3 minutes, and the threshold for the number of CRC error packets received per minute is 10.

Format

css port crc trigger { interval time | threshold number } *

undo css port crc trigger { interval | threshold }

Parameters

Parameter

Description

Value

interval time

Specifies the threshold for the period during which CRC error packets are received on a CSS port.

The value is an integer that ranges from 3 to 30, in minutes.

threshold number

Specifies the threshold for the number of CRC error packets received on a CSS port per minute.

The value is an integer that ranges from 1 to 10000.

Views

System view

Default Level

3: Management level

Usage Guidelines

In a CSS, CSS ports may continuously receive CRC error packets because CSS cards are swapped or the voltage is unstable. In this case, packets are dropped on the CSS ports. To check whether CSS ports continuously receive CRC error packets, run the css port crc trigger command to set the thresholds for the period during which CRC error packets are received and the number of CRC error packets received per minute. If the configured thresholds are reached on a CSS port, the following situations occur:

  • By default, the error-down function is enabled when CSS ports receive CRC error packets. If this function is disabled, run the css port crc trigger error-down command to enable it.
  • The switch generates an alarm 1.3.6.1.4.1.2011.5.25.183.3.3.2.12 (CSSM/3/CSSCRC) by default.
  • If the error-down recovery function has been enabled using the css port crc trigger error-down auto-recovery-interval command, the CSS port can turn Up automatically after the specified recovery time.

Example

# Set the threshold for the period during which CRC error packets are received to 8 minutes, and the threshold for the number of CRC error packets received per minute to 100.

<HUAWEI> system-view
[HUAWEI] css port crc trigger interval 8 threshold 100

css standby port delay

Function

The css standby port delay command sets the delay time before an error interface restores to the Up state.

The undo css standby port delay command restores the default delay time.

By default, the delay time is 0s, indicating that an interface restores to the Up state immediately after it recovers from a fault.

Format

css standby port delay time

undo css standby port delay

Parameters

Parameter Description Value
time

Specifies the delay time before an interface restores to the Up state.

The value is an integer that ranges from 0 to 3600, in seconds.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

After a fault is rectified on a CSS switch, the switch restores configurations immediately. During configuration restoration, the CPU usage is very high. To prevent service interruption caused by a high CPU usage, run the css standby port delay command to set the delay time before an interface restores to the Up state.

Configuration Impact

If you run the css standby port delay command multiple times, only the latest configuration takes effect.

After the css standby port delay command is used, there is a delay time before the board on the standby switch is reset.

Example

# Set the delay time before an interface restores to the Up state to 200s.

<HUAWEI> system-view
[HUAWEI] css standby port delay 200
Related Topics

display css channel

Function

The display css channel command displays the connection status of all CSS links in a CSS.

Format

display css channel

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can use the display css channel command to check the connection status of all CSS links in a CSS.

This command can only be used in a cluster with the CSS function enabled.

Example

# Display the link status of a CSS set up using VS08 CSS cards on the S12700s.
<HUAWEI> display css channel
CSS link-down-delay: 0ms

               Chassis 1               ||             Chassis 2                 
--------------------------------------------------------------------------------
Num      [Port]         [Speed]        ||        [Speed]         [Port]         
 1       1/15/0/5       10G                      10G             2/13/0/5       
 2       1/16/0/2       10G                      10G             2/14/0/2       
 3       1/16/0/3       10G                      10G             2/14/0/1       
 4       1/16/0/6       10G                      10G             2/14/0/5       
 5       1/16/0/8       10G                      10G             2/14/0/8       
--------------------------------------------------------------------------------
# Display the link status of a CSS set up using integrated CSS cards on the S12710s.
<HUAWEI> display css channel
CSS link-down-delay: 0ms                                                        
                                                                                
                Chassis 1               ||               Chassis 2              
================================================================================
Num Slot HG      Port    (Status)       ||    Port    (Status)       Slot HG    
1   1/11 0/30 -- 1/11/0/1(UP 10G)    ---||--- 2/11/0/1(UP 10G)    -- 2/11 0/30  
                                                                                
Table 3-49  Description of the display css channel command output

Item

Description

CSS link-down-delay

CSS physical port-Down delay function. The value 0 ms indicates that this function is not configured, and the value 500 ms indicates that this function is configured. To configure this function, run the css link-down-delay command.

Num

Channel ID of a CSS link.

Slot HG

Slot ID and HG port number of a CSS port.

Port (Status)

CSS port number, Up/Down state, and rate.

[Port] ID of the CSS port.
[Speed] Speed of the CSS port.

display css fast upgrade state

Function

The display css fast upgrade state command displays the CSS fast upgrade status.

Format

display css fast upgrade state

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

During a CSS fast upgrade, to learn about the upgrade phase and status, use the display css fast upgrade state command.

Example

# Display the CSS fast upgrade status.
<HUAWEI> display css fast upgrade state
Chassis Id   Upgrade State              Stream State     Meth State             
------------------------------------------------------------------------------  
1            --                         Open             Open                   
2            --                         Open             Open  
Table 3-50  Description of the display css fast upgrade state command output

Item

Description

Chassis Id Chassis ID.
Upgrade State CSS upgrade status:
  • Prepare: The CSS is preparing for a fast upgrade.
  • Upgrading: The CSS is being upgrading.
  • Stream switching: Traffic is being switched.
  • Waiting master upgrade: The CSS is waiting for the master chassis to upgrade.
  • Waiting standby upgrade: The CSS is waiting for the standby chassis to upgrade.
  • Success: The upgrade is successful.
  • Rollbacking: The rollback operation is performed.
  • Failed: The upgrade fails.
  • --: Fast upgrade is not performed.
Stream State Traffic status.
  • Open: Traffic is normal.
  • Close: Traffic is interrupted.
Meth State Management interface status.
  • Open: The management interface is available.
  • Close: The management interface is not available.

display css port

Function

The display css port command displays the status and statistics about CSS ports.

Format

display css port [ port-id | brief ]

Parameters

Parameter

Description

Value

port-id

Displays the status and statistics about the specified CSS port.

The value is in the format of chassis ID/slot ID/subcard ID/port sequence number. The value range depends on the device configuration.

brief

Displays brief information about all CSS ports, including the status and link bandwidth usage of all CSS ports.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can run the display css port [ port-id ] command to check the status and statistics about all CSS ports or a specified CSS port, including packet statistics and physical layer status of the ports. The information helps you determine whether the CSS ports are working normally.

Precautions

This command is supported only when the CSS function is enabled.

Example

# Display the status and statistics about CSS port 1/8/0/1.

<HUAWEI> display css port 1/8/0/1
CSS port 1/8/0/1 :                                                              
---------------------------------------------                                   
Port state : UP                                                                 
Protocol state : UP                                                             
Speed : 10G                                                                     
                                                                                
Input:  5340 packets, 860492 bytes                                              
  Unicast:                       5340,  Multicast:                           0  
  Broadcast:                        0,  Jumbo:                               0  
  Discard:                          0,  Frames:                              0  
                                                                                
  Total Error:                      0                                           
  CRC:                              0,  Giants:                              0  
  Jabbers:                          0,  Fragments:                           0  
  Runts:                            0,  DropEvents:                          0  
  Alignments:                       0,  Symbols:                             0  
  Ignoreds:                         0                                           
                                                                                
Output:  5025 packets, 833314 bytes                                             
  Unicast:                       5025,  Multicast:                           0  
  Broadcast:                        0,  Jumbo:                               0  
  Discard:                          0                                           
                                                                                
  Total Error:                      0                                           
  Collisions:                       0,  ExcessiveCollisions:                 0  
  Late Collisions:                  0,  Deferreds:                           0  
  Buffers Purged:                   0                                           
Table 3-51  Description of the display css port command output

Item

Description

Port state

CSS port status: UP, Administratively DOWN, DOWN (ERROR down), or DOWN.

Protocol state

CSS link protocol status: UP or DOWN.

Speed

Forwarding speed of the current CSS port.

Input

Total number of all packets received by the CSS port.

Output

Total number of all packets sent by the CSS port.

Unicast

Number of correct unicast packets sent or received by the CSS port.

Multicast

Number of correct multicast packets sent or received by the CSS port.

Broadcast

Number of correct broadcast packets sent or received by the CSS port.

Jumbo

Number of correct jumbo packets sent or received by the CSS port. A jumbo packet is longer than 1518 bytes but less than or equal to the length specified using the jumbo enable command. The Jumbo field value is not included in the Unicast, Multicast, or Broadcast field value.

Discard

Number of sent or received packets that are discarded by the CSS port.

Total Error

Total number of error packets.

CRC

Number of CRC error packets.

Giants

Number of packets longer than the length specified using the jumbo enable command.

Jabbers

Number of jumbo packets with FCS error.

Fragments

Number of fragments with FCS error.

Runts

Number of fragments with correct FCS.

DropEvents

Number of packets discarded due to GBP full or back pressure.

Alignments

Number of packets with alignment error.

Symbols

Number of packets with encoding error.

Ignoreds

Number of received MAC control frames, of which the OpCode is not PAUSE.

Frames

Number of packets with the incorrect 802.3 length.

Collisions

Number of sent packets with 1 to 16 conflict events.

ExcessiveCollisions

Number of packets with 16 conflict events and failing to be sent.

Late Collisions

Number of sent packets with conflict and delayed.

Deferreds

Number of delayed outgoing packets without conflict.

Buffers Purged

Number of aged packets in the buffer.

# Display the CSS link status and link bandwidth usage of the CSS.
<HUAWEI> display css port brief
*down: administratively down                                                     
(e): Error down                                                                 
 Port         Status    InUti   OutUti      InErrors    OutErrors 
 1/13/0/1     up           0%       0%          0          0                    
 1/13/0/2     down         0%       0%          0          0                    
 1/13/0/3     down         0%       0%          0          0                    
 1/13/0/4     down         0%       0%          0          0                    
 1/13/0/5     *down        0%       0%          0          0                    
 1/13/0/6     down         0%       0%          0          0                    
 1/13/0/7     down         0%       0%          0          0                    
 1/13/0/8     down         0%       0%          0          0                    
 1/14/0/1     up           0%       0%          0          0                    
 1/14/0/2     up           0%       0%          0          0                    
 1/14/0/3     down         0%       0%          0          0                    
 1/14/0/4     down         0%       0%          0          0                    
 1/14/0/5     up           0%       0%          0          0                    
 1/14/0/6     down         0%       0%          0          0                    
 1/14/0/7     down         0%       0%          0          0                    
 1/14/0/8     down         0%       0%          0          0                    
 2/13/0/1     up           0%       0%          0          0                    
 2/13/0/2     down         0%       0%          0          0                    
 2/13/0/3     down         0%       0%          0          0                    
 2/13/0/4     down         0%       0%          0          0                    
 2/13/0/5     up           0%       0%          0          0                    
 2/13/0/6     down         0%       0%          0          0                    
 2/13/0/7     down         0%       0%          0          0                    
 2/13/0/8     down         0%       0%          0          0  
Table 3-52  Description of the display css port brief command output

Item

Description

Port

CSS port.

Status

CSS port status, including up, *down, down(e), and down.

InUti

Average bandwidth usage when the CSS port keeps receiving packets within 300 seconds.

OutUti

Average bandwidth usage when the CSS port keeps sending packets within 300 seconds.

InErrors

Number of received error packets.

OutErrors

Number of sent error packets.

display css port media-type

Function

The display css port media-type command displays the CSS port type.

NOTE:

Only the S12704&S12708&S12712 support this command.

Format

display css port media-type

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After running the css port media-type command to set the CSS port type, you need to restart the device to make the configuration take effect. To facilitate maintenance, you can run the display css port media-type command to view the configured and current port types.

Precautions

This command is supported only when CSS has been enabled.

Example

# Display the CSS port type.

<HUAWEI> display css port media-type
Slot       Current Media-type      Configured Media-type                                                                            
----------------------------------------------------------                                                                          
1/13       QSFP+                   SFP+                                                                                             
1/14       SFP+                    SFP+                                                                                             
2/16       QSFP+                   SFP+                                                                                             
2/17       SFP+                    SFP+
Table 3-53  Description of the display css port media-type command output

Item

Description

Slot

Slot ID.

Current Media-type

Current port type.

Configured Media-type

Port type that is configured using the css port media-type command and will take effect after the device is restarted.

display css status

Function

The display css status command displays the CSS status.

Format

display css status [ saved ]

Parameters

Parameter

Description

Value

saved

Displays the saved CSS configuration. The CSS configuration takes effect after the device restarts.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can use the display css status command to view the CSS status, including the CSS ID, CSS priority, CSS enabling status, and master/backup status of member switches.

Precautions

If the saved parameter is not specified, the current running status of the CSS is displayed. If the saved parameter is specified, the saved CSS configuration is displayed.

Example

# Display the CSS status.

<HUAWEI> display css status
CSS Enable switch On                                                            
CSS port media-type: SFP+
                                                                                
Chassis Id   CSS Enable   CSS Status      CSS Mode    Priority    Master Force  
------------------------------------------------------------------------------  
1            On           Master          CSS card    254         Off           
2            On           Standby         CSS card    1           Off           
Table 3-54  Description of the display css status command output

Item

Description

CSS Enable switch On

The CSS function has been enabled on the device. To disable the CSS function, run the css enable command.

CSS Enable switch Off indicates that the CSS function is not enabled on the device.

CSS port media-type

Currently configured type of ports used for cluster connections:
  • SFP+: 10G ports
  • QSFP+: 40G ports
  • QSFP+ 40GE:4*XGE: A 40G port is split into 10G ports.
  • NA: The CSS function is not enabled.

To set the port type for CSS connections, run the css port media-type command.

Chassis Id

Chassis ID. To set the chassis ID, run the set css id command.

CSS Enable

Whether the CSS function is enabled.
  • On: The CSS function is enabled.

  • Off: The CSS function is disabled. If this field displays Off, the other fields display --.

To enable or disable the CSS function, run the css enable command.

CSS Status

Status of the device in the CSS.

  • Master: CSS master switch
  • Standby: CSS standby switch
  • Single: standalone CSS-capable switch
  • Standby (No MPU): standby switch without any MPU installed. This status can be displayed only on the S12704&S12708&S12712.

CSS Mode

CSS connection mode. Member switches can be connected in the following modes:
  • CSS card: connected through CSS cards

To set the CSS connection mode, run the set css mode command.

Priority

CSS priority. To set the CSS priority, run the set css priority command.

Master Force

Whether the local chassis has been forcibly specified as the master switch.
  • On: The local chassis is the forcibly specified master switch.

  • Off: The local chassis is not forcibly specified as the master switch.

To specify the master switch, run the css master force command.

# Display saved CSS configuration.

<HUAWEI> display css status saved
CSS port media-type: SFP+
Current Id   Saved Id     CSS Enable   CSS Mode    Priority    Master Force     
------------------------------------------------------------------------------  
1            1            Off          CSS card    1           Off            
Table 3-55  Description of the display css status saved command output

Item

Description

CSS port media-type

Currently configured type of ports used for cluster connections:
  • SFP+: 10G ports
  • QSFP+: 40G ports
  • QSFP+ 40GE:4*XGE: A 40G port is split into 10G ports.

To set the port type for CSS connections, run the css port media-type command.

Current Id

Current CSS ID.

Saved Id

Currently configured CSS ID. To set the CSS ID, run the set css id command.

CSS Enable

Whether the CSS function is enabled currently.
  • On: The CSS function is enabled.

  • Off: The CSS function is disabled.

To enable or disable the CSS function, run the css enable command.

CSS Mode

Currently configured CSS connection mode. Member switches can be connected in the following modes:
  • CSS card: connected through CSS cards

To set the CSS connection mode, run the set css mode command.

Priority

Currently configured CSS priority. To set the CSS priority, run the set css priority command.

Master Force

Whether the local chassis has been forcibly specified as the master switch currently.
  • On: The local chassis is the forcibly specified master switch.

  • Off: The local chassis is not forcibly specified as the master switch.

To forcibly specify the master switch, run the css master force command.

display css system-mac

Function

The display css system-mac command displays the CSS MAC address.

Format

display css system-mac

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Users can use display css system-mac command to display the CSS MAC address.

This command can only be used in a cluster with the CSS function enabled.

Example

# Display the CSS MAC address.

<HUAWEI> display css system-mac
System-MAC:00e0-fc01-1164, num:1                                                                                                    
CSS system-MAC configuration:                                                                                                        
Slot  Current MAC(Num)   Configured CSS system-MAC(Num)                                                            
- - - - - - - - - - - - - - - - - - - - - - - - - - - -                                                                             
 1/7  00e0-fc01-1164(1)  00e0-fc01-1164(1)                                                                                          
 1/8  00e0-fc01-1164(1)  00e0-fc01-1164(1)                                                                                          
 2/7  0018-0504-1223(1)  00e0-fc01-1164(1)                                                                                          
 2/8  0018-0504-1223(1)  00e0-fc01-1164(1)  
Table 3-56  Description of the display css system-mac command output

Item

Description

System-MAC

CSS MAC address.

num

Number of system MAC addresses. If 256 system MAC addresses are configured on the S12700, this field displays num:256 (16 used, 240 reserved).

CSS system-MAC configuration

System MAC address configuration for the CSS.
  • This field displays the CSS system MAC addresses configured using the set css system-mac command. The configuration takes effect after the CSS restarts.
  • If the set css system-mac command has not been configured or the CSS does not restart after the configuration, this field is empty.

Slot

Chassis ID and slot ID of a main control board.

Current MAC(Num)

Current MAC address saved in the flash memory.

Configured CSS system-MAC(Num)

CSS system MAC address configured using the set css system-mac command. This field displays NA(NA) if no CSS system MAC address is configured.

Related Topics

display mad

Function

The display mad command displays the multi-active detection (MAD) configuration.

Format

display mad [ proxy | verbose ]

Parameters

Parameter Description Value
proxy

Displays information about the proxy device.

-

verbose

Displays detailed MAD configuration.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To check the MAD configuration, run the display mad command. If the verbose parameter is specified, detailed MAD configuration is displayed, including MAD-enabled interfaces and interfaces excluded from shutdown.

When MAD in relay mode is configured, you can run the display mad proxy command on the proxy device to check its MAD configuration.

Example

# Display MAD configuration.
<HUAWEI> display mad
Current MAD domain: 0 
MAD direct detection enabled: YES                                       
MAD relay detection enabled: NO 
# Display detailed MAD configuration.
<HUAWEI> display mad verbose
Current MAD domain: 0 
Current MAD status: Detect                                                      
Mad direct detect interfaces configured:                                
 GigabitEthernet2/1/0/8
 GigabitEthernet2/1/0/9
Mad relay detect interfaces configured:                                 
Excluded ports(configurable):                                                   
 GigabitEthernet2/1/0/4
Excluded ports(can not be configured): 

# Display information about the specified proxy device.

<HUAWEI> display mad proxy
Mad relay interfaces configured:
 Eth-Trunk1 
Table 3-57  Description of the display mad command output

Item

Description

Current MAD domain

MAD domain configured in the system. To configure this parameter, run the mad domain command.

MAD direct detection enabled

MAD in direct mode is configured. To configure MAD in direct mode, run the mad detect mode direct command.

MAD relay detection enabled

MAD in relay mode is configured. To configure MAD in relay mode, run the mad detect mode relay command.

Current MAD status

Current MAD status:
  • Detect: The CSS is running properly.

  • Recovery: The switch that fails master switch election in a MAD scenario enters the Recovery state and blocks all of its service ports except those excluded from shutdown.

Mad direct detect interfaces configured

Interface on which MAD in direct mode is configured. To configure MAD in direct mode on an interface, run the mad detect mode direct command.

Mad relay detect interfaces configured

Interface on which MAD in relay mode is configured. To configure MAD in relay mode on an interface, run the mad detect mode relay command.

Excluded ports(configurable)

Interfaces excluded from shutdown. To configure interfaces excluded from shutdown, run the mad exclude command.

Excluded ports(can not be configured)

Interfaces that are excluded from shutdown in the system by default.

Mad relay interfaces configured

Interface on which the relay function is configured. To configure the relay function on an interface, run the mad relay command.

display snmp-agent trap feature-name css all

Function

The display snmp-agent trap feature-name css all command displays the status of all CSS traps.

Format

display snmp-agent trap feature-name css all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can use this command to check the status of all CSS traps. These traps can be enabled or disabled using the snmp-agent trap enable feature-name css command.

Example

# Display the status of all CSS traps.

<HUAWEI> display snmp-agent trap feature-name css all
------------------------------------------------------------------------------  
Feature name: CSS                                                               
Trap number : 19                                                                
------------------------------------------------------------------------------  
Trap name                       Default switch status   Current switch status   
hwCssLinkUp                     on                      on                      
hwCssLinkDown                   on                      on                      
hwCssSwitchOver                 on                      on                      
hwCssConnectError               on                      on                      
hwCssSplit                      on                      on                      
hwCssEstablish                  on                      on                      
hwCssFastUpgradeFail            on                      on                      
hwCssPhyCsuConnectError         on                      on                      
hwCssLpuInvalidLicense          on                      on                      
hwCssPortConfigureFailed        on                      on                      
hwCssPortUpDownAlarm            on                      on                      
hwCssPortCrcErrorAlarm          on                      on                      
hwCssPortErrorDown              on                      on                      
hwCssPortErrorDownRecover       on                      on                      
hwCssPhyVs08ConnectError        on                      on                      
hwCssStandbyError               on                      on                      
hwCssStandbyErrorRestore        on                      on                      
hwCssPortStateError             on                      on                      
hwCssPhyCardConnectError        on                      on                      
Table 3-58  Description of the display snmp-agent trap feature-name css all command output

Item

Description

Feature name

Name of the feature for which the traps are defined.

Trap number

Number of traps.

Trap name

Name of a trap:
  • hwCssLinkUp: A CSS port was Up.
  • hwCssLinkDown: A CSS port was Down.
  • hwCssSwitchOver: An active/standby switchover occurred in the CSS.
  • hwCssConnectError: CSS connections were incorrect.
  • hwCssSplit: A CSS split.
  • hwCssEstablish: A CSS was established.
  • hwCssFastUpgradeFail: A CSS fast upgrade failed.
  • hwCssPhyCsuConnectError: Service port connections were incorrect.
  • hwCssLpuInvalidLicense: The license of the switch was not activated or expired. The service port connection function became unavailable.
  • hwCssPortConfigureFailed: The MPU failed when a user attempted to configure service ports as physical member ports of a CSS port. The service ports became unavailable.
  • hwCssPortUpDownAlarm: A CSS port frequently alternated between Up and Down states.
  • hwCssPortCrcErrorAlarm: A CRC error occurred on a CSS port.
  • hwCssPortErrorDown: A CSS port entered the Error-down state.
  • hwCssPortErrorDownRecover: A CSS port returned from Error-down state to Up state.
  • hwCssPhyVs08ConnectError: CSS cards were incorrectly connected.
  • hwCssStandbyError: All MPUs in the standby chassis were reset, and the CSS started to run in standby (no MPU) state.
  • hwCssStandbyErrorRestore: The CSS recovered from the standby (no MPU) state.
  • hwCssPortStateError: A CSS port was in abnormal state.
  • hwCssPhyCardConnectError: CSS ports were incorrectly connected.

Default switch status

Default status of a trap:

  • on: The trap is enabled by default.
  • off: The trap is disabled by default.

Current switch status

Current status of a trap:

  • on: The trap is enabled.
  • off: The trap is disabled.

A trap can be enabled or disabled using the snmp-agent trap enable feature-name css command.

display snmp-agent trap feature-name mad all

Function

display snmp-agent trap feature-name mad all command displays the status of all traps in the MAD module.

Format

display snmp-agent trap feature-name mad all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After the trap function of the MAD module is enabled using the snmp-agent trap enable feature-name mad command, you can run the display snmp-agent trap feature-name mad all command to check the status of all traps in the MAD module.

Prerequisites

SNMP has been enabled using the snmp-agent command.

Example

# Display the status of all the traps in the MAD module.

<HUAWEI>display snmp-agent trap feature-name mad all
------------------------------------------------------------------------------                                                      
Feature name: MAD                                                                                                                   
Trap number : 2                                                                                                                     
------------------------------------------------------------------------------                                                      
Trap name                       Default switch status   Current switch status                                                       
hwMadConflictDetect             on                      on                                                                          
hwMadConflictResume             on                      on
Table 3-59  Description of the display snmp-agent trap feature-name mad all command output

Item

Specification

Feature name

Name of the module that the trap belongs to.

Trap number

Number of traps.

Trap name

Trap name:

  • hwMadConflictDetect: A MAD conflict is detected.

  • hwMadConflictResume: Existing CSS systems are merged.

Default switch status

Default status of the trap function:
  • on: The trap function is enabled by default.

  • off: The trap function is disabled by default.

Current switch status

Status of the trap function:

  • on: The trap function is enabled.

  • off: The trap function is disabled.

mad detect mode direct

Function

The mad detect mode direct command configures multi-active detection (MAD) in direct mode on an interface.

The undo mad detect command cancels the configuration.

By default, MAD in direct mode is disabled on an interface.

Format

mad detect mode direct

undo mad detect [ mode direct ]

Parameters

None

Views

GE interface view, XGE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To ensure that only one switch becomes the master switch after a CSS splits, thereby enhancing CSS stability, run the mad detect mode direct command to configure MAD in direct mode on an interface.

This command can only be used in a cluster with the CSS function enabled.

Configuration Impact

Configuring MAD in direct mode on an interface blocks the interface. Disabling MAD in direct mode on an interface restores the forwarding function of the interface. If a loop exists on the network, a broadcast storm occurs.

Precautions

The undo mad detect command is not supported in the port group view. You can only run the undo mad detect mode direct command in the port group view to disable MAD in direct mode.

Example

# Configure MAD in direct mode on GigabitEthernet1/1/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/1/0/1
[HUAWEI-GigabitEthernet1/1/0/1] mad detect mode direct
Warning: This command will block the port, and no other configuration running on
 this port is recommended. Continue? [Y/N]:y
Related Topics

mad detect mode relay

Function

The mad detect mode relay command configures multi-active detection (MAD) in relay mode on an interface.

The undo mad detect command cancels the configuration.

By default, MAD in relay mode is disabled on an interface.

Format

mad detect mode relay

undo mad detect [ mode relay ]

Parameters

None

Views

Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To ensure that only one switch becomes the master switch after a CSS splits, thereby enhancing stability of the CSS, run the mad detect mode relay command to configure MAD in relay mode on an Eth-trunk.

This command can only be used in a cluster with the CSS function enabled.

Precautions

The undo mad detect command is not supported in the port group view. You can only run the undo mad detect mode relay command in the port group view to disable MAD in relay mode.

Example

# Configure MAD in relay mode on Eth-Trunk 10.

<HUAWEI> system-view
[HUAWEI] interface eth-trunk 10
[HUAWEI-Eth-Trunk10] mad detect mode relay
Related Topics

mad domain

Function

The mad domain command sets a MAD domain ID for a CSS.

The undo mad domain command restores the default MAD domain ID for a CSS.

By default, the MAD domain ID of a CSS is 0.

Format

mad domain domain-id

undo mad domain

Parameters

Parameter Description Value
domain-id

Specifies the MAD domain ID for a CSS.

The value is an integer that ranges from 0 to 255.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

In most MAD scenarios, configuring a MAD domain ID for a CSS is unnecessary. When two CSS systems function as a proxy of each other to implement MAD, configure different MAD domain IDs for the CSS systems.

If the running CSS is split, MAD may be triggered, one chassis may enter the Recovery state, and ports of this chassis will be shut down. If two chassis of the CSS need to run independently, you can disable the CSS function, remove the MAD cable, delete the MAD configuration, or run the mad domain command to set the MAD domain ID of one chassis to a different value than that of the other chassis. Splitting a running CSS is not recommended because this operation will affect services.

This command can only be used in a cluster with the CSS function enabled.

Example

# Set the MAD domain ID for a CSS to 1.

<HUAWEI> system-view
[HUAWEI] mad domain 1
Related Topics

mad exclude

Function

The mad exclude command excludes specified interfaces of a CSS from shutdown.

The undo mad exclude command cancels excluding specified interfaces of a CSS from shutdown.

By default, only physical member ports are excluded from shutdown.

Format

mad exclude interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10>

undo mad exclude interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10>

Parameters

Parameter Description Value
interface { interface-type interface-number1 [ to interface-type interface-number2 ] }
Specifies the type and number of an interface:
  • interface-type specifies the type of the interface.

  • interface-number1 specifies the number of the first interface.

  • interface-number2 specifies the number of the second interface.

The value of interface-number2 must be larger than that of interface-number1.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If MAD detects a CSS split, all service ports of the member switch that fails master switch election must be shut down to prevent network flapping caused by MAC or IP address flapping. If some interfaces only transparently transmit packets, they do not affect network operation in a dual-active condition. You can run the mad exclude command to exclude these interfaces from shutdown before a CSS split occurs.

Precautions
  • This command can only be used in a cluster with the CSS function enabled.

  • After an interface is shut down because of MAD, it cannot be enabled if the mad exclude command is executed to exclude it from shutdown.
  • When the to parameter is specified to exclude multiple ports from shutdown, these ports must reside on the same card and the port number following this parameter must be larger than the port number followed by this parameter.

Example

# Exclude GigabitEthernet1/1/0/2 and GigabitEthernet1/1/0/3 from shutdown.

<HUAWEI> system-view
[HUAWEI] mad exclude interface gigabitethernet 1/1/0/2 to gigabitethernet 1/1/0/3
Related Topics

mad relay

Function

The mad relay command enables the relay function on an interface of a proxy device.

The undo mad relay command disables the relay function on an interface of a proxy device.

By default, the relay function is disabled on an interface.

Format

mad relay

undo mad relay

Parameters

None

Views

Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

For MAD working in relay mode, run the mad relay command to configure the relay function on an Eth-Trunk interface of a proxy device. Member interfaces of the Eth-Trunk interface exchange MAD packets between member switches.

Example

# Enable the relay function on Eth-Trunk 10 of a proxy device.

<HUAWEI> system-view
[HUAWEI] interface eth-trunk 10
[HUAWEI-Eth-Trunk10] mad relay

mad restore

Function

The mad restore command restores all the blocked interfaces of a standby switch that enters the Recovery state after its CSS splits.

Format

mad restore

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When MAD detects a multi-active event, the member switch elected as the master switch remains in the Detect state. The elected standby switch enters the Recovery state, shuts down all its service ports except those excluded from shutdown, and stops forwarding service packets.

If the switch in the Detect state fails or is removed before the split CSS is restored, run the mad restore command on the switch in the Recovery state to restore the interfaces in shutdown state. The switch in the Recovery state then goes to the Detect state. You can then restore the original switch in the Detect state and rectify the faulty CSS links. After the faults are rectified, the two switches form a CSS again.

This command can only be used in a cluster with the CSS function enabled.

Example

# Restore all the blocked interfaces of the standby switch that enters the Recovery state after its CSS splits.

<HUAWEI> system-view
[HUAWEI] mad restore

reset counters css port

Function

The reset counters css port command clears the status and statistics about CSS ports.

Format

reset counters css port [ port-id ]

Parameters

Parameter

Description

Value

port-id

Specifies the number of a CSS port.

If this parameter is not specified, statistics about all CSS ports are cleared.

The value range depends on the device configuration.

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To view the status and statistics about CSS ports within a specified period, run the reset counters css port command to clear existing statistics and then run a display command.

Precautions

After this command is run, the previous statistics about specified CSS ports cannot be displayed, and all the statistics are cleared.

This command can only be used in a cluster with the CSS function enabled.

Example

# Clear the status and statistics about CSS port 1/8/0/1.

<HUAWEI> reset counters css port 1/8/0/1
Info: Reset CSS port(1/8/0/1) statistics successfully.
Related Topics

set css id

Function

The set css id command sets the frame ID of a member switch in a CSS.

By default, the frame ID of a member switch is 1.

Format

set css id new-id [ chassis chassis-id ]

Parameters

Parameter Description Value
new-id

Sets the new frame ID.

The value is 1 or 2.

chassis chassis-id

Specifies the current chassis ID.

This parameter is available only after the CSS is set up successfully, and is invisible In a non-CSS scenario or in a CSS of single device.

The value is 1 or 2.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

When setting up a CSS, run the set css id command to set different frame IDs for the two member switches. The frame IDs of the two switches in a CSS must be 1 and 2; otherwise, the CSS cannot be set up.

Precautions

  • After setting a frame ID, restart the switch to make the configuration take effect.

  • If you do not specify chassis chassis-id in the command, the command takes effect only on the master switch.

Example

# Set the frame ID of a member switch to 2.

<HUAWEI> system-view
[HUAWEI] set css id 2
Related Topics

set css mode

Function

The set css mode command sets the CSS connection mode of a switch.

By default, S12700 uses CSS card connection.

Format

set css mode css-card

Parameters

Parameter

Description

Value

css-card

Sets the CSS connection mode to CSS card connection.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

S12700 supports the CSS card connection mode by default. Therefore, you do not need to run set css mode command on S12700.

Example

# Set the connection mode to CSS card connection.

<HUAWEI> system-view
[HUAWEI] set css mode css-card

set css priority

Function

The set css priority command sets the CSS priority of a member switch in a CSS.

By default, the CSS priority of a member switch is 1.

Format

set css priority priority [ chassis chassis-id ]

Parameters

Parameter Description Value
priority

Sets the new CSS priority.

The value is an integer that ranges from 1 to 255. A larger value indicates a higher priority. The default value is 1.

chassis chassis-id

Specifies the current chassis ID.

This parameter is available only after the CSS is set up successfully, and is invisible In a non-CSS scenario or in a CSS of single device.

The value is 1 or 2.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The set css priority command sets the CSS priority of a member switch in a CSS. The master switch is elected when the CSS is set up. The CSS priority is a determining factor in master switch election. When two member switches start at the same time, the switch with a higher CSS priority becomes the master switch. When there is a time difference of more than 5s between the startups of the two switches, the switch that starts first becomes the master switch.

Precautions

After setting a CSS priority, restart the switch to make the configuration take effect.

If you do not specify chassis chassis-id in the command, the command takes effect only on the master switch.

Example

# Set the CSS priority to 100.

<HUAWEI> system-view
[HUAWEI] set css priority 100
Info: CSS configuration has been changed, and the new configuration will take ef
fect after a reboot and CSS has been enabled.
Related Topics

set css system-mac

Function

The set css system-mac command sets the CSS MAC address.

The undo set css system-mac command deletes the CSS MAC address.

By default, the CSS MAC address is not configured.

Format

set css system-mac chassis chassis-id

undo set css system-mac

Parameters

Parameter

Description

Value

chassis chassis-id

Sets the MAC address of the specified chassis as the CSS MAC address.

The value is 1 or 2.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If you want the CSS to use the same MAC address every time after the CSS restarts, run the set css system-mac command to set the MAC address of a member switch in the CSS as the CSS MAC address. Then the CSS uses the configured MAC address every time after the CSS restarts.

Precautions

  • This command can only be used in a cluster with two switches.

  • After setting the CSS MAC address, restart the switch to make the configuration take effect.

  • If a main control board in the CSS is swapped, you must reconfigure the CSS MAC address after all the main control boards register successfully.

Example

# Set the CSS MAC address to the MAC address of chassis 1 in the CSS.

<HUAWEI> system-view
[HUAWEI] set css system-mac chassis 1

# Delete the configuration of CSS MAC address.

<HUAWEI> system-view
[HUAWEI] undo set css system-mac

snmp-agent trap enable feature-name css

Function

The snmp-agent trap enable feature-name css command enables a specified CSS trap or all CSS traps.

The undo snmp-agent trap enable feature-name css command disables a specified CSS trap or all CSS traps.

By default, all CSS traps are enabled.

Format

snmp-agent trap enable feature-name css [ trap-name trap-name ]

undo snmp-agent trap enable feature-name css [ trap-name trap-name ]

Parameters

Parameter Description Value
trap-name trap-name Specifies the name of a trap.
This parameter has enumerated values:
  • hwcssconnecterror: CSS connections were incorrect.
  • hwcssestablish: A CSS was established.
  • hwcssfastupgradefail: A CSS fast upgrade failed.
  • hwcsslinkdown: A CSS port was Down.
  • hwcsslinkup: A CSS port was Up.
  • hwcsslpuinvalidlicense: The license of the switch was not activated or expired. The service port connection function became unavailable.
  • hwcssphycardconnecterror: CSS ports were incorrectly connected.
  • hwcssphycsuconnecterror: Service port connections were incorrect.
  • hwcssphyvs08connecterror: CSS card connections were incorrect.
  • hwcssportconfigurefailed: The MPU failed when a user attempted to configure service ports as physical member ports of a CSS port. The service ports became unavailable.
  • hwcssportcrcerroralarm: A CRC error occurred on a CSS port.
  • hwcssporterrordown: A CSS port entered the Error-down state.
  • hwcssporterrordownrecover: A CSS port returned from Error-down state to Up state.
  • hwcssportstateerror: A CSS port was in abnormal state.
  • hwcssportupdownalarm: A CSS port frequently alternated between Up and Down states.
  • hwcsssplit: A CSS split.
  • hwcssstandbyerror: All MPUs in the standby chassis were reset, and the CSS started to run in standby (no MPU) state.
  • hwcssstandbyerrorrestore: The CSS recovered from the standby (no MPU) state.
  • hwcssswitchover: An active/standby switchover occurred in the CSS.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

By default, all CSS traps are enabled. You can learn about CSS status changes from these traps. If you disable a type of CSS trap, the switch no longer sends this trap. Disabling the CSS traps is not recommended.

Example

# Enable the hwcssestablish trap.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name css trap-name hwcssestablish

snmp-agent trap enable feature-name mad

Function

snmp-agent trap enable feature-name mad command enables the trap function for the MAD module.

undo snmp-agent trap enable feature-name mad command disables the trap function of the MAD module.

By default, the trap function is enabled for the MAD module.

Format

snmp-agent trap enable feature-name mad [ trap-name { hwmadconflictdetect | hwmadconflictresume } ]

undo snmp-agent trap enable feature-name mad [ trap-name { hwmadconflictdetect | hwmadconflictresume } ]

Parameters

Parameter

Description

Value

trap-name

Enables or disables the trap function for a specified event.

-

hwmadconflictdetect

Enables or disables the trap function when a MAD conflict is detected.

-

hwmadconflictresume

Enables or disables the trap function when existing CSS systems are merged.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When the trap function is enabled, the device generates traps for failures and sends traps to the NMS through SNMP. When the trap function is disabled, the device does not generate traps for failures, and the SNMP module does not send traps to the NMS.

You can specify trap-name to enable the trap function for one or more events.

Example

# Enable the hwmadconflictdetect trap function of the MAD module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name mad trap-name hwmadconflictdetect
Translation
Download
Updated: 2019-04-09

Document ID: EDOC1100065659

Views: 115991

Downloads: 83

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next