I have configured GP using "On demand" method when I tried to disconnect GP by ran the command (
$globalprotect disconnect should work as expected, have you tried adding 'sudo' or $globalprotect disable ?
@Sethupathi Did you manage to resolve the issue?
I am getting the same error message and even "globalprotect disable" or "disconnect" does not work and returns the message below:
"Unable to establish a new GlobalProtect connection as a GlobalProtect connection is already established from this Linux system by the same user or another user."
I am running the latest 5.1.2 linux app.
The config is definitely set to "on-demand". I did it lot of time, I uninstalled GlobalProtect app, ensured that all files are deleted. Then installed it again, connected to portal and everything works fine. As long as I reboot the machine, it gets back to the error message. Reinstalling fixes it until the next reboot.
This issue persist when not exiting globalprotect prompt-mode properly.
If you enter into the interaction prompt you have to quit it properly (don't use cntl+c <-- if you use cntl+c it'll stopped not quit the process will hang)
you have to kill it using of below command,
PC:~$ ps aux | grep global protect <----- verify the process
then kill it
PC:~$ globalprotect disconnect <-------- if on demand mode
PC:~$ globalprotect disable <-----------if always on mode
PC:~$ globalprotect show --details
PC:~$ globalprotect show --status
To connect use below command,
PC:~$ globalprotect connect --portal <portal ip>
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!