<?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: Any way to copy objects from one firewall pair to another? in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/273605#M75052</link>
    <description>&lt;P&gt;worked like gem. Thank you so much&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/113304"&gt;@S.Cantwell&lt;/a&gt;&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/43480"&gt;@BPry&lt;/a&gt;&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/109121"&gt;@a.jones&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you are awesome.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2019 17:07:19 GMT</pubDate>
    <dc:creator>SThatipelly</dc:creator>
    <dc:date>2019-06-27T17:07:19Z</dc:date>
    <item>
      <title>Any way to copy objects from one firewall pair to another?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/272936#M74979</link>
      <description>&lt;P&gt;Any way to copy objects and object groups from one firewall pair to another?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 17:25:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/272936#M74979</guid>
      <dc:creator>SThatipelly</dc:creator>
      <dc:date>2019-06-25T17:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to copy objects from one firewall pair to another?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/272937#M74980</link>
      <description>&lt;P&gt;Excellent question!!!&amp;nbsp;&amp;nbsp; Yes this can be done.&lt;/P&gt;&lt;P&gt;I would like you read/understand this link:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.paloaltonetworks.com/pan-os/8-0/pan-os-cli-quick-start/use-the-cli/load-configurations/load-a-partial-configuration#" target="_blank" rel="noopener"&gt;https://docs.paloaltonetworks.com/pan-os/8-0/pan-os-cli-quick-start/use-the-cli/load-configurations/load-a-partial-configuration#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially, from one FW that has the objects/groups, you will save that config off to a named config (say... partial.xml)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next, import the partial.xml file onto the other FW, but do NOT commit; just get it onto the HDD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next, from CLI the command is going to be&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="ph userinput"&gt;load config partial from &amp;lt;filename&amp;gt; from-xpath &amp;lt;source-xpath&amp;gt; to-xpath &amp;lt;destination-xpath&amp;gt; mode [append|merge|replace]&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I am not aware of how to get ALL objects from a single config merged into a new config.&lt;/P&gt;&lt;P&gt;This is but a very small snippet of what can be done with the xml file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Address &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;load config partial from test2.xml from-xpath /config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/address to-xpath /config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/address mode merge &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Address Group&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;load config partial from test2.xml from-xpath /config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/address-group to-xpath /config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/address-group mode merge&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;The above will move ONLY the address objects and then Address Group objects into the config.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;If you have service objects/groups, that is a similar pattern, but the path is located differently.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Enjoy!&amp;nbsp; And welcome to advance FW configuration/administration!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 20:34:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/272937#M74980</guid>
      <dc:creator>S.Cantwell</dc:creator>
      <dc:date>2019-06-25T20:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to copy objects from one firewall pair to another?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/272938#M74981</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/70284"&gt;@SThatipelly&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The Expedition tool can easily do this through a merge function, you could do it manually through the XML file directly, or if you need them to match on an on-going basis and don't have access to Panorama you could template the XML file via Jinja2 and recreate the function via Python.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 17:54:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/272938#M74981</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2019-06-25T17:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to copy objects from one firewall pair to another?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/273107#M74996</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/113304"&gt;@S.Cantwell&lt;/a&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/43480"&gt;@BPry&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so mcuh for the responses. I tried doing the partial config thing but my firewall says invalid syantax. it won't recognize the commadn after from{filename}. I am in config mode.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 13:08:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/273107#M74996</guid>
      <dc:creator>SThatipelly</dc:creator>
      <dc:date>2019-06-26T13:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to copy objects from one firewall pair to another?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/273209#M75014</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/70284"&gt;@SThatipelly&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;There was an issue on a subset of PAN-OS images that 'from' was the command termination point and needed to be done at the end of the command, similar to profile-setting when creating a security rulebase entry. Try moving that to the end of your command, as order doesn't really matter once the command is issued.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 18:33:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/273209#M75014</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2019-06-26T18:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to copy objects from one firewall pair to another?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/273389#M75029</link>
      <description>&lt;P&gt;I would have used CLI for this. Refer to &lt;A href="https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClHNCA0" target="_blank"&gt;https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClHNCA0&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the data is in a VSYS you just need to amend the lines in Notepad to add or change the VSYS - again relatively painless.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used this for a number of ongoing migrations where I do not have full access to the back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 07:10:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/273389#M75029</guid>
      <dc:creator>a.jones</dc:creator>
      <dc:date>2019-06-27T07:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to copy objects from one firewall pair to another?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/273515#M75043</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/113304"&gt;@S.Cantwell&lt;/a&gt;&amp;nbsp;For some reason it is giving me an error. can you please help me puttting in the right command? Say my firewall hostname is fw-a and domain name is abc.com. I'm putting in&amp;nbsp;&lt;SPAN&gt;@name='fw-a.abc.com' . Please correct me if I'm wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 13:10:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/273515#M75043</guid>
      <dc:creator>SThatipelly</dc:creator>
      <dc:date>2019-06-27T13:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to copy objects from one firewall pair to another?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/273516#M75044</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/109121"&gt;@a.jones&lt;/a&gt;&amp;nbsp;Thanks Jones. Yes I did try this but for some address groups which has 300 address objects in it, it's very tedious to copy the whole output and paste in one line. But this was very helpful in address and service objects.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 13:11:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/273516#M75044</guid>
      <dc:creator>SThatipelly</dc:creator>
      <dc:date>2019-06-27T13:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to copy objects from one firewall pair to another?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/273523#M75045</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/70284"&gt;@SThatipelly&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If you have over 300 objects you are trying to merge in, I would really recommend doing this simply in the XML file. I could help with that if neeeded, but it would be far faster to just do it manually if you can't get the merge function to work correctly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 13:15:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/273523#M75045</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2019-06-27T13:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to copy objects from one firewall pair to another?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/273603#M75051</link>
      <description>&lt;P&gt;Ah... I see what you are saying... Let me clarify.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You would not change the entry to match your FW domain&lt;/P&gt;&lt;P&gt;Keep it just as&amp;nbsp;&lt;SPAN&gt;/config/devices/entry[@name='localhost.localdomain']&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;using localhost.localdomain. (dont put in FW-A.abc)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 17:00:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/273603#M75051</guid>
      <dc:creator>S.Cantwell</dc:creator>
      <dc:date>2019-06-27T17:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to copy objects from one firewall pair to another?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/273605#M75052</link>
      <description>&lt;P&gt;worked like gem. Thank you so much&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/113304"&gt;@S.Cantwell&lt;/a&gt;&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/43480"&gt;@BPry&lt;/a&gt;&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/109121"&gt;@a.jones&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you are awesome.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 17:07:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/273605#M75052</guid>
      <dc:creator>SThatipelly</dc:creator>
      <dc:date>2019-06-27T17:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to copy objects from one firewall pair to another?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/275068#M75225</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/113304"&gt;@S.Cantwell&lt;/a&gt;&amp;nbsp;I copied pretty much everything but security policies. I am trying&amp;nbsp;&lt;SPAN&gt;/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/security-plocy but it says incorrect syntax.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;am I missing any syntax here for security policies?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 13:54:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/any-way-to-copy-objects-from-one-firewall-pair-to-another/m-p/275068#M75225</guid>
      <dc:creator>SThatipelly</dc:creator>
      <dc:date>2019-07-05T13:54:16Z</dc:date>
    </item>
  </channel>
</rss>

