<?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 Ansible - Backup config in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-backup-config/m-p/315760#M2223</link>
    <description>&lt;P&gt;I'm having a hard time understanding why I can't just use something like this to backup the my Palo.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;Backup up config - Palo Alto&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;panos_type_cmd&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cmd&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;show&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;xpath&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"/config/devices/entry/deviceconfig/system"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ip_address&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'{{ ansible_host }}'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;username&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'{{ ansible_user }}'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;password&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'{{ ansible_ssh_pass }}'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;It seems like there should be an easy way to issue the command and save the output to a variable and then store the output onto a file.&lt;/DIV&gt;&lt;DIV&gt;Am I going down the wrong path with this?&lt;/DIV&gt;&lt;DIV&gt;and what exactly is xpath?&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 11 Mar 2020 16:52:11 GMT</pubDate>
    <dc:creator>jxjoseph</dc:creator>
    <dc:date>2020-03-11T16:52:11Z</dc:date>
    <item>
      <title>Ansible - Backup config</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-backup-config/m-p/315760#M2223</link>
      <description>&lt;P&gt;I'm having a hard time understanding why I can't just use something like this to backup the my Palo.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;Backup up config - Palo Alto&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;panos_type_cmd&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cmd&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;show&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;xpath&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"/config/devices/entry/deviceconfig/system"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ip_address&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'{{ ansible_host }}'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;username&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'{{ ansible_user }}'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;password&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'{{ ansible_ssh_pass }}'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;It seems like there should be an easy way to issue the command and save the output to a variable and then store the output onto a file.&lt;/DIV&gt;&lt;DIV&gt;Am I going down the wrong path with this?&lt;/DIV&gt;&lt;DIV&gt;and what exactly is xpath?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Mar 2020 16:52:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-backup-config/m-p/315760#M2223</guid>
      <dc:creator>jxjoseph</dc:creator>
      <dc:date>2020-03-11T16:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Backup config</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-backup-config/m-p/338045#M2404</link>
      <description>&lt;P&gt;Try using the panos_facts module. However, this doesn't support panorama. But, you can all managed devices through panorama using respective device serial numbers.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 09:54:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-backup-config/m-p/338045#M2404</guid>
      <dc:creator>ljeevanandam</dc:creator>
      <dc:date>2020-07-13T09:54:28Z</dc:date>
    </item>
  </channel>
</rss>

