Skip to content

Instantly share code, notes, and snippets.

@inadarei
Last active June 24, 2018 15:21
Show Gist options
  • Save inadarei/204ddbba0fe4ff02cb34e96c6524d0eb to your computer and use it in GitHub Desktop.
Save inadarei/204ddbba0fe4ff02cb34e96c6524d0eb to your computer and use it in GitHub Desktop.
Stop and Start Palo Alto GlobalProtect
#!/bin/bash
echo "Stopping GlobalProtect..." 
launchctl remove com.paloaltonetworks.gp.pangps 
launchctl remove com.paloaltonetworks.gp.pangpa 
echo "Done!"
#!/bin/bash
echo "Starting GlobalProtect..."
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangpa.plist 
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist 
echo "Done!"
exit 0

Check if the server is listening:

netstat -an | grep 4767

# should give output like:
tcp4 0 0 127.0.0.1.4767 *.* LISTEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment