<?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: Expect Scripts in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/expect-scripts/m-p/11097#M302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Such scripts would be run from a trusted PC used to remotely manage the PA device.&amp;nbsp; A read-write administrator account would be created for their use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not a good idea to venture into such things unless you are very comfortable with shell scripting and Perl, and the management PC is very, very secure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend that if you dabble with automating things, begin with read-only access to pull stats and such before graduating to more complicated and dangerous activities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Palo Alto PAN-perl-20110828.tar.gz package has examples for use of Perl and Expect.&amp;nbsp; I posted a simple Perl Net::OpenSSH script in this forum.&amp;nbsp; There's also the XML API, see docs DOC-1031.pdf and DOC-1714.pdf to get started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most automation approaches require a Linux managment PC, although I imagine that a person would be able to use Windows and something like AutoIT or other batch tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Sep 2011 18:28:55 GMT</pubDate>
    <dc:creator>MashRotor</dc:creator>
    <dc:date>2011-09-23T18:28:55Z</dc:date>
    <item>
      <title>Expect Scripts</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/expect-scripts/m-p/11096#M301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see there are a couple of Expect scripts on the PA support site. 1 of them can be used to automate config changes. However, the doc does not explain how to use them. Do the scripts run on a host PC or on the PAN device? How specifically do I get them to run? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 19:50:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/expect-scripts/m-p/11096#M301</guid>
      <dc:creator>TomH</dc:creator>
      <dc:date>2011-09-21T19:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expect Scripts</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/expect-scripts/m-p/11097#M302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Such scripts would be run from a trusted PC used to remotely manage the PA device.&amp;nbsp; A read-write administrator account would be created for their use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not a good idea to venture into such things unless you are very comfortable with shell scripting and Perl, and the management PC is very, very secure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend that if you dabble with automating things, begin with read-only access to pull stats and such before graduating to more complicated and dangerous activities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Palo Alto PAN-perl-20110828.tar.gz package has examples for use of Perl and Expect.&amp;nbsp; I posted a simple Perl Net::OpenSSH script in this forum.&amp;nbsp; There's also the XML API, see docs DOC-1031.pdf and DOC-1714.pdf to get started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most automation approaches require a Linux managment PC, although I imagine that a person would be able to use Windows and something like AutoIT or other batch tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 18:28:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/expect-scripts/m-p/11097#M302</guid>
      <dc:creator>MashRotor</dc:creator>
      <dc:date>2011-09-23T18:28:55Z</dc:date>
    </item>
  </channel>
</rss>

