<?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: Importing anti-virus content using cURL and XML-API in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/importing-anti-virus-content-using-curl-and-xml-api/m-p/25574#M653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer. Yes I was trying to import to the device using the target parameter in panorama. I ran a support case on it an Palo Alto told me that it's not possible to use the target parameter with import. Thankfully i was able to solve my problem without needing to import any files. So in the end it wasn't a problem:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jun 2013 12:27:56 GMT</pubDate>
    <dc:creator>sondreha</dc:creator>
    <dc:date>2013-06-25T12:27:56Z</dc:date>
    <item>
      <title>Importing anti-virus content using cURL and XML-API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/importing-anti-virus-content-using-curl-and-xml-api/m-p/25572#M651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm writing a script to automate installation of new anti-virus content. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The anti-virus content is downloaded from &lt;/SPAN&gt;&lt;EM style="font-size: 10pt; line-height: 1.5em;"&gt;dynamic updates&lt;/EM&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; on the palo alto support site.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The problem arises when I try to import the new anti-virus content using the following command:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;curl --insecure --form file=@ANTI-VIRUS_CONTENT_FILE "//firewall/api?key=GENERATED_KEY&amp;amp;type=import&amp;amp;category=anti-virus"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file seems to be uploaded but I can not see it on the firewall and I get the following xml response:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;response status="error" code="17"&amp;gt;&amp;lt;msg&amp;gt;&amp;lt;/msg&amp;gt;&amp;lt;/response&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm running PAN-OS 5.0.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am i doing wrong?&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 10:13:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/importing-anti-virus-content-using-curl-and-xml-api/m-p/25572#M651</guid>
      <dc:creator>sondreha</dc:creator>
      <dc:date>2013-06-12T10:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Importing anti-virus content using cURL and XML-API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/importing-anti-virus-content-using-curl-and-xml-api/m-p/25573#M652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's the right query. I just tried it on my PA-200 on PAN-OS 5.0.4-h1 and it works right. Are you trying this to the device via Panorama using the target parameter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 22:36:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/importing-anti-virus-content-using-curl-and-xml-api/m-p/25573#M652</guid>
      <dc:creator>SRA</dc:creator>
      <dc:date>2013-06-19T22:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Importing anti-virus content using cURL and XML-API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/importing-anti-virus-content-using-curl-and-xml-api/m-p/25574#M653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer. Yes I was trying to import to the device using the target parameter in panorama. I ran a support case on it an Palo Alto told me that it's not possible to use the target parameter with import. Thankfully i was able to solve my problem without needing to import any files. So in the end it wasn't a problem:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 12:27:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/importing-anti-virus-content-using-curl-and-xml-api/m-p/25574#M653</guid>
      <dc:creator>sondreha</dc:creator>
      <dc:date>2013-06-25T12:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Importing anti-virus content using cURL and XML-API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/importing-anti-virus-content-using-curl-and-xml-api/m-p/25575#M654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;how did you manage to download the content? My script for importing the update are ok. (using plink) But I am searching for a method to download the updates for the PA site.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ralph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 09:11:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/importing-anti-virus-content-using-curl-and-xml-api/m-p/25575#M654</guid>
      <dc:creator>rneser</dc:creator>
      <dc:date>2013-08-13T09:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Importing anti-virus content using cURL and XML-API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/importing-anti-virus-content-using-curl-and-xml-api/m-p/25576#M655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #575757; font-size: 10pt;"&gt;I used a combination of the perl modules WWW::Mechanize and Mojo::DOM. WWW::Mechanize to log in to the support site and get the page with the link to the content and Mojo::DOM to extract the link using CSS-selectors and then downloaded it using wget. The code is &lt;A href="http://ge.tt/8RAbPmo/v/0"&gt;here&lt;/A&gt;. It's the downloadContentVersion subroutine that does the job. The code is terribly messy. It was only used for testing. and then i found that it was easier to do it all through panorama and dropped the code. &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #575757; font-size: 10pt;"&gt;I made my final script available &lt;A href="https://live.paloaltonetworks.com/docs/DOC-5470"&gt;here&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 11:14:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/importing-anti-virus-content-using-curl-and-xml-api/m-p/25576#M655</guid>
      <dc:creator>sondreha</dc:creator>
      <dc:date>2013-08-13T11:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Importing anti-virus content using cURL and XML-API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/importing-anti-virus-content-using-curl-and-xml-api/m-p/25577#M656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your reply and help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ralph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 11:27:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/importing-anti-virus-content-using-curl-and-xml-api/m-p/25577#M656</guid>
      <dc:creator>rneser</dc:creator>
      <dc:date>2013-08-13T11:27:03Z</dc:date>
    </item>
  </channel>
</rss>

