< Home

check file-integrity

Function

The check file-integrity command checks whether a file is consistent with the corresponding signature file.

Format

check file-integrity filename signature-filename

Parameters

Parameter

Description

Value

filename

Specifies the name of a file to be checked. The file must exist.

The value is a string of 4 to 64 case-insensitive characters without spaces. The file name extension can be .cc, .pat, .zip, .mod, or .7z.

signature-filename

Specifies the name of the signature file corresponding to the file to be checked. The signature file must exist.

The value is a string of 5 to 64 case-insensitive characters without spaces. The file name extension must be .asc.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can run this command to check whether a file is consistent with the corresponding signature file. If the check fails, the file cannot be used as the system software, patch file, web page file, or mod file.

Signature files are released with each version. Each valid system software, patch file, web page file, or mod file has a corresponding signature file. You need to upload the signature file to the switch before using this command.

Example

# Check whether the system software is consistent with the corresponding signature file.

<HUAWEI> system-view
[HUAWEI] check file-integrity S5700-V200R019C10.cc S5700-V200R019C10.cc.asc
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >