<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Validate ASA image checksum/integrity after copied to flash in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/validate-asa-image-checksum-integrity-after-copied-to-flash/m-p/2100136#M393337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Theres atleast this command (quote from Command Reference)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;H2&gt; verify &lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661845"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; To verify the checksum of a file, use the &lt;STRONG&gt;verify&lt;/STRONG&gt; command in privileged EXEC mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661846"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;verify&lt;/STRONG&gt; &lt;EM&gt;path &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661847"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;verify&lt;/STRONG&gt; &lt;STRONG&gt;/[md5&lt;/STRONG&gt; &lt;EM&gt;path&lt;/EM&gt; [&lt;EM&gt;md5-value&lt;/EM&gt;] | &lt;STRONG&gt;sha-512&lt;/STRONG&gt;] &lt;EM&gt;signature &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661887"&gt;&lt;/A&gt;&lt;/P&gt;&lt;H3&gt; Syntax Description&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV align="left"&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" id="wp1661850table1661848" width="80%"&gt;&lt;CAPTION&gt;&lt;BR /&gt;&lt;/CAPTION&gt; 
&lt;TBODY&gt;&lt;TR align="left" valign="top"&gt;&lt;TD&gt;&lt;A name="wp1661850"&gt;&lt;/A&gt;&lt;P&gt; &lt;STRONG&gt;/md5&lt;/STRONG&gt; &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1661852"&gt;&lt;/A&gt;&lt;P&gt; (Optional) Calculates and displays the MD5 value for the specified&amp;nbsp; software image. Compare this value with the value available on Cisco.com&amp;nbsp; for this image. &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left" valign="top"&gt;&lt;TD&gt;&lt;A name="wp1661854"&gt;&lt;/A&gt;&lt;P&gt; &lt;EM&gt;md5-value&lt;/EM&gt; &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1661856"&gt;&lt;/A&gt;&lt;P&gt; (Optional) The known MD5 value for the specified image. When an MD5&amp;nbsp; value is specified in the command, the system will calculate the MD5&amp;nbsp; value for the specified image and display a message verifying that the&amp;nbsp; MD5 values match or that there is a mismatch. &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left" valign="top"&gt;&lt;TD&gt;&lt;A name="wp1661858"&gt;&lt;/A&gt;&lt;P&gt; &lt;EM&gt;path&lt;/EM&gt; &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1661860"&gt;&lt;/A&gt;&lt;A name="wp1661861"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt;&lt;STRONG&gt;disk0:/&lt;/STRONG&gt;[&lt;EM style="font-style: italic;"&gt;path&lt;/EM&gt;/]&lt;EM&gt;filename&lt;/EM&gt; &lt;/P&gt;&lt;A name="wp1661862"&gt;&lt;/A&gt;&lt;P&gt; This option is only available for the ASA, and indicates the internal Flash memory. You can also use &lt;STRONG&gt;flash&lt;/STRONG&gt; instead of &lt;STRONG&gt;disk0&lt;/STRONG&gt;; they are aliased. &lt;/P&gt;&lt;A name="wp1661866"&gt;&lt;/A&gt;&lt;A name="wp1661867"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt;&lt;STRONG&gt;disk1:/&lt;/STRONG&gt;[&lt;EM style="font-style: italic;"&gt;path&lt;/EM&gt;/]&lt;EM&gt;filename&lt;/EM&gt; &lt;/P&gt;&lt;A name="wp1661868"&gt;&lt;/A&gt;&lt;P&gt; This option is only available for the ASA, and indicates the external Flash memory card. &lt;/P&gt;&lt;A name="wp1661872"&gt;&lt;/A&gt;&lt;A name="wp1661873"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt;&lt;STRONG&gt;flash:/&lt;/STRONG&gt;[&lt;EM style="font-style: italic;"&gt;path&lt;/EM&gt;/]&lt;EM&gt;filename&lt;/EM&gt; &lt;/P&gt;&lt;A name="wp1661874"&gt;&lt;/A&gt;&lt;P&gt; This option indicates the internal Flash card. For the ASA, &lt;STRONG&gt;flash&lt;/STRONG&gt; is an alias for &lt;STRONG&gt;disk0&lt;/STRONG&gt;. &lt;/P&gt;&lt;A name="wp1661875"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt;&lt;STRONG&gt;&lt;A class="jive-link-external-small" href="ftp://" rel="nofollow"&gt;ftp://&lt;/A&gt;&lt;/STRONG&gt;[&lt;EM&gt;user&lt;/EM&gt;[&lt;STRONG style="font-weight: bold;"&gt;:&lt;/STRONG&gt;&lt;EM style="font-weight: normal;"&gt;password&lt;/EM&gt;]&lt;STRONG&gt;@&lt;/STRONG&gt;]&lt;EM&gt;server&lt;/EM&gt;[:&lt;EM&gt;port&lt;/EM&gt;]&lt;STRONG&gt;/&lt;/STRONG&gt;[&lt;EM style="font-style: italic;"&gt;path&lt;/EM&gt;/]&lt;EM&gt;filename&lt;/EM&gt;[&lt;STRONG style="font-weight: bold;"&gt;;type=&lt;/STRONG&gt;&lt;EM style="font-weight: normal;"&gt;xx&lt;/EM&gt;] &lt;/P&gt;&lt;A name="wp1661876"&gt;&lt;/A&gt;&lt;P&gt; The &lt;STRONG&gt;type&lt;/STRONG&gt; can be one of the following keywords: &lt;/P&gt;&lt;A name="wp1661877"&gt;&lt;/A&gt;&lt;P&gt; –&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="17" /&gt;&lt;STRONG&gt;ap&lt;/STRONG&gt;—ASCII passive mode &lt;/P&gt;&lt;A name="wp1661878"&gt;&lt;/A&gt;&lt;P&gt; –&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="17" /&gt;&lt;STRONG&gt;an&lt;/STRONG&gt;—ASCII normal mode &lt;/P&gt;&lt;A name="wp1661879"&gt;&lt;/A&gt;&lt;P&gt; –&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="17" /&gt;&lt;STRONG&gt;ip&lt;/STRONG&gt;—(Default) Binary passive mode &lt;/P&gt;&lt;A name="wp1661880"&gt;&lt;/A&gt;&lt;P&gt; –&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="17" /&gt;&lt;STRONG&gt;in&lt;/STRONG&gt;—Binary normal mode &lt;/P&gt;&lt;A name="wp1661881"&gt;&lt;/A&gt;&lt;A name="wp1661882"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt;&lt;STRONG&gt;http&lt;/STRONG&gt;[&lt;STRONG&gt;s&lt;/STRONG&gt;]&lt;STRONG&gt;://&lt;/STRONG&gt;[&lt;EM&gt;user&lt;/EM&gt;[&lt;STRONG style="font-weight: bold;"&gt;:&lt;/STRONG&gt;&lt;EM style="font-weight: normal;"&gt;password&lt;/EM&gt;]&lt;STRONG&gt;@&lt;/STRONG&gt;]&lt;EM&gt;server&lt;/EM&gt;[:&lt;EM&gt;port&lt;/EM&gt;]&lt;STRONG&gt;/&lt;/STRONG&gt;[&lt;EM style="font-style: italic;"&gt;path&lt;/EM&gt;/]&lt;EM&gt;filename&lt;/EM&gt; &lt;/P&gt;&lt;A name="wp1661883"&gt;&lt;/A&gt;&lt;A name="wp1661884"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt;&lt;STRONG&gt;&lt;SPAN&gt;t&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="ftp://" rel="nofollow"&gt;ftp://&lt;/A&gt;&lt;/STRONG&gt;[&lt;EM&gt;user&lt;/EM&gt;[&lt;STRONG style="font-weight: bold;"&gt;:&lt;/STRONG&gt;&lt;EM style="font-weight: normal;"&gt;password&lt;/EM&gt;]&lt;STRONG&gt;@&lt;/STRONG&gt;]&lt;EM&gt;server&lt;/EM&gt;[:&lt;EM&gt;port&lt;/EM&gt;]&lt;STRONG&gt;/&lt;/STRONG&gt;[&lt;EM style="font-style: italic;"&gt;path&lt;/EM&gt;/]&lt;EM&gt;filename&lt;/EM&gt;[&lt;STRONG style="font-weight: bold;"&gt;;int=&lt;/STRONG&gt;&lt;EM style="font-weight: normal;"&gt;interface_name&lt;/EM&gt;] &lt;/P&gt;&lt;A name="wp1661885"&gt;&lt;/A&gt;&lt;P&gt; Specify the interface name if you want to override the route to the server address. &lt;/P&gt;&lt;A name="wp1661886"&gt;&lt;/A&gt;&lt;P&gt; The pathname cannot include spaces. If a pathname has spaces, set the path in the &lt;STRONG&gt;tftp-server&lt;/STRONG&gt; command instead of in the &lt;STRONG&gt;verify &lt;/STRONG&gt;command. &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left" valign="top"&gt;&lt;TD&gt;&lt;A name="wp1822320"&gt;&lt;/A&gt;&lt;P&gt; &lt;STRONG&gt;/sha-512&lt;/STRONG&gt; &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1822322"&gt;&lt;/A&gt;&lt;P&gt; (Optional) Calculates and displays the SHA-512 value for the specified&amp;nbsp; software image. Compare this value with the value available on Cisco.com&amp;nbsp; for this image. &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left" valign="top"&gt;&lt;TD&gt;&lt;A name="wp1822400"&gt;&lt;/A&gt;&lt;P&gt; &lt;EM&gt;signature&lt;/EM&gt; &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1822402"&gt;&lt;/A&gt;&lt;P&gt; Specifies an optional hexadecimal string. If specified, the signature&amp;nbsp; embedded in the image is compared to the signature provided. &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt; &lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661888"&gt;&lt;/A&gt;&lt;/P&gt;&lt;H3&gt; Defaults &lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661889"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; The current flash device is the default file system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.cisco.com/en/US/i/templates/note.gif" /&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661890"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Note &lt;/STRONG&gt;&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="1" /&gt;When you specify the &lt;STRONG&gt;/md5&lt;/STRONG&gt; option, you can use a network file, such as ftp, http and tftp as the source. The &lt;STRONG&gt;verify&lt;/STRONG&gt; command without the &lt;STRONG&gt;/md5 &lt;/STRONG&gt;option only lets you verify local images in Flash. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661891"&gt;&lt;/A&gt;&lt;/P&gt;&lt;H2&gt; Command Modes &lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661892"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; The following table shows the modes in which you can enter the command: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661942"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV align="left"&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" id="wp1661895table1661893" width="80%"&gt;&lt;CAPTION&gt;&lt;BR /&gt;&lt;/CAPTION&gt; 
&lt;TBODY&gt;&lt;TR align="left" valign="bottom"&gt;&lt;TH rowspan="3" scope="col"&gt;&lt;A name="wp1661895"&gt;&lt;/A&gt;&lt;DIV&gt; Command Mode &lt;/DIV&gt;&lt;/TH&gt; &lt;TH colspan="2" scope="col"&gt;&lt;A name="wp1661897"&gt;&lt;/A&gt;&lt;DIV&gt; Firewall Mode &lt;/DIV&gt;&lt;/TH&gt; &lt;TH colspan="3" scope="col"&gt;&lt;A name="wp1661901"&gt;&lt;/A&gt;&lt;DIV&gt; Security Context &lt;/DIV&gt;&lt;/TH&gt; 
&lt;/TR&gt;&lt;TR align="left" valign="bottom"&gt;&lt;TH rowspan="2" scope="col"&gt;&lt;A name="wp1661909"&gt;&lt;/A&gt;&lt;DIV&gt; Routed &lt;/DIV&gt;&lt;/TH&gt; &lt;TH rowspan="2" scope="col"&gt;&lt;A name="wp1661911"&gt;&lt;/A&gt;&lt;DIV&gt; Transparent &lt;/DIV&gt;&lt;/TH&gt; &lt;TH rowspan="2" scope="col"&gt;&lt;A name="wp1661913"&gt;&lt;/A&gt;&lt;DIV&gt; Single &lt;/DIV&gt;&lt;/TH&gt; &lt;TH colspan="2" scope="col"&gt;&lt;A name="wp1661915"&gt;&lt;/A&gt;&lt;DIV&gt; Multiple &lt;/DIV&gt;&lt;/TH&gt; 
&lt;/TR&gt;&lt;TR align="left" valign="bottom"&gt;&lt;TH scope="col"&gt;&lt;A name="wp1661927"&gt;&lt;/A&gt;&lt;DIV&gt; Context &lt;/DIV&gt;&lt;/TH&gt; &lt;TH scope="col"&gt;&lt;A name="wp1661929"&gt;&lt;/A&gt;&lt;DIV&gt; System &lt;/DIV&gt;&lt;/TH&gt; 
&lt;/TR&gt;&lt;TR align="left" valign="top"&gt;&lt;TD&gt;&lt;A name="wp1661931"&gt;&lt;/A&gt;&lt;P&gt; Privileged EXEC &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1661933"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt; &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1661935"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt; &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1661937"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt; &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1661939"&gt;&lt;/A&gt;&lt;P&gt; — &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1661941"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt; &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661952"&gt;&lt;/A&gt;&lt;/P&gt;&lt;H3&gt; Command History&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV align="left"&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" id="wp1661945table1661943" width="80%"&gt;&lt;CAPTION&gt;&lt;BR /&gt;&lt;/CAPTION&gt; 
&lt;TBODY&gt;&lt;TR align="left" valign="bottom"&gt;&lt;TH scope="col"&gt;&lt;A name="wp1661945"&gt;&lt;/A&gt;&lt;DIV&gt; Release &lt;/DIV&gt;&lt;/TH&gt; &lt;TH scope="col"&gt;&lt;A name="wp1661947"&gt;&lt;/A&gt;&lt;DIV&gt; Modification &lt;/DIV&gt;&lt;/TH&gt; 
&lt;/TR&gt;&lt;TR align="left" valign="top"&gt;&lt;TD&gt;&lt;A name="wp1661949"&gt;&lt;/A&gt;&lt;P&gt; 7.2(1) &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1661951"&gt;&lt;/A&gt;&lt;P&gt; This command was introduced. &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left" valign="top"&gt;&lt;TD&gt;&lt;A name="wp1822365"&gt;&lt;/A&gt;&lt;P&gt; 8.4(4.1) &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1822367"&gt;&lt;/A&gt;&lt;P&gt; The &lt;STRONG&gt;/sha-256&lt;/STRONG&gt; option was added. &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt; &lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661953"&gt;&lt;/A&gt;&lt;/P&gt;&lt;H3&gt; Usage Guidelines &lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661954"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; Use the &lt;STRONG&gt;verify&lt;/STRONG&gt; command to verify the checksum of a file before using it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661955"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; Each software image that is distributed on disk uses a single checksum&amp;nbsp; for the entire image. This checksum is displayed only when the image is&amp;nbsp; copied into Flash memory; it is not displayed when the image file is&amp;nbsp; copied from one disk to another. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661956"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; Before loading or duplicating a new image, record the checksum and MD5&amp;nbsp; information for the image so that you can verify the checksum when you&amp;nbsp; copy the image into Flash memory or onto a server. A variety of image&amp;nbsp; information is available on Cisco.com. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661957"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; To display the contents of Flash memory, use the &lt;STRONG&gt;show flash&lt;/STRONG&gt; command. The Flash contents listing does not include the checksum of&amp;nbsp; individual files. To recompute and verify the image checksum after the&amp;nbsp; image has been copied into Flash memory, use the &lt;STRONG&gt;verify&lt;/STRONG&gt;&lt;STRONG&gt; &lt;/STRONG&gt;command. Note, however, that the &lt;STRONG&gt;verify&lt;/STRONG&gt; command only performs a check on the integrity of the file after it has&amp;nbsp; been saved in the file system. It is possible for a corrupt image to be&amp;nbsp; transferred to the security appliance and saved in the file system&amp;nbsp; without detection. If a corrupt image is transferred successfully to the&amp;nbsp; security appliance, the software will be unable to tell that the image&amp;nbsp; is corrupted and the file will verify successfully. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661958"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; To use the message-digest5 (MD5) hash algorithm to ensure file validation, use the&lt;STRONG&gt; verify&lt;/STRONG&gt; command with the&lt;STRONG&gt; /md5&lt;/STRONG&gt; option. MD5 is an algorithm (defined in RFC 1321) that is used to&amp;nbsp; verify data integrity through the creation of a unique 128-bit message&amp;nbsp; digest. The &lt;STRONG&gt;/md5&lt;/STRONG&gt; option of the &lt;STRONG&gt;verify&lt;/STRONG&gt; command allows you to check the integrity of the security appliance&amp;nbsp; software image by comparing its MD5 checksum value against a known MD5&amp;nbsp; checksum value for the image. MD5 values are now made available on&amp;nbsp; Cisco.com for all security appliance software images for comparison&amp;nbsp; against local system image values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661959"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; To perform the MD5 integrity check, issue the &lt;STRONG&gt;verify&lt;/STRONG&gt; command using the &lt;STRONG&gt;/md5&lt;/STRONG&gt; keyword. For example, issuing the &lt;STRONG&gt;verify /md5 flash:cdisk.bin &lt;/STRONG&gt;command&amp;nbsp; will calculate and display the MD5 value for the software image.&amp;nbsp; Compare this value with the value available on Cisco.com for this image. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661960"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; Alternatively, you can get the MD5 value from Cisco.com first, then&amp;nbsp; specify this value in the command syntax. For example, issuing the &lt;STRONG&gt;verify /md5 flash:cdisk.bin 8b5f3062c4cacdbae72571440e962233&lt;/STRONG&gt; command will display a message verifying that the MD5 values match or&amp;nbsp; that there is a mismatch. A mismatch in MD5 values means that either the&amp;nbsp; image is corrupt or the wrong MD5 value was entered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1822356"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; If neither MD5 nor SHA-512 is specified, a SHA-512 based integrity check&amp;nbsp; is performed on Version 8.4(4.1) images and later, and an MD5-based&amp;nbsp; integrity check is performed on Version 8.4(3) images and earlier. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661961"&gt;&lt;/A&gt;&lt;/P&gt;&lt;H3&gt; Examples &lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661962"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; The following example shows the &lt;STRONG&gt;verify&lt;/STRONG&gt; command used on an image file called cdisk.bin. Some of the text was removed for clarity: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661965"&gt;&lt;/A&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;hostname# verify cdisk.bin
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt; &lt;A name="wp1661967"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Done!
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt; &lt;A name="wp1661968"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;Embedded Hash MD5: af5a155f3d5c128a271282c33277069b
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt; &lt;A name="wp1661969"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;Computed Hash MD5: af5a155f3d5c128a271282c33277069b
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt; &lt;A name="wp1661970"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;CCO Hash&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MD5: b569fff8bbf8087f355aaf22ef46b782
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt; &lt;A name="wp1661971"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;Signature Verified
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt; &lt;A name="wp1661972"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;Verified disk0:/cdisk.bin
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt; &lt;A name="wp1661975"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;hostname# 
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp; Jouni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jan 2013 15:10:05 GMT</pubDate>
    <dc:creator>Jouni Forss</dc:creator>
    <dc:date>2013-01-07T15:10:05Z</dc:date>
    <item>
      <title>Validate ASA image checksum/integrity after copied to flash</title>
      <link>https://community.cisco.com/t5/network-security/validate-asa-image-checksum-integrity-after-copied-to-flash/m-p/2100135#M393336</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've had occasional issues with 5505 upgrades going south when the boot hangs on the image load due to a corrupt image. I need a way to validate the checksum of the new image after it is copied to flash. Remote upgrades become a real pain when you have to go onside just to delete an image, copy it into flash again, and boot. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought ASDM did that when you used the file transfer tool, but I guess not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 00:44:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/validate-asa-image-checksum-integrity-after-copied-to-flash/m-p/2100135#M393336</guid>
      <dc:creator>lcaruso</dc:creator>
      <dc:date>2019-03-12T00:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Validate ASA image checksum/integrity after copied to flash</title>
      <link>https://community.cisco.com/t5/network-security/validate-asa-image-checksum-integrity-after-copied-to-flash/m-p/2100136#M393337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Theres atleast this command (quote from Command Reference)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;H2&gt; verify &lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661845"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; To verify the checksum of a file, use the &lt;STRONG&gt;verify&lt;/STRONG&gt; command in privileged EXEC mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661846"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;verify&lt;/STRONG&gt; &lt;EM&gt;path &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661847"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;verify&lt;/STRONG&gt; &lt;STRONG&gt;/[md5&lt;/STRONG&gt; &lt;EM&gt;path&lt;/EM&gt; [&lt;EM&gt;md5-value&lt;/EM&gt;] | &lt;STRONG&gt;sha-512&lt;/STRONG&gt;] &lt;EM&gt;signature &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661887"&gt;&lt;/A&gt;&lt;/P&gt;&lt;H3&gt; Syntax Description&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV align="left"&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" id="wp1661850table1661848" width="80%"&gt;&lt;CAPTION&gt;&lt;BR /&gt;&lt;/CAPTION&gt; 
&lt;TBODY&gt;&lt;TR align="left" valign="top"&gt;&lt;TD&gt;&lt;A name="wp1661850"&gt;&lt;/A&gt;&lt;P&gt; &lt;STRONG&gt;/md5&lt;/STRONG&gt; &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1661852"&gt;&lt;/A&gt;&lt;P&gt; (Optional) Calculates and displays the MD5 value for the specified&amp;nbsp; software image. Compare this value with the value available on Cisco.com&amp;nbsp; for this image. &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left" valign="top"&gt;&lt;TD&gt;&lt;A name="wp1661854"&gt;&lt;/A&gt;&lt;P&gt; &lt;EM&gt;md5-value&lt;/EM&gt; &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1661856"&gt;&lt;/A&gt;&lt;P&gt; (Optional) The known MD5 value for the specified image. When an MD5&amp;nbsp; value is specified in the command, the system will calculate the MD5&amp;nbsp; value for the specified image and display a message verifying that the&amp;nbsp; MD5 values match or that there is a mismatch. &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left" valign="top"&gt;&lt;TD&gt;&lt;A name="wp1661858"&gt;&lt;/A&gt;&lt;P&gt; &lt;EM&gt;path&lt;/EM&gt; &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1661860"&gt;&lt;/A&gt;&lt;A name="wp1661861"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt;&lt;STRONG&gt;disk0:/&lt;/STRONG&gt;[&lt;EM style="font-style: italic;"&gt;path&lt;/EM&gt;/]&lt;EM&gt;filename&lt;/EM&gt; &lt;/P&gt;&lt;A name="wp1661862"&gt;&lt;/A&gt;&lt;P&gt; This option is only available for the ASA, and indicates the internal Flash memory. You can also use &lt;STRONG&gt;flash&lt;/STRONG&gt; instead of &lt;STRONG&gt;disk0&lt;/STRONG&gt;; they are aliased. &lt;/P&gt;&lt;A name="wp1661866"&gt;&lt;/A&gt;&lt;A name="wp1661867"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt;&lt;STRONG&gt;disk1:/&lt;/STRONG&gt;[&lt;EM style="font-style: italic;"&gt;path&lt;/EM&gt;/]&lt;EM&gt;filename&lt;/EM&gt; &lt;/P&gt;&lt;A name="wp1661868"&gt;&lt;/A&gt;&lt;P&gt; This option is only available for the ASA, and indicates the external Flash memory card. &lt;/P&gt;&lt;A name="wp1661872"&gt;&lt;/A&gt;&lt;A name="wp1661873"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt;&lt;STRONG&gt;flash:/&lt;/STRONG&gt;[&lt;EM style="font-style: italic;"&gt;path&lt;/EM&gt;/]&lt;EM&gt;filename&lt;/EM&gt; &lt;/P&gt;&lt;A name="wp1661874"&gt;&lt;/A&gt;&lt;P&gt; This option indicates the internal Flash card. For the ASA, &lt;STRONG&gt;flash&lt;/STRONG&gt; is an alias for &lt;STRONG&gt;disk0&lt;/STRONG&gt;. &lt;/P&gt;&lt;A name="wp1661875"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt;&lt;STRONG&gt;&lt;A class="jive-link-external-small" href="ftp://" rel="nofollow"&gt;ftp://&lt;/A&gt;&lt;/STRONG&gt;[&lt;EM&gt;user&lt;/EM&gt;[&lt;STRONG style="font-weight: bold;"&gt;:&lt;/STRONG&gt;&lt;EM style="font-weight: normal;"&gt;password&lt;/EM&gt;]&lt;STRONG&gt;@&lt;/STRONG&gt;]&lt;EM&gt;server&lt;/EM&gt;[:&lt;EM&gt;port&lt;/EM&gt;]&lt;STRONG&gt;/&lt;/STRONG&gt;[&lt;EM style="font-style: italic;"&gt;path&lt;/EM&gt;/]&lt;EM&gt;filename&lt;/EM&gt;[&lt;STRONG style="font-weight: bold;"&gt;;type=&lt;/STRONG&gt;&lt;EM style="font-weight: normal;"&gt;xx&lt;/EM&gt;] &lt;/P&gt;&lt;A name="wp1661876"&gt;&lt;/A&gt;&lt;P&gt; The &lt;STRONG&gt;type&lt;/STRONG&gt; can be one of the following keywords: &lt;/P&gt;&lt;A name="wp1661877"&gt;&lt;/A&gt;&lt;P&gt; –&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="17" /&gt;&lt;STRONG&gt;ap&lt;/STRONG&gt;—ASCII passive mode &lt;/P&gt;&lt;A name="wp1661878"&gt;&lt;/A&gt;&lt;P&gt; –&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="17" /&gt;&lt;STRONG&gt;an&lt;/STRONG&gt;—ASCII normal mode &lt;/P&gt;&lt;A name="wp1661879"&gt;&lt;/A&gt;&lt;P&gt; –&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="17" /&gt;&lt;STRONG&gt;ip&lt;/STRONG&gt;—(Default) Binary passive mode &lt;/P&gt;&lt;A name="wp1661880"&gt;&lt;/A&gt;&lt;P&gt; –&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="17" /&gt;&lt;STRONG&gt;in&lt;/STRONG&gt;—Binary normal mode &lt;/P&gt;&lt;A name="wp1661881"&gt;&lt;/A&gt;&lt;A name="wp1661882"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt;&lt;STRONG&gt;http&lt;/STRONG&gt;[&lt;STRONG&gt;s&lt;/STRONG&gt;]&lt;STRONG&gt;://&lt;/STRONG&gt;[&lt;EM&gt;user&lt;/EM&gt;[&lt;STRONG style="font-weight: bold;"&gt;:&lt;/STRONG&gt;&lt;EM style="font-weight: normal;"&gt;password&lt;/EM&gt;]&lt;STRONG&gt;@&lt;/STRONG&gt;]&lt;EM&gt;server&lt;/EM&gt;[:&lt;EM&gt;port&lt;/EM&gt;]&lt;STRONG&gt;/&lt;/STRONG&gt;[&lt;EM style="font-style: italic;"&gt;path&lt;/EM&gt;/]&lt;EM&gt;filename&lt;/EM&gt; &lt;/P&gt;&lt;A name="wp1661883"&gt;&lt;/A&gt;&lt;A name="wp1661884"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt;&lt;STRONG&gt;&lt;SPAN&gt;t&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="ftp://" rel="nofollow"&gt;ftp://&lt;/A&gt;&lt;/STRONG&gt;[&lt;EM&gt;user&lt;/EM&gt;[&lt;STRONG style="font-weight: bold;"&gt;:&lt;/STRONG&gt;&lt;EM style="font-weight: normal;"&gt;password&lt;/EM&gt;]&lt;STRONG&gt;@&lt;/STRONG&gt;]&lt;EM&gt;server&lt;/EM&gt;[:&lt;EM&gt;port&lt;/EM&gt;]&lt;STRONG&gt;/&lt;/STRONG&gt;[&lt;EM style="font-style: italic;"&gt;path&lt;/EM&gt;/]&lt;EM&gt;filename&lt;/EM&gt;[&lt;STRONG style="font-weight: bold;"&gt;;int=&lt;/STRONG&gt;&lt;EM style="font-weight: normal;"&gt;interface_name&lt;/EM&gt;] &lt;/P&gt;&lt;A name="wp1661885"&gt;&lt;/A&gt;&lt;P&gt; Specify the interface name if you want to override the route to the server address. &lt;/P&gt;&lt;A name="wp1661886"&gt;&lt;/A&gt;&lt;P&gt; The pathname cannot include spaces. If a pathname has spaces, set the path in the &lt;STRONG&gt;tftp-server&lt;/STRONG&gt; command instead of in the &lt;STRONG&gt;verify &lt;/STRONG&gt;command. &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left" valign="top"&gt;&lt;TD&gt;&lt;A name="wp1822320"&gt;&lt;/A&gt;&lt;P&gt; &lt;STRONG&gt;/sha-512&lt;/STRONG&gt; &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1822322"&gt;&lt;/A&gt;&lt;P&gt; (Optional) Calculates and displays the SHA-512 value for the specified&amp;nbsp; software image. Compare this value with the value available on Cisco.com&amp;nbsp; for this image. &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left" valign="top"&gt;&lt;TD&gt;&lt;A name="wp1822400"&gt;&lt;/A&gt;&lt;P&gt; &lt;EM&gt;signature&lt;/EM&gt; &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1822402"&gt;&lt;/A&gt;&lt;P&gt; Specifies an optional hexadecimal string. If specified, the signature&amp;nbsp; embedded in the image is compared to the signature provided. &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt; &lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661888"&gt;&lt;/A&gt;&lt;/P&gt;&lt;H3&gt; Defaults &lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661889"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; The current flash device is the default file system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.cisco.com/en/US/i/templates/note.gif" /&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661890"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Note &lt;/STRONG&gt;&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="1" /&gt;When you specify the &lt;STRONG&gt;/md5&lt;/STRONG&gt; option, you can use a network file, such as ftp, http and tftp as the source. The &lt;STRONG&gt;verify&lt;/STRONG&gt; command without the &lt;STRONG&gt;/md5 &lt;/STRONG&gt;option only lets you verify local images in Flash. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661891"&gt;&lt;/A&gt;&lt;/P&gt;&lt;H2&gt; Command Modes &lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661892"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; The following table shows the modes in which you can enter the command: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661942"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV align="left"&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" id="wp1661895table1661893" width="80%"&gt;&lt;CAPTION&gt;&lt;BR /&gt;&lt;/CAPTION&gt; 
&lt;TBODY&gt;&lt;TR align="left" valign="bottom"&gt;&lt;TH rowspan="3" scope="col"&gt;&lt;A name="wp1661895"&gt;&lt;/A&gt;&lt;DIV&gt; Command Mode &lt;/DIV&gt;&lt;/TH&gt; &lt;TH colspan="2" scope="col"&gt;&lt;A name="wp1661897"&gt;&lt;/A&gt;&lt;DIV&gt; Firewall Mode &lt;/DIV&gt;&lt;/TH&gt; &lt;TH colspan="3" scope="col"&gt;&lt;A name="wp1661901"&gt;&lt;/A&gt;&lt;DIV&gt; Security Context &lt;/DIV&gt;&lt;/TH&gt; 
&lt;/TR&gt;&lt;TR align="left" valign="bottom"&gt;&lt;TH rowspan="2" scope="col"&gt;&lt;A name="wp1661909"&gt;&lt;/A&gt;&lt;DIV&gt; Routed &lt;/DIV&gt;&lt;/TH&gt; &lt;TH rowspan="2" scope="col"&gt;&lt;A name="wp1661911"&gt;&lt;/A&gt;&lt;DIV&gt; Transparent &lt;/DIV&gt;&lt;/TH&gt; &lt;TH rowspan="2" scope="col"&gt;&lt;A name="wp1661913"&gt;&lt;/A&gt;&lt;DIV&gt; Single &lt;/DIV&gt;&lt;/TH&gt; &lt;TH colspan="2" scope="col"&gt;&lt;A name="wp1661915"&gt;&lt;/A&gt;&lt;DIV&gt; Multiple &lt;/DIV&gt;&lt;/TH&gt; 
&lt;/TR&gt;&lt;TR align="left" valign="bottom"&gt;&lt;TH scope="col"&gt;&lt;A name="wp1661927"&gt;&lt;/A&gt;&lt;DIV&gt; Context &lt;/DIV&gt;&lt;/TH&gt; &lt;TH scope="col"&gt;&lt;A name="wp1661929"&gt;&lt;/A&gt;&lt;DIV&gt; System &lt;/DIV&gt;&lt;/TH&gt; 
&lt;/TR&gt;&lt;TR align="left" valign="top"&gt;&lt;TD&gt;&lt;A name="wp1661931"&gt;&lt;/A&gt;&lt;P&gt; Privileged EXEC &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1661933"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt; &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1661935"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt; &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1661937"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt; &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1661939"&gt;&lt;/A&gt;&lt;P&gt; — &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1661941"&gt;&lt;/A&gt;&lt;P&gt; •&lt;IMG border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" /&gt; &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661952"&gt;&lt;/A&gt;&lt;/P&gt;&lt;H3&gt; Command History&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV align="left"&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" id="wp1661945table1661943" width="80%"&gt;&lt;CAPTION&gt;&lt;BR /&gt;&lt;/CAPTION&gt; 
&lt;TBODY&gt;&lt;TR align="left" valign="bottom"&gt;&lt;TH scope="col"&gt;&lt;A name="wp1661945"&gt;&lt;/A&gt;&lt;DIV&gt; Release &lt;/DIV&gt;&lt;/TH&gt; &lt;TH scope="col"&gt;&lt;A name="wp1661947"&gt;&lt;/A&gt;&lt;DIV&gt; Modification &lt;/DIV&gt;&lt;/TH&gt; 
&lt;/TR&gt;&lt;TR align="left" valign="top"&gt;&lt;TD&gt;&lt;A name="wp1661949"&gt;&lt;/A&gt;&lt;P&gt; 7.2(1) &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1661951"&gt;&lt;/A&gt;&lt;P&gt; This command was introduced. &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left" valign="top"&gt;&lt;TD&gt;&lt;A name="wp1822365"&gt;&lt;/A&gt;&lt;P&gt; 8.4(4.1) &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1822367"&gt;&lt;/A&gt;&lt;P&gt; The &lt;STRONG&gt;/sha-256&lt;/STRONG&gt; option was added. &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt; &lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661953"&gt;&lt;/A&gt;&lt;/P&gt;&lt;H3&gt; Usage Guidelines &lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661954"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; Use the &lt;STRONG&gt;verify&lt;/STRONG&gt; command to verify the checksum of a file before using it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661955"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; Each software image that is distributed on disk uses a single checksum&amp;nbsp; for the entire image. This checksum is displayed only when the image is&amp;nbsp; copied into Flash memory; it is not displayed when the image file is&amp;nbsp; copied from one disk to another. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661956"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; Before loading or duplicating a new image, record the checksum and MD5&amp;nbsp; information for the image so that you can verify the checksum when you&amp;nbsp; copy the image into Flash memory or onto a server. A variety of image&amp;nbsp; information is available on Cisco.com. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661957"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; To display the contents of Flash memory, use the &lt;STRONG&gt;show flash&lt;/STRONG&gt; command. The Flash contents listing does not include the checksum of&amp;nbsp; individual files. To recompute and verify the image checksum after the&amp;nbsp; image has been copied into Flash memory, use the &lt;STRONG&gt;verify&lt;/STRONG&gt;&lt;STRONG&gt; &lt;/STRONG&gt;command. Note, however, that the &lt;STRONG&gt;verify&lt;/STRONG&gt; command only performs a check on the integrity of the file after it has&amp;nbsp; been saved in the file system. It is possible for a corrupt image to be&amp;nbsp; transferred to the security appliance and saved in the file system&amp;nbsp; without detection. If a corrupt image is transferred successfully to the&amp;nbsp; security appliance, the software will be unable to tell that the image&amp;nbsp; is corrupted and the file will verify successfully. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661958"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; To use the message-digest5 (MD5) hash algorithm to ensure file validation, use the&lt;STRONG&gt; verify&lt;/STRONG&gt; command with the&lt;STRONG&gt; /md5&lt;/STRONG&gt; option. MD5 is an algorithm (defined in RFC 1321) that is used to&amp;nbsp; verify data integrity through the creation of a unique 128-bit message&amp;nbsp; digest. The &lt;STRONG&gt;/md5&lt;/STRONG&gt; option of the &lt;STRONG&gt;verify&lt;/STRONG&gt; command allows you to check the integrity of the security appliance&amp;nbsp; software image by comparing its MD5 checksum value against a known MD5&amp;nbsp; checksum value for the image. MD5 values are now made available on&amp;nbsp; Cisco.com for all security appliance software images for comparison&amp;nbsp; against local system image values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661959"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; To perform the MD5 integrity check, issue the &lt;STRONG&gt;verify&lt;/STRONG&gt; command using the &lt;STRONG&gt;/md5&lt;/STRONG&gt; keyword. For example, issuing the &lt;STRONG&gt;verify /md5 flash:cdisk.bin &lt;/STRONG&gt;command&amp;nbsp; will calculate and display the MD5 value for the software image.&amp;nbsp; Compare this value with the value available on Cisco.com for this image. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661960"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; Alternatively, you can get the MD5 value from Cisco.com first, then&amp;nbsp; specify this value in the command syntax. For example, issuing the &lt;STRONG&gt;verify /md5 flash:cdisk.bin 8b5f3062c4cacdbae72571440e962233&lt;/STRONG&gt; command will display a message verifying that the MD5 values match or&amp;nbsp; that there is a mismatch. A mismatch in MD5 values means that either the&amp;nbsp; image is corrupt or the wrong MD5 value was entered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1822356"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; If neither MD5 nor SHA-512 is specified, a SHA-512 based integrity check&amp;nbsp; is performed on Version 8.4(4.1) images and later, and an MD5-based&amp;nbsp; integrity check is performed on Version 8.4(3) images and earlier. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661961"&gt;&lt;/A&gt;&lt;/P&gt;&lt;H3&gt; Examples &lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661962"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; The following example shows the &lt;STRONG&gt;verify&lt;/STRONG&gt; command used on an image file called cdisk.bin. Some of the text was removed for clarity: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="wp1661965"&gt;&lt;/A&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;hostname# verify cdisk.bin
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt; &lt;A name="wp1661967"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Done!
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt; &lt;A name="wp1661968"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;Embedded Hash MD5: af5a155f3d5c128a271282c33277069b
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt; &lt;A name="wp1661969"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;Computed Hash MD5: af5a155f3d5c128a271282c33277069b
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt; &lt;A name="wp1661970"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;CCO Hash&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MD5: b569fff8bbf8087f355aaf22ef46b782
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt; &lt;A name="wp1661971"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;Signature Verified
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt; &lt;A name="wp1661972"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;Verified disk0:/cdisk.bin
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt; &lt;A name="wp1661975"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;hostname# 
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp; Jouni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 15:10:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/validate-asa-image-checksum-integrity-after-copied-to-flash/m-p/2100136#M393337</guid>
      <dc:creator>Jouni Forss</dc:creator>
      <dc:date>2013-01-07T15:10:05Z</dc:date>
    </item>
    <item>
      <title>Validate ASA image checksum/integrity after copied to flash</title>
      <link>https://community.cisco.com/t5/network-security/validate-asa-image-checksum-integrity-after-copied-to-flash/m-p/2100137#M393338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've see the same problem on ASA 5505s (and PIX515). It verifies correctly and matches the CCO Hash MD5 as per image info from Cisco.com. But hangs on the image that I had uploaded to it whether by tftp or pscp or asdm (and directly connected to it). Doesn't matter if its an upgrade or downgrade. It hangs on the image loading part. "Loading disk0:/asa842-k8.bin..." and will not and will not try the 2nd image. However, I am not always able to reproduce the problem.&lt;/P&gt;&lt;P&gt;The problem is not the image as if you re-up the same image, it will work. Its a bit of luck sometimes... had jumped into ROMMON and boot up on something else, say the 8.4.6 image and it worked. Other times I've upgraded with no problems... I can't pin point it, but just wanted to warn others that the verify does not guarantee your 5505 will boot up.&lt;/P&gt;&lt;P&gt;Seen this problem again twice this week.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 00:37:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/validate-asa-image-checksum-integrity-after-copied-to-flash/m-p/2100137#M393338</guid>
      <dc:creator>vsoukhavong</dc:creator>
      <dc:date>2013-12-16T00:37:39Z</dc:date>
    </item>
  </channel>
</rss>

