Last active
August 10, 2025 15:28
-
Star
(143)
You must be signed in to star a gist -
Fork
(43)
You must be signed in to fork a gist
-
-
Save kaleksandrov/3cfee92845a403da995e7e44ba771183 to your computer and use it in GitHub Desktop.
Simple script that starts and stops GlobalProtect.app on Mac OSX.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
case $# in | |
0) | |
echo "Usage: $0 {start|stop}" | |
exit 1 | |
;; | |
1) | |
case $1 in | |
start) | |
echo "Starting GlobalProtect..." | |
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangpa.plist | |
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist | |
echo "Done!" | |
;; | |
stop) | |
echo "Stopping GlobalProtect..." | |
launchctl remove com.paloaltonetworks.gp.pangps | |
launchctl remove com.paloaltonetworks.gp.pangpa | |
echo "Done!" | |
;; | |
*) | |
echo "'$1' is not a valid verb." | |
echo "Usage: $0 {start|stop}" | |
exit 2 | |
;; | |
esac | |
;; | |
*) | |
echo "Too many args provided ($#)." | |
echo "Usage: $0 {start|stop}" | |
exit 3 | |
;; | |
esac |
Thanks James !
…On Mon, Aug 4, 2025, 10:40 PM Robert J Taylor ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
Hey, thank you for publishing this! I was inspired to keep going and find
away to automate this process on my Mac with Okta-enabled GlobalProtect.
Got something working for me and thought I'd share back:
https://github.com/rjamestaylor/macos-globalprotect-bot
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/kaleksandrov/3cfee92845a403da995e7e44ba771183#gistcomment-5707482>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKWXWRTPYPWOSJOES2G5KD3MAKQTBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVAZTKMRTGEYDAOFHORZGSZ3HMVZKMY3SMVQXIZI>
.
You are receiving this email because you commented on the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, thank you for publishing this! I was inspired to keep going and find away to automate this process on my Mac with Okta-enabled GlobalProtect. Got something working for me and thought I'd share back:
https://github.com/rjamestaylor/macos-globalprotect-bot