display patch-information

Function

The display patch-information command displays information about system patches, including running, activated, and deactivated patches.

Format

display patch-information

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

Patches are the software that is compatible with system software, and are used to fix urgent bugs in system software. You can install patches to upgrade the system without upgrading system files.

After a patch is installed, you can run the display patch-information command to check the patch name, patch version, and patch status.
NOTE:

The system can only read information about loaded patches. That is, the display patch-information command displays information only about patches that have been loaded.

If you want to replace a patch, you must uninstall the patch before you install a substitute patch. You can run this command to check whether the system has loaded a patch and the patch status.

Example

# Display information about the system patch.

<sysname> display patch-information
Patch Package Name   :cfcard:/007-patch.pat
Patch Package Version:V600R005SPH001
The state of the patch state file is: Running
The current state is: Running
************************************************************************
*           Information about hot patch errors is as follows:          *
************************************************************************
                                                                        
     Slot            CurrentVersion                                     
------------------------------------------------------------

No hot patch error occurs on any board.
************************************************************************
*                The hot patch information, as follows:                *
************************************************************************
Slot       Type           State     Count Time(YYYY-MM-DD HH:MM:SS)
------------------------------------------------------------------------
 17         C              Running   7     2012-06-05 15:01:22+00:00
 18         C              Running   7     2012-06-05 15:01:21+00:00
 1          C              Running   7     2012-06-05 15:08:12+00:00
 1          SEFU           Running   7     2012-06-05 15:08:12+00:00
 1          KERNEL         Running   7     2012-06-05 15:08:12+00:00
 4          C              Running   7     2012-06-05 15:01:21+00:00
 4          KERNEL         Running   7     2012-06-05 15:01:21+00:00
 5          C              Running   7     2012-06-05 15:08:17+00:00
 5          SEFU           Running   7     2012-06-05 15:08:17+00:00
 5          KERNEL         Running   7     2012-06-05 15:08:17+00:00
 8/0        SMU            Running   7     2012-06-05 15:01:22+00:00
 8/0        SFSU           Running   7     2012-06-05 15:01:22+00:00
 8/0        SEFU           Running   7     2012-06-05 15:01:22+00:00
 9/0        SMU            Running   7     2012-06-05 15:01:21+00:00
 13         C              Running   7     2012-06-05 15:01:21+00:00
 13         KERNEL         Running   7     2012-06-05 15:01:21+00:00
 15         C              Running   7     2012-06-05 15:13:40+00:00
 15         SEFU           Running   7     2012-06-05 15:13:40+00:00
 15         KERNEL         Running   7     2012-06-05 15:13:40+00:00
 8/1        SMU            Running   7     2012-06-05 15:01:22+00:00
 8/1        SFSU           Running   7     2012-06-05 15:01:22+00:00
 8/1        SEFU           Running   7     2012-06-05 15:01:22+00:00
 9/1        SMU            Running   7     2012-06-05 15:01:21+00:00
 9/2        SMU            Running   7     2012-06-05 15:01:21+00:00
 9/3        SMU            Running   7     2012-06-05 15:01:21+00:00
 19         C              Running   7     2012-06-05 15:01:22+00:00
 20         C              Running   7     2012-06-05 15:01:22+00:00
***********************************************************************************
*                     The hot card patch information, as follows:                 *
***********************************************************************************
ClcID/slotID/cardID        Type           State     Count Time(YYYY-MM-DD HH:MM:SS)
-----------------------------------------------------------------------------------
1    /3     /0              C             Running     2   2012-07-25 17:40:58+00:00
1    /7     /0              C             Running     2   2012-07-25 17:40:58+00:00
***********************************************************************************
*                     The driver patch information, as follows:                   *
***********************************************************************************
ClcID/slotID/cardID      Description      PatchState     PatchVersion
-----------------------------------------------------------------------------------
1/   2/   0                DRIVER           run            3.1.0
1/   2/   1                DRIVER           run            3.1.0
1/   3/   0                DRIVER           run            3.1.0
1/   3/   1                DRIVER           run            3.1.0
Table 1 Description of the display patch-information command output

Item

Description

Patch Package Name

Name of a patch file. The name consists of the path in which the patch is stored and the name of the patch.
  • A patch must be stored in the root directory.
  • The file name extension of a patch is .pat, the file name extension of system software is .cc, and the file name extension of a GTL license file is .dat.

Patch Package Version

Version of a patch

When you install a patch, the version of the patch must match the device type and the version of system software in the device. Otherwise, the patch will fail to be installed.

The state of the patch state file

State of a patch state file. This is the patch state that you expect after the device is restarted.
  • Deactive
  • Active
  • Running
  • IDLE: no patch in the system

The current state

Current state of a patch:
  • Deactive
  • Active
  • Running
  • IDLE: no patch in the system

CurrentVersion

Version of the current patch

Slot

Slot ID in which a board is inserted. The slot ID consists of CLCID, slot ID, and card ID, which indicate chassis ID, board ID, and card ID respectively. By default, the chassis number of a single chassis device is 1. For example:
  • 1/ indicates that the patch information on chassis 1 is displayed.
  • 1/2 indicates that the patch information on the board in slot 2 of chassis 1 is displayed.
  • 1/2/1 indicates that the patch information on subcard 1 of the board in slot 2 of chassis 1 is displayed.

Type

Type of a patch
  • C: single-core patch

  • Core: multi-core patch. The value 0 indicates a primary core patch, and N indicates a secondary core patch.

  • HSP: hardware patch understratum software patch

  • APP: superstratum software patch

  • KERNEL: inner-core patch

  • SMU, SFSU, and SEFU: multi-core patch type

    The multi-core patch type varies with the board type.

State

Patch state

  • Deactive

  • Active

  • Running

Count

Number of patches

Related Topics
patch active
patch deactive
patch delete
patch run

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.