Nested plist capable for Mac GlobalProtect?

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

Nested plist capable for Mac GlobalProtect?

L2 Linker

I want to get the GlobalProtect client version at portal connection, so I'm trying to get it via Portal Data Collection. The problem I'm running into is twofold:
1. There is a /Library/Preferences/com.paloaltonetworks.GlobalProtect.settings.plist and a ~/Library/Preferences/com.paloaltonetworks.GlobalProtect.settings.plist. The value I want is in the plist off the root, not the users.

 

2. The value I want is nested in the plist under "Palo Alto Networks" -> GlobalProtect -> PanSetup -> CurrentVersion. I tried to use "Palo Alto Networks.GlobalProtect.PanSetup.CurrentVersion" as my key but it doesn't seem to be working.

 

Does GlobalProtect support reading nested plist entries? And if so, how do I make sure it uses the system plist and not the users? Is there a better way to get the client version at portal connect?

Thanks!

3 REPLIES 3

Community Team Member

Hi @JamesH1318 ,

 

Can the following KB files help you?

 

How to create a custom check using a plist on macOS systems

How to input a Mac Plist nested subkey in the configuration for GlobalProtect Portal Data Collection...

 

Hope these help.

Kind regards,

-Kim.

LIVEcommunity team member, CISSP
Cheers,
Kiwi
Please help out other users and “Accept as Solution” if a post helps solve your problem !

Read more about how and why to accept solutions.

Hi @kiwi,

They do help a little, yes, and thank you! What would also help is if you could tell me what you searched on to come across them as I looked for hours and never saw those. 😉

 

The second article helps a lot by showing me how to put in the nested keys. However, it's still not working. This snippet in the first article is interesting, "The GP app for macOS can only read plist entries in the User Preferences folder ( ~/Library/Preferences) or the System Preferences folder ( /Library/Preferences )".

 

There is a com.paloaltonetowrks.GlobalProtect.settings in both but the one I'm interested in is the one in /Library/Preferences. The one in ~/Library/Preferences doesn't have all of the same keys. That line in the article says User Preferences OR System Preferences, but doesn't say how to choose which one to use. I tried putting the absolute path in the plist value but that didn't work either. I think as soon as I can find how to specify to use the plist in the System Preferences, I'll have what I need.

Thanks again!

For a test, I used a value that existed in the ~/Library/Preferences/com.paloaltonetworks.GlobalProtect.settings.plist file and getting the nested value worked perfectly! Now, I just need to figure out how to specify that I was to use the system one in /Library/Preferences/com.paloaltonetworks.GlobalProtect.settings.plist, which that first article implies is possible.

  • 170 Views
  • 3 replies
  • 0 Likes
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!