<?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: Content Installation failing due to pending downloading job in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/content-installation-failing-due-to-pending-downloading-job/m-p/461389#M2892</link>
    <description>&lt;P&gt;Hi Jimmy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for explanation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually i am running all commands with script, manually we can wait and trigger but want to automate all the stuff.&lt;/P&gt;&lt;P&gt;anyone knows best option to download and install using scrip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jan 2022 13:12:38 GMT</pubDate>
    <dc:creator>Srikant</dc:creator>
    <dc:date>2022-01-27T13:12:38Z</dc:date>
    <item>
      <title>Content Installation failing due to pending downloading job</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/content-installation-failing-due-to-pending-downloading-job/m-p/444071#M2819</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a script to automate some configuration with bash, its failing to install contents as downloading job not finished yet, what command can be used to wait until job finish?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;request content upgrade check&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;request content upgrade download sync-to-peer no force yes latest&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;request content upgrade install commit yes sync-to-peer no disable-new-content yes force yes skip-content-validity-check yes version latest&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;any help appreciated.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Oct 2021 12:47:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/content-installation-failing-due-to-pending-downloading-job/m-p/444071#M2819</guid>
      <dc:creator>Srikant</dc:creator>
      <dc:date>2021-10-28T12:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Content Installation failing due to pending downloading job</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/content-installation-failing-due-to-pending-downloading-job/m-p/445212#M2823</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/184360"&gt;@Srikant&lt;/a&gt;, when you initiate the content download, you would need to wait for the download to finish, by observing the "job ID" of the download. Here is an example, the download command gives the job ID (875), then in your script you would need to watch the job status until it moves from status:ACT (active) to status:FIN (finished), check that result was "OK", then proceed to do the install...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;admin@james-vm-series-a(active)&amp;gt; request content upgrade download sync-to-peer no force yes latest

Download job enqueued with jobid 875
875

admin@james-vm-series-a(active)&amp;gt; show jobs id 875

Enqueued              Dequeued           ID                              Type                         Status Result Completed 
------------------------------------------------------------------------------------------------------------------------------
2021/11/03 12:32:49   12:32:49          875                            Downld                            ACT   PEND        99%
Warnings:

Details:


admin@james-vm-series-a(active)&amp;gt; show jobs id 875

Enqueued              Dequeued           ID                              Type                         Status Result Completed 
------------------------------------------------------------------------------------------------------------------------------
2021/11/03 12:32:49   12:32:49          875                            Downld                            FIN     OK 12:32:51  
Warnings:

Details:File successfully downloaded&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 12:37:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/content-installation-failing-due-to-pending-downloading-job/m-p/445212#M2823</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2021-11-03T12:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Content Installation failing due to pending downloading job</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/content-installation-failing-due-to-pending-downloading-job/m-p/461389#M2892</link>
      <description>&lt;P&gt;Hi Jimmy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for explanation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually i am running all commands with script, manually we can wait and trigger but want to automate all the stuff.&lt;/P&gt;&lt;P&gt;anyone knows best option to download and install using scrip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 13:12:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/content-installation-failing-due-to-pending-downloading-job/m-p/461389#M2892</guid>
      <dc:creator>Srikant</dc:creator>
      <dc:date>2022-01-27T13:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Content Installation failing due to pending downloading job</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/content-installation-failing-due-to-pending-downloading-job/m-p/463109#M2901</link>
      <description>&lt;P&gt;There is a ready-made playbook in Ansible &lt;A href="https://github.com/PaloAltoNetworks/ansible-playbooks/blob/master/upgrade_content.yml" target="_self"&gt;here&lt;/A&gt; if you are interested, from a repository of other &lt;A href="https://github.com/PaloAltoNetworks/ansible-playbooks" target="_self"&gt;really useful Ansible playbooks&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, in bash, it might look something like &lt;A href="https://github.com/jamesholland-uk/playground/blob/main/content_install.sh" target="_self"&gt;this script&lt;/A&gt;?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$ ./content_install.sh
Download status: ACT
Download status: FIN
Install status: ACT
Install status: ACT
Install status: ACT
Install status: ACT
Install status: ACT
Install status: ACT
Install status: ACT
Install status: FIN&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 17:08:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/content-installation-failing-due-to-pending-downloading-job/m-p/463109#M2901</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2022-02-03T17:08:56Z</dc:date>
    </item>
  </channel>
</rss>

