<?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 ASA and the boot config command from CLI in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/asa-and-the-boot-config-command-from-cli/m-p/2914313#M153918</link>
    <description>&lt;P&gt;Hello Guys&lt;/P&gt;
&lt;P&gt;I wanted to use this forum to collect experience from others about using the boot config command i.e. setting a boot variable to load from a different config file.&lt;/P&gt;
&lt;P&gt;Here is what I've found out:&lt;/P&gt;
&lt;P&gt;Usually the startup-config is NOT visible on the ASA. Once you set the boot variable (either through CLI or ASDM) the startup-config becomes "just visible" in flash.&lt;/P&gt;
&lt;P&gt;I recently had a situation - needed to change IP-Adresses and routing on the outside interface of an ASA without having access to the console - just SSH and or ASDM. Here is what I've found out - what I did.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Copied some text-file to the flash&lt;/LI&gt;
&lt;LI&gt;Saved the running-config&lt;/LI&gt;
&lt;LI&gt;Changed the boot-variable to the name of "some text-file"&lt;/LI&gt;
&lt;LI&gt;Saved the running-config&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Now - the "some text-file" in flash would be overwritten with the actual running-config of the ASA - ok.&lt;/P&gt;
&lt;P&gt;Try this at home, in the lab, with an ASA you have access to via console-cable! Lets do the following:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Download the now filled with running-config&amp;nbsp;"some text-file" to your local PC&lt;/LI&gt;
&lt;LI&gt;Make the changes you wanted in that text-file&lt;/LI&gt;
&lt;LI&gt;Upload the changed "some text-file" back to ASA i.e. overwrite the existing one in flash&lt;/LI&gt;
&lt;LI&gt;Reload the Device&lt;/LI&gt;
&lt;LI&gt;Watch carefully the CLI!&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;What your going to see - well - forget what you see through the boot process. The more interesting part is: will my changes come into play i.e. will I see them now in the running-config?!&amp;nbsp;&lt;STRONG&gt;No I won't!&lt;/STRONG&gt;&amp;nbsp;Why? There's this little innocent line at the end of your startup-config "..crypto checksum.." - which I believe is the "culprit".&lt;/P&gt;
&lt;P&gt;What could you do instead? Well - create a text-file with&amp;nbsp;&lt;STRONG&gt;exactly&lt;/STRONG&gt;&amp;nbsp;the commands you need, to change, what you want to be changed. In my case change interface configuration of the outside and routing (no route.. and route ....)&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Upload this file to flash&lt;/LI&gt;
&lt;LI&gt;Connect via CLI&lt;/LI&gt;
&lt;LI&gt;Copy the text-file to running-config (copy &amp;lt;name of file&amp;gt; running-config)&lt;/LI&gt;
&lt;LI&gt;Hope that you hadn't made a mistake &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I thought that the running-config would be overwritten - hm - it's merging, to be true. The ASA would only alter the parts of running-configuration that I had mentioned in the file I had uploaded to flash and copied to running-config. Save your config &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Has anybody an idea how you would be able to use the boot config boot-variable to actually force the ASA at next reload to come up with a lets say totally different configuration?! Lets say we change the working mode of the ASA from routed to transparent! Hint: crypto checksum of the config-file?!&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Looking forward to your answers.&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2019 07:44:41 GMT</pubDate>
    <dc:creator>FlorianCokl</dc:creator>
    <dc:date>2019-03-12T07:44:41Z</dc:date>
    <item>
      <title>ASA and the boot config command from CLI</title>
      <link>https://community.cisco.com/t5/network-security/asa-and-the-boot-config-command-from-cli/m-p/2914313#M153918</link>
      <description>&lt;P&gt;Hello Guys&lt;/P&gt;
&lt;P&gt;I wanted to use this forum to collect experience from others about using the boot config command i.e. setting a boot variable to load from a different config file.&lt;/P&gt;
&lt;P&gt;Here is what I've found out:&lt;/P&gt;
&lt;P&gt;Usually the startup-config is NOT visible on the ASA. Once you set the boot variable (either through CLI or ASDM) the startup-config becomes "just visible" in flash.&lt;/P&gt;
&lt;P&gt;I recently had a situation - needed to change IP-Adresses and routing on the outside interface of an ASA without having access to the console - just SSH and or ASDM. Here is what I've found out - what I did.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Copied some text-file to the flash&lt;/LI&gt;
&lt;LI&gt;Saved the running-config&lt;/LI&gt;
&lt;LI&gt;Changed the boot-variable to the name of "some text-file"&lt;/LI&gt;
&lt;LI&gt;Saved the running-config&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Now - the "some text-file" in flash would be overwritten with the actual running-config of the ASA - ok.&lt;/P&gt;
&lt;P&gt;Try this at home, in the lab, with an ASA you have access to via console-cable! Lets do the following:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Download the now filled with running-config&amp;nbsp;"some text-file" to your local PC&lt;/LI&gt;
&lt;LI&gt;Make the changes you wanted in that text-file&lt;/LI&gt;
&lt;LI&gt;Upload the changed "some text-file" back to ASA i.e. overwrite the existing one in flash&lt;/LI&gt;
&lt;LI&gt;Reload the Device&lt;/LI&gt;
&lt;LI&gt;Watch carefully the CLI!&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;What your going to see - well - forget what you see through the boot process. The more interesting part is: will my changes come into play i.e. will I see them now in the running-config?!&amp;nbsp;&lt;STRONG&gt;No I won't!&lt;/STRONG&gt;&amp;nbsp;Why? There's this little innocent line at the end of your startup-config "..crypto checksum.." - which I believe is the "culprit".&lt;/P&gt;
&lt;P&gt;What could you do instead? Well - create a text-file with&amp;nbsp;&lt;STRONG&gt;exactly&lt;/STRONG&gt;&amp;nbsp;the commands you need, to change, what you want to be changed. In my case change interface configuration of the outside and routing (no route.. and route ....)&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Upload this file to flash&lt;/LI&gt;
&lt;LI&gt;Connect via CLI&lt;/LI&gt;
&lt;LI&gt;Copy the text-file to running-config (copy &amp;lt;name of file&amp;gt; running-config)&lt;/LI&gt;
&lt;LI&gt;Hope that you hadn't made a mistake &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I thought that the running-config would be overwritten - hm - it's merging, to be true. The ASA would only alter the parts of running-configuration that I had mentioned in the file I had uploaded to flash and copied to running-config. Save your config &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Has anybody an idea how you would be able to use the boot config boot-variable to actually force the ASA at next reload to come up with a lets say totally different configuration?! Lets say we change the working mode of the ASA from routed to transparent! Hint: crypto checksum of the config-file?!&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Looking forward to your answers.&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 07:44:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/asa-and-the-boot-config-command-from-cli/m-p/2914313#M153918</guid>
      <dc:creator>FlorianCokl</dc:creator>
      <dc:date>2019-03-12T07:44:41Z</dc:date>
    </item>
  </channel>
</rss>

