<?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 Replace option via CLI - can you do it? in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/replace-option-via-cli-can-you-do-it/m-p/27315#M19925</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;I have a situation on my PAN where I need to replace all instances of a given IP address (it's a "Next Hop" address in the virtual router) with a different IP address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Through the GUI, I can only delete and re-enter all the access routes - time consuming, given there are about 35 of them concernedf with this change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a command from the CLI will is the equivalent of Juniper's "replace" command which allows you to do a search/replace for all given instances of a string int he current running configuration?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've searched the CLI guide but can't seem to find anything obvious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Failing that, is tehre a way via the GUI to edit/replace all instances of a next-hop address other than deleting each access-route and re-entering it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2011 03:40:11 GMT</pubDate>
    <dc:creator>dagibbs</dc:creator>
    <dc:date>2011-05-03T03:40:11Z</dc:date>
    <item>
      <title>Replace option via CLI - can you do it?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/replace-option-via-cli-can-you-do-it/m-p/27315#M19925</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;I have a situation on my PAN where I need to replace all instances of a given IP address (it's a "Next Hop" address in the virtual router) with a different IP address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Through the GUI, I can only delete and re-enter all the access routes - time consuming, given there are about 35 of them concernedf with this change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a command from the CLI will is the equivalent of Juniper's "replace" command which allows you to do a search/replace for all given instances of a string int he current running configuration?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've searched the CLI guide but can't seem to find anything obvious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Failing that, is tehre a way via the GUI to edit/replace all instances of a next-hop address other than deleting each access-route and re-entering it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 03:40:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/replace-option-via-cli-can-you-do-it/m-p/27315#M19925</guid>
      <dc:creator>dagibbs</dc:creator>
      <dc:date>2011-05-03T03:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Replace option via CLI - can you do it?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/replace-option-via-cli-can-you-do-it/m-p/27316#M19926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To do a mass replace you could export the config file from the device tab, open the file in any text editor, replace all instances you want to replace and reimport the file back onto the device .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 07:23:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/replace-option-via-cli-can-you-do-it/m-p/27316#M19926</guid>
      <dc:creator>reaper</dc:creator>
      <dc:date>2011-05-03T07:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Replace option via CLI - can you do it?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/replace-option-via-cli-can-you-do-it/m-p/27317#M19927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following works for me in PAN-OS 4.0.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# change the output format of the CLI&lt;/P&gt;&lt;P&gt;set cli config-output-format set&lt;/P&gt;&lt;P&gt;# change to configure mode&lt;/P&gt;&lt;P&gt;configure&lt;/P&gt;&lt;P&gt;# display the current routing table&lt;/P&gt;&lt;P&gt;show network virtual-router default routing-table ip static-route&lt;/P&gt;&lt;P&gt;set network virtual-router default routing-table ip static-route network-192 destination 192.168.222.0/24&lt;/P&gt;&lt;P&gt;set network virtual-router default routing-table ip static-route network-192 nexthop ip-address 1.1.1.1&lt;/P&gt;&lt;P&gt;[edit] &lt;/P&gt;&lt;P&gt;# copy the output to a text editor and replace the IP&lt;/P&gt;&lt;P&gt;# paste the 'nexthop' lines into CLIset network virtual-router default routing-table ip static-route network-192 nexthop ip-address 1.1.1.2&lt;/P&gt;&lt;P&gt;# confirm the result before commiting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ulli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 13:20:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/replace-option-via-cli-can-you-do-it/m-p/27317#M19927</guid>
      <dc:creator>panwmod</dc:creator>
      <dc:date>2011-05-03T13:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Replace option via CLI - can you do it?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/replace-option-via-cli-can-you-do-it/m-p/27318#M19928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;P&gt;tpiens wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do a mass replace you could export the config file from the device tab, open the file in any text editor, replace all instances you want to replace and reimport the file back onto the device .&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah, I was hoping to avoid doing that. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "replace" keyword is one of JunOS's most useful CLI editing features, and since PanOS appears to be at least based on JunOS I was hoping it'd have something similar in CLI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guess I'll do it the hard way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 22:14:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/replace-option-via-cli-can-you-do-it/m-p/27318#M19928</guid>
      <dc:creator>dagibbs</dc:creator>
      <dc:date>2011-05-03T22:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Replace option via CLI - can you do it?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/replace-option-via-cli-can-you-do-it/m-p/27319#M19929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;P&gt;ulli.volk wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following works for me in PAN-OS 4.0.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;Sorry, my bad - I didn't specify OS version. I haven't upgraded to the 4.x stream yet - running 3.1.8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 22:16:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/replace-option-via-cli-can-you-do-it/m-p/27319#M19929</guid>
      <dc:creator>dagibbs</dc:creator>
      <dc:date>2011-05-03T22:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Replace option via CLI - can you do it?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/replace-option-via-cli-can-you-do-it/m-p/27320#M19930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just tried it on my test box running 3.1.7, seems to works as well.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ulli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 May 2011 00:58:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/replace-option-via-cli-can-you-do-it/m-p/27320#M19930</guid>
      <dc:creator>panwmod</dc:creator>
      <dc:date>2011-05-07T00:58:55Z</dc:date>
    </item>
  </channel>
</rss>

