|
|
To verify the checksum of a file on a Flash device, use the verify EXEC command. This command replaces the copy verify and copy verify flash commands.
verify [device:] filename
device: | Device containing the file whose checksum is being verified. The colon (:) is required. Valid devices are as follows: · bootflash: This device is the internal Flash memory. · slot0: This device is the first PCMCIA slot on the processor card. · slot1: This device is the second PCMCIA slot on the processor card. When you omit this argument, the system verifies the checksum of the specified file on the current working device. |
filename | Name of a file on the specified Flash device. The file can be of any type. The maximum filename length is 63 characters. |
The current working device is the default device.
EXEC
Use the verify command to verify the checksum of a file before using it. When you omit the device: argument, the system verifies the checksum of the specified file on the current working device.
The following example shows how to get information and verify the test-image file using the dir and verify commands.
Switch# dir bootflash:
-#- -length- -----date/time------ name 1 1699295 Dec 25 1927 17:53:24 b.Z 2 1382 Dec 25 1927 17:54:33 test-file 3 1382 Dec 25 1927 17:55:28 test-file3 4 1385 Dec 25 1927 17:56:11 test-file4 5 2200823 Dec 25 1927 17:58:56 test-image 6 1382 Dec 26 1927 10:28:42 test-file2 3695748 bytes available (3906428 bytes used)
Switch# verify bootflash:test-image
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC File bootflash:test-image verified OK
cd
copy flash
ip rcmd remote-username
purge
show flash
|
|