<?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: Scheduling PANOS command using ssh? in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/scheduling-panos-command-using-ssh/m-p/30260#M22120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about using some flavor of Unix to execute a cron job to run at your discretion? The cron job can execute a perl script that entails ssh'ng into the pan device and executing the clear arp all command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an example of the crontab feature:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.pantz.org/software/cron/croninfo.html"&gt;http://www.pantz.org/software/cron/croninfo.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Renato&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Feb 2011 21:22:11 GMT</pubDate>
    <dc:creator>gswcowboy</dc:creator>
    <dc:date>2011-02-08T21:22:11Z</dc:date>
    <item>
      <title>Scheduling PANOS command using ssh?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/scheduling-panos-command-using-ssh/m-p/30259#M22119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to have a command run on our PAN at a scheduled interval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this can't be done "on-box" but I should be able to schedule a job to connect to the PAN and run the command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been experimenting with plink and whilst I can make it connect and give me an interactive shell, I simply cannot get it to connect and then run the command I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command is simply "clear arp all".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions please?&amp;nbsp; The tool doesn't have to be putty or plink.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 18:25:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/scheduling-panos-command-using-ssh/m-p/30259#M22119</guid>
      <dc:creator>networkadmin</dc:creator>
      <dc:date>2011-02-08T18:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling PANOS command using ssh?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/scheduling-panos-command-using-ssh/m-p/30260#M22120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about using some flavor of Unix to execute a cron job to run at your discretion? The cron job can execute a perl script that entails ssh'ng into the pan device and executing the clear arp all command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an example of the crontab feature:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.pantz.org/software/cron/croninfo.html"&gt;http://www.pantz.org/software/cron/croninfo.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Renato&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 21:22:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/scheduling-panos-command-using-ssh/m-p/30260#M22120</guid>
      <dc:creator>gswcowboy</dc:creator>
      <dc:date>2011-02-08T21:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling PANOS command using ssh?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/scheduling-panos-command-using-ssh/m-p/30261#M22121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I recommend you to use a linux environment and the use of the "expect" tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expect is very easy to use and you can create a file containing what command do you want to execute and which is the result we want to expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look this link &lt;A href="http://nixcraft.com/shell-scripting/12936-taking-command-line-argument-expect-script.html"&gt;http://nixcraft.com/shell-scripting/12936-taking-command-line-argument-expect-script.html&lt;/A&gt; its an example, If you have any questions can contact me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Albert Estevez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 08:39:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/scheduling-panos-command-using-ssh/m-p/30261#M22121</guid>
      <dc:creator>aestevez</dc:creator>
      <dc:date>2011-02-10T08:39:49Z</dc:date>
    </item>
  </channel>
</rss>

