<?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: different content of backup files. in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/different-content-of-backup-files/m-p/220144#M63524</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/7608"&gt;@reaper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;do you get a longer config file if you try without the trailing&amp;nbsp;"&amp;gt; running-config.xml"&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, that doesn't make a difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/7608"&gt;@reaper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;as I just ran through the basic troubleshooting steps myself: did you count &lt;EM&gt;lines&lt;/EM&gt; or &lt;EM&gt;characters&lt;/EM&gt;?&lt;/P&gt;&lt;P&gt;the API export in a browser (and the one fetched from a config export) nicely respects XML 'markup' while the curl 'write' will simply drop everything in a flat file so where the XML nicely lists a single&amp;nbsp;attribute per 'line' the curl output will have&amp;nbsp;everything on the same line inless the config contains a break&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think you are right. It's the markup. I imported such a config into the firewall and I was able to load and commit the configuration. So everything is fine. Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jul 2018 12:40:25 GMT</pubDate>
    <dc:creator>MPI-AE</dc:creator>
    <dc:date>2018-07-02T12:40:25Z</dc:date>
    <item>
      <title>different content of backup files.</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/different-content-of-backup-files/m-p/218814#M63230</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;&lt;P&gt;I'm using curl and the xml api to automtically backup the config of my PA-3020:&lt;/P&gt;&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/Management-Articles/How-To-Backup-of-Config-Files-Periodically-without-Panorama/ta-p/77312" target="_blank"&gt;https://live.paloaltonetworks.com/t5/Management-Articles/How-To-Backup-of-Config-Files-Periodically-without-Panorama/ta-p/77312&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the content of that file looks completely different compared to a manual backup. device -&amp;gt; setup -&amp;gt; operations -&amp;gt; save and export named configuration snapshot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;automatic backup: 1.000 lines&lt;/P&gt;&lt;P&gt;manual backup: 27.000 lines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;automatic backup: file type: xml file&lt;/P&gt;&lt;P&gt;manual backup: file type: file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;automatic backup: very cryptic&lt;/P&gt;&lt;P&gt;manual backup: compete config in cleartext&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's the deal?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 09:04:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/different-content-of-backup-files/m-p/218814#M63230</guid>
      <dc:creator>MPI-AE</dc:creator>
      <dc:date>2018-06-22T09:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: different content of backup files.</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/different-content-of-backup-files/m-p/218867#M63237</link>
      <description>&lt;P&gt;Are you running the command through curl or wget?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried simply performing the fetch in a browser to see what the 'normal' output looks luke:&lt;/P&gt;
&lt;P&gt;https://&amp;lt;IP&amp;gt;/api/?type=export&amp;amp;category=configuration&amp;amp;key=&amp;lt;KEY&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 13:37:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/different-content-of-backup-files/m-p/218867#M63237</guid>
      <dc:creator>reaper</dc:creator>
      <dc:date>2018-06-22T13:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: different content of backup files.</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/different-content-of-backup-files/m-p/219243#M63304</link>
      <description>&lt;P&gt;I'm running the command through curl -kG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fetch in the browser is normal.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 09:37:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/different-content-of-backup-files/m-p/219243#M63304</guid>
      <dc:creator>MPI-AE</dc:creator>
      <dc:date>2018-06-26T09:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: different content of backup files.</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/different-content-of-backup-files/m-p/219245#M63306</link>
      <description>&lt;P&gt;Have you tried running the command from a different machine? Since the command works fine from a browser, the issue is likely how curl writes to the file. Maybe there's a local buffering issue or file access issue,...&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 10:04:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/different-content-of-backup-files/m-p/219245#M63306</guid>
      <dc:creator>reaper</dc:creator>
      <dc:date>2018-06-26T10:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: different content of backup files.</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/different-content-of-backup-files/m-p/219248#M63307</link>
      <description>&lt;P&gt;I'm running the curl command from an Ubuntu system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm doing the https access from firefox of my windows 10 machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But https acccess isn't the same a curl, is it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You also spoke about wget.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I supposed to do now?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just followed the manual.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 10:24:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/different-content-of-backup-files/m-p/219248#M63307</guid>
      <dc:creator>MPI-AE</dc:creator>
      <dc:date>2018-06-26T10:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: different content of backup files.</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/different-content-of-backup-files/m-p/219249#M63308</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;curl simply launches an address the same way a browser does. we established the command you put in curl does work properly when put into a browser, next up is trying to determine why curl appears to write only part of the config received from API&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do you get a longer config file if you try without the trailing&amp;nbsp;"&amp;gt; running-config.xml"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as I just ran through the basic troubleshooting steps myself: did you count &lt;EM&gt;lines&lt;/EM&gt; or &lt;EM&gt;characters&lt;/EM&gt;?&lt;/P&gt;
&lt;P&gt;the API export in a browser (and the one fetched from a config export) nicely respects XML 'markup' while the curl 'write' will simply drop everything in a flat file so where the XML nicely lists a single&amp;nbsp;attribute per 'line' the curl output will have&amp;nbsp;everything on the same line inless the config contains a break&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-06 lia-quilt-column-right lia-quilt-column-side-content"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Jun 2018 10:47:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/different-content-of-backup-files/m-p/219249#M63308</guid>
      <dc:creator>reaper</dc:creator>
      <dc:date>2018-06-26T10:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: different content of backup files.</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/different-content-of-backup-files/m-p/220144#M63524</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/7608"&gt;@reaper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;do you get a longer config file if you try without the trailing&amp;nbsp;"&amp;gt; running-config.xml"&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, that doesn't make a difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/7608"&gt;@reaper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;as I just ran through the basic troubleshooting steps myself: did you count &lt;EM&gt;lines&lt;/EM&gt; or &lt;EM&gt;characters&lt;/EM&gt;?&lt;/P&gt;&lt;P&gt;the API export in a browser (and the one fetched from a config export) nicely respects XML 'markup' while the curl 'write' will simply drop everything in a flat file so where the XML nicely lists a single&amp;nbsp;attribute per 'line' the curl output will have&amp;nbsp;everything on the same line inless the config contains a break&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think you are right. It's the markup. I imported such a config into the firewall and I was able to load and commit the configuration. So everything is fine. Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 12:40:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/different-content-of-backup-files/m-p/220144#M63524</guid>
      <dc:creator>MPI-AE</dc:creator>
      <dc:date>2018-07-02T12:40:25Z</dc:date>
    </item>
  </channel>
</rss>

