< Home

display upgrade state

Function

The display upgrade state command displays the smooth upgrade status of member switches in a stack.

Format

display upgrade state [ slot slot-id ]

Parameters

Parameter

Description

Value

slot slot-id

Specifies the stack ID of a member switch.

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

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To check the status of member switches in the active and backup areas before or after a smooth upgrade, run the display upgrade state command.

If you specify the slot slot-id parameter in the command, you can check whether the member switch with this slot ID has been upgraded successfully.

If the master switch of a stack restarts or experiences a master/standby switchover after a smooth upgrade, area information will be deleted from the master switch, and the Area field of the master switch will be displayed as unknown.

Example

# Display the smooth upgrade status of member switches in a stack.

<HUAWEI> display upgrade state
Slot      Area         Status                                                   
-----------------------------                                                   
   0      backup       backup rebooting                                             
   3      backup       backup rebooting                                         
   4      active       backup rebooting                                         
   8      active       backup rebooting

# Display the smooth upgrade status of the member switch with stack ID 4.

<HUAWEI> display upgrade state slot 4
--------------------------------------                                          
  Slot        : 4                                                                      
  Area        : backup 
  Status      : successful
  ErrorCode   : -
  Description : -
--------------------------------------
Table 1 Description of the display upgrade state command output

Item

Description

Slot

Stack ID of a device.

Area

Area to which a device belongs.
  • active
  • backup
  • unknown: The device does not belong to any area.

Status

Upgrade progress of a device.
  • idle: The upgrade has not been performed yet or the fast upgrade cannot be performed.
  • backup rebooting: The backup area is upgrading.
  • active rebooting: The active area is upgrading.
  • failed: The upgrade failed.
  • successful: The upgrade succeeded.

ErrorCode

Error code of an upgrade failure.

Description

Description about the failure if an upgrade fails.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >