<?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: Automate the VPN show and test commands to check the tunnel status and make it UP in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/automate-the-vpn-show-and-test-commands-to-check-the-tunnel/m-p/454665#M2862</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/169649"&gt;@Sambhu21&lt;/a&gt;, if you configure tunnel monitoring within PAN-OS (&lt;A href="https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-admin/vpns/set-up-site-to-site-vpn/set-up-tunnel-monitoring.html#ida640225c-92d3-4fcb-a4b3-274777fd063c" target="_self"&gt;link&lt;/A&gt;), pings will be sent across the tunnel at regular intervals and the tunnel will not go down due to inactivity.&lt;BR /&gt;&lt;BR /&gt;For PowerShell specifically, there is a wrapper developed within the community that may help, you may wish to use &lt;A href="https://poweralto.com/en/latest/cmdlets/Invoke-PaApiOperation/" target="_self"&gt;this&lt;/A&gt; for example to execute operational commands. However, it would be better to stop the tunnel going down in the first place, rather than focusing on automating the recovery.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 11:00:48 GMT</pubDate>
    <dc:creator>JimmyHolland</dc:creator>
    <dc:date>2021-12-21T11:00:48Z</dc:date>
    <item>
      <title>Automate the VPN show and test commands to check the tunnel status and make it UP</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/automate-the-vpn-show-and-test-commands-to-check-the-tunnel/m-p/454631#M2861</link>
      <description>&lt;P&gt;We have some&amp;nbsp; tunnel goes down frequently so we are planning to bring up the tunnel with&amp;nbsp; automation ( For the Monitoring team to check the status and make it UP using test command).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to run below commands with some batch file/exe using powershell. My idea is to create batch file for each tunnel and run it when the same is down/alert is coming.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#show&amp;nbsp;vpn ipsec-sa tunnel &amp;lt;Tunnel name&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#test vpn ipsec-sa tunnel &amp;lt;Tunnel name&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 06:30:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/automate-the-vpn-show-and-test-commands-to-check-the-tunnel/m-p/454631#M2861</guid>
      <dc:creator>Sambhu21</dc:creator>
      <dc:date>2021-12-21T06:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Automate the VPN show and test commands to check the tunnel status and make it UP</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/automate-the-vpn-show-and-test-commands-to-check-the-tunnel/m-p/454665#M2862</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/169649"&gt;@Sambhu21&lt;/a&gt;, if you configure tunnel monitoring within PAN-OS (&lt;A href="https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-admin/vpns/set-up-site-to-site-vpn/set-up-tunnel-monitoring.html#ida640225c-92d3-4fcb-a4b3-274777fd063c" target="_self"&gt;link&lt;/A&gt;), pings will be sent across the tunnel at regular intervals and the tunnel will not go down due to inactivity.&lt;BR /&gt;&lt;BR /&gt;For PowerShell specifically, there is a wrapper developed within the community that may help, you may wish to use &lt;A href="https://poweralto.com/en/latest/cmdlets/Invoke-PaApiOperation/" target="_self"&gt;this&lt;/A&gt; for example to execute operational commands. However, it would be better to stop the tunnel going down in the first place, rather than focusing on automating the recovery.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 11:00:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/automate-the-vpn-show-and-test-commands-to-check-the-tunnel/m-p/454665#M2862</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2021-12-21T11:00:48Z</dc:date>
    </item>
  </channel>
</rss>

