<?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 Global Protect is active (connected) via script or command line in GlobalProtect Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-global-protect-is-active-connected-via-script-or/m-p/506162#M2925</link>
    <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/206623"&gt;@Andreikin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;From the client endpoint or through the firewall? Both would be relatively simple:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Client Endpoint&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;There's multiple ways to do this, anything from parsing ipconfig information to seeing if you can access an internal resource and using the response to return status. The surefire way would be to parse Get-NetAdapter response and find the status of PANGP Virtual Ethernet Adapter. Something like this and then parse the returned status to check if it's Up, or Disabled:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Get-NetAdapter | Where-Object {$_.InterfaceDescription -like "PANGP Virtual Ethernet Adapter*"} | Select-Object Status&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Via Firewall&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I'd personally right a script to just check if the requested user/machine is showing active on GlobalProtect using the API.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 25 Jun 2022 03:27:15 GMT</pubDate>
    <dc:creator>BPry</dc:creator>
    <dc:date>2022-06-25T03:27:15Z</dc:date>
    <item>
      <title>Checking if Global Protect is active (connected) via script or command line</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-global-protect-is-active-connected-via-script-or/m-p/505980#M2917</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to find out if there's an option to check if Global Protect agent is connected and VPN is active using Windows CMD or PowerShell script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 09:30:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-global-protect-is-active-connected-via-script-or/m-p/505980#M2917</guid>
      <dc:creator>Andreikin</dc:creator>
      <dc:date>2022-06-24T09:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if Global Protect is active (connected) via script or command line</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-global-protect-is-active-connected-via-script-or/m-p/506162#M2925</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/206623"&gt;@Andreikin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;From the client endpoint or through the firewall? Both would be relatively simple:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Client Endpoint&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;There's multiple ways to do this, anything from parsing ipconfig information to seeing if you can access an internal resource and using the response to return status. The surefire way would be to parse Get-NetAdapter response and find the status of PANGP Virtual Ethernet Adapter. Something like this and then parse the returned status to check if it's Up, or Disabled:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Get-NetAdapter | Where-Object {$_.InterfaceDescription -like "PANGP Virtual Ethernet Adapter*"} | Select-Object Status&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Via Firewall&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I'd personally right a script to just check if the requested user/machine is showing active on GlobalProtect using the API.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2022 03:27:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-global-protect-is-active-connected-via-script-or/m-p/506162#M2925</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2022-06-25T03:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if Global Protect is active (connected) via script or command line</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-global-protect-is-active-connected-via-script-or/m-p/550209#M4222</link>
      <description>&lt;P&gt;Would it also be possible to check if I'm connected to the correct portal as well and not just GlobalProtect?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 18:03:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/checking-if-global-protect-is-active-connected-via-script-or/m-p/550209#M4222</guid>
      <dc:creator>zarif98</dc:creator>
      <dc:date>2023-07-20T18:03:33Z</dc:date>
    </item>
  </channel>
</rss>

