<?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: Need help with scripting to palo alto using ssh in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/need-help-with-scripting-to-palo-alto-using-ssh/m-p/308905#M80109</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Current status:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-----------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Plink cannot connect to Palo&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Troubleshooting steps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-----------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- it can login but cannot execute&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Options:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Python&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- API&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- we need to use fw.expect with Python, be careful about 2.0 or 3.0 Python (commands different)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Discussion &amp;amp; Observations:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-----------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Palo doesn't have full bash CLI that is why Plink is not working&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tips for your firewall:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-----------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Scripting is not supported by brake and fix team&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Please contact your SE or RE, but I will try my best to assist&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please see KB:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-----------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/kevinsteves/pan-python" target="_blank" rel="noopener"&gt;https://github.com/kevinsteves/pan-python&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://pandevice.readthedocs.io/" target="_blank" rel="noopener"&gt;http://pandevice.readthedocs.io&lt;/A&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.paloaltonetworks.com/pan-os/8-1/pan-os-panorama-api.html" target="_blank" rel="noopener"&gt;https://docs.paloaltonetworks.com/pan-os/8-1/pan-os-panorama-api.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://x.x.x.x/api" target="_blank" rel="noopener"&gt;https://X.X.X.X/api&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;(put Panoram IP) redirects to&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://x.x.x.x/php/rest/browse.php" target="_blank" rel="noopener"&gt;https://X.X.X.X/php/rest/browse.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next steps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-----------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Please see example at&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://live.paloaltonetworks.com/t5/API-Articles/Scripts-Expect-scripts-for-Operational-and-Config-Automation/ta-p/59712" target="_blank" rel="noopener"&gt;https://live.paloaltonetworks.com/t5/API-Articles/Scripts-Expect-scripts-for-Operational-and-Config-Automation/ta-p/59712&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2020 14:48:28 GMT</pubDate>
    <dc:creator>dvukmirovic</dc:creator>
    <dc:date>2020-01-31T14:48:28Z</dc:date>
    <item>
      <title>Need help with scripting to palo alto using ssh</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/need-help-with-scripting-to-palo-alto-using-ssh/m-p/153587#M50692</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I'm trying to creating a script for a customer i Windows Batch (*.bat) that needs to login to a Palo Alto Firewall, run a few commands and then login to another firewall and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is a strict environment so no internet connection is available.&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;The goal is to login to upload the anti-virus and content offline-packs (Dynamic Updates )to a couple of Palo Alto devices from an SCP source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made the script&amp;nbsp;that can log into a Palo Alto using Puttys command line tool "plink.exe" and execute commands from a text file. The problem is that the SCP-server is requiring a password that outputs a prompt that is shown in the session window that I don't know how to send characters to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not find a way to solve this....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any good Windows Batch programmer here that can help me out or is there another way to simply upload the Dynamic Updates file to a destination on the firewall or do I really need to trigger the update from within the Palo Alto itself?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate any help I can get.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 11:44:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/need-help-with-scripting-to-palo-alto-using-ssh/m-p/153587#M50692</guid>
      <dc:creator>AntonKallgren</dc:creator>
      <dc:date>2017-04-21T11:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with scripting to palo alto using ssh</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/need-help-with-scripting-to-palo-alto-using-ssh/m-p/308905#M80109</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Current status:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-----------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Plink cannot connect to Palo&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Troubleshooting steps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-----------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- it can login but cannot execute&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Options:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Python&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- API&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- we need to use fw.expect with Python, be careful about 2.0 or 3.0 Python (commands different)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Discussion &amp;amp; Observations:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-----------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Palo doesn't have full bash CLI that is why Plink is not working&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tips for your firewall:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-----------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Scripting is not supported by brake and fix team&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Please contact your SE or RE, but I will try my best to assist&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please see KB:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-----------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/kevinsteves/pan-python" target="_blank" rel="noopener"&gt;https://github.com/kevinsteves/pan-python&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://pandevice.readthedocs.io/" target="_blank" rel="noopener"&gt;http://pandevice.readthedocs.io&lt;/A&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.paloaltonetworks.com/pan-os/8-1/pan-os-panorama-api.html" target="_blank" rel="noopener"&gt;https://docs.paloaltonetworks.com/pan-os/8-1/pan-os-panorama-api.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://x.x.x.x/api" target="_blank" rel="noopener"&gt;https://X.X.X.X/api&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;(put Panoram IP) redirects to&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://x.x.x.x/php/rest/browse.php" target="_blank" rel="noopener"&gt;https://X.X.X.X/php/rest/browse.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next steps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-----------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Please see example at&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://live.paloaltonetworks.com/t5/API-Articles/Scripts-Expect-scripts-for-Operational-and-Config-Automation/ta-p/59712" target="_blank" rel="noopener"&gt;https://live.paloaltonetworks.com/t5/API-Articles/Scripts-Expect-scripts-for-Operational-and-Config-Automation/ta-p/59712&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 14:48:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/need-help-with-scripting-to-palo-alto-using-ssh/m-p/308905#M80109</guid>
      <dc:creator>dvukmirovic</dc:creator>
      <dc:date>2020-01-31T14:48:28Z</dc:date>
    </item>
  </channel>
</rss>

