Checking Global Protect Client Status via Command Line

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Checking Global Protect Client Status via Command Line

L1 Bithead

We have had a heck of a time getting Global Protect 4.0.2 deployed in our environment.  One of the things I am coming across is that the install goes fine, at least accoring to the exit code on msiexec and in looking thoguht the log created by msiexec.  However, the pangps service does not always get created.  Granted, the number of macine affected by this problem is smallish.  I would say 3-6%.   Now I can check for the existance of the service and manually create it and that fixes most of the machines, but now I am trying to circle back around for all the machines to determine if the global protect client is working ok.  On many machines I can check to see if the PanGP interface has an IP address in the range we assigned, but other machines "live" at a location where the site has a connections, either via MPLS or DMVPN to the main office, so Global Protect is considered to be on its home network.   I am looking for a way that will allow me to detect if GP is running correctly whether it is on a home network or not.  A string in a log, a registry key, a command line that will give me an exit code, etc. something I can deploy that will allow me to see if the client is in "home", active or disabled mode from a command prompt.  Powershell is also an option.    Ideas? 

1 ACCEPTED SOLUTION

Accepted Solutions

Probably not the simple solution you are looking for, but in the local log files that GP client is writing to the folder where it was installed you should find the information you want

View solution in original post

7 REPLIES 7

L4 Transporter

Hey @BeejCyr

 

To allow users to connect to GP even when they are at "home" site, make use of 'Internal Gateways'.

 

 

 

Regards,

Anurag

================================================================
ACE 7.0, 8.0, PCNSE 7

Thanks for the resources, but it is not quite what I am going for.  I am looking for a way to determine the status of the Global Protect agent from the command line.  My script will not be able to "see" the icon, and the script may be running while all users are logged out and the client will be connected in a prelogin state.  Another couple of facts that may figure in to the solution:

  1. We are using SSO.
  2. I have no access to the gateway.  My area of responsibility is client deployment.

@ansharma wrote:

Hey @BeejCyr

 

To allow users to connect to GP even when they are at "hom" site, make use of 'Internal Gateways'.

 

Here's some information to get you started:

 

https://www.paloaltonetworks.com/documentation/60/globalprotect/global_protect_6-0/globalprotect-qui...

https://www.paloaltonetworks.com/documentation/80/pan-os/newfeaturesguide/globalprotect-features/int...

https://www.paloaltonetworks.com/documentation/70/globalprotect/globalprotect-admin-guide/set-up-the...

 

HTH.

 

Regards,

Anurag


 

FYI, I get a 404 on all three links you supplied.

That's odd.

I guess I'll remove the links since they wouldn't help in your requirement.
================================================================
ACE 7.0, 8.0, PCNSE 7
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!