<?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: Checking if GlobalProtect status is active (connected) via script or command line in GlobalProtect Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-globalprotect-status-is-active-connected-via-script/m-p/535443#M3817</link>
    <description>&lt;P&gt;You are right. I tried to find if there are some documented windows terminal/powershell commands like the ones for Linux &lt;A href="https://docs.paloaltonetworks.com/globalprotect/5-1/globalprotect-app-user-guide/globalprotect-app-for-linux/disable-the-globalprotect-app-for-linux" target="_blank"&gt;https://docs.paloaltonetworks.com/globalprotect/5-1/globalprotect-app-user-guide/globalprotect-app-for-linux/disable-the-globalprotect-app-for-linux&lt;/A&gt; but I found an old post:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-global-protect-is-active-connected-via-script-or/td-p/505980" target="_blank"&gt;https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-global-protect-is-active-connected-via-script-or/td-p/505980&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;Get-NetAdapter | Where-Object {$_.InterfaceDescription -like "PANGP Virtual Ethernet Adapter*"} | Select-Object Status&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 22 Mar 2023 15:17:29 GMT</pubDate>
    <dc:creator>nikoolayy1</dc:creator>
    <dc:date>2023-03-22T15:17:29Z</dc:date>
    <item>
      <title>Checking if GlobalProtect status is active (connected) via script or command line</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-globalprotect-status-is-active-connected-via-script/m-p/534841#M3801</link>
      <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Hello Team,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I would like to find out if there's an way to check if GlobalProtect agent status is connected and VPN is active on Macintosh using bash or zsh command line or script.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 12:37:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-globalprotect-status-is-active-connected-via-script/m-p/534841#M3801</guid>
      <dc:creator>Eljay123</dc:creator>
      <dc:date>2023-03-17T12:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if GlobalProtect status is active (connected) via script or command line</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-globalprotect-status-is-active-connected-via-script/m-p/535428#M3813</link>
      <description>&lt;P&gt;Have you tested this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;SPAN&gt;"C:\Windows\system32\sc.exe" query pangps | find "STOPPED"&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="richTextArea slds-text-longform tile__title red-txt"&gt;sc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE&gt;&lt;SPAN&gt;query pangps | find "STOPPED"&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.crowdstrike.com/blog/exploiting-escalation-of-privileges-via-globalprotect-part-1/" target="_blank" rel="noopener"&gt;https://www.crowdstrike.com/blog/exploiting-escalation-of-privileges-via-globalprotect-part-1/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;"sc" seems the command line tool for this job.&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 14:26:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-globalprotect-status-is-active-connected-via-script/m-p/535428#M3813</guid>
      <dc:creator>nikoolayy1</dc:creator>
      <dc:date>2023-03-22T14:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if GlobalProtect status is active (connected) via script or command line</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-globalprotect-status-is-active-connected-via-script/m-p/535432#M3814</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/153031"&gt;@nikoolayy1&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wouldn't agree you could determine the status of GP tunnel (connected or not connected), just by looking at PanGPS service status.&lt;/P&gt;
&lt;P&gt;PanGPS service will still be running even if it is not currently connected to any GP gateway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/279977"&gt;@Eljay123&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;If you only need to know if GP is connected or not, you could probably just look at interfaces and see if tunnel interface for PanGP is present. You could also check routing table for routes pointing to the tunnel.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 14:46:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-globalprotect-status-is-active-connected-via-script/m-p/535432#M3814</guid>
      <dc:creator>aleksandar.astardzhiev</dc:creator>
      <dc:date>2023-03-22T14:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if GlobalProtect status is active (connected) via script or command line</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-globalprotect-status-is-active-connected-via-script/m-p/535443#M3817</link>
      <description>&lt;P&gt;You are right. I tried to find if there are some documented windows terminal/powershell commands like the ones for Linux &lt;A href="https://docs.paloaltonetworks.com/globalprotect/5-1/globalprotect-app-user-guide/globalprotect-app-for-linux/disable-the-globalprotect-app-for-linux" target="_blank"&gt;https://docs.paloaltonetworks.com/globalprotect/5-1/globalprotect-app-user-guide/globalprotect-app-for-linux/disable-the-globalprotect-app-for-linux&lt;/A&gt; but I found an old post:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-global-protect-is-active-connected-via-script-or/td-p/505980" target="_blank"&gt;https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-global-protect-is-active-connected-via-script-or/td-p/505980&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;Get-NetAdapter | Where-Object {$_.InterfaceDescription -like "PANGP Virtual Ethernet Adapter*"} | Select-Object Status&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Mar 2023 15:17:29 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-globalprotect-status-is-active-connected-via-script/m-p/535443#M3817</guid>
      <dc:creator>nikoolayy1</dc:creator>
      <dc:date>2023-03-22T15:17:29Z</dc:date>
    </item>
  </channel>
</rss>

