3 Software versions installed and running on a device

The “Compressed Sec Code size” line lists the flash code version installed in the secondary flash area.

The “Boot Monitor Image size” line lists the boot code version installed in flash memory. The device does not have separate primary and secondary flash areas for the boot image. The flash memory module contains only one boot image.

Flash image verification

The Flash Image Verification feature allows you to verify boot images based on hash codes, and to generate hash codes where needed. This feature lets you select from three data integrity verification algorithms:

MD5 - Message Digest algorithm (RFC 1321)

SHA1 - US Secure Hash Algorithm (RFC 3174)

CRC - Cyclic Redundancy Checksum algorithm

Flash image CLI commands

Use the following command syntax to verify the flash image:

Syntax: verify md5 sha1 crc32 <ASCII string> primary secondary [<hash code>]

md5 – Generates a 16-byte hash code

sha1 – Generates a 20-byte hash code

crc32 – Generates a 4 byte checksum

ascii string – A valid image filename

primary – The primary boot image (primary.img)

secondary – The secondary boot image (secondary.img)

hash code – The hash code to verify

The following examples show how the verify command can be used in a variety of circumstances. To generate an MD5 hash value for the secondary image, enter the following command.

Brocade#verify md5 secondary

Done

Brocade#

Size = 2044830, MD5 01c410d6d153189a4a5d36c955653862

To generate a SHA-1 hash value for the secondary image, enter the following command.

Brocade#verify sha secondary

Done

Brocade#

Size = 2044830, SHA1 49d12d26552072337f7f5fcaef4cf4b742a9f525

To generate a CRC32 hash value for the secondary image, enter the following command.

Brocade#verify crc32 secondary

Done

Brocade#

Size = 2044830, CRC32 b31fcbc0

 

To verify the hash value of a secondary image with a known value, enter the following commands.

Brocade#verify md5 secondary 01c410d6d153189a4a5d36c955653861

Brocade#.........................Done

Size = 2044830, MD5 01c410d6d153189a4a5d36c955653862

Verification FAILED.

52

Brocade ICX 6650 Administration Guide

 

53-1002600-01

Page 70
Image 70
Brocade Communications Systems 6650 manual Flash image verification, Flash image CLI commands