Posted on 04-14-2015 07:47 PM
The Cisco anyconnect uninstaller ( from gui or running uninstaller from command line) has popup box that has two options, 'uninstall' or 'quit'. Is it possible via command line to have it choose 'uninstall'?
I have a simple script to uninstall, but in testing the script I get the popup box, so I'm assuming running the script via Casper it will not work due to the popup box.
Solved! Go to Solution.
Posted on 04-14-2015 08:47 PM
sudo bash /opt/cisco/anyconnect/bin/vpn_uninstall.sh
worked for me using version 3.x
Posted on 04-14-2015 08:31 PM
The following worked for an older Cisco VPN client we used to use.
yes | /usr/local/bin/vpn_uninstaller
maybe your script would work with
uninstall | /path/to/command
Posted on 04-14-2015 08:47 PM
Posted on 04-15-2015 06:34 AM
I currently have a script that does
cd /Applications/Cisco/Uninstall AnyConnect.app/Contents/MacOS
./Uninstall AnyConnect
--- but then see the popup box
I looked for the path that @jhalvorson provided but do not see it
but the path that @jhbush1973 provided I see.
currently i'm looking on a computer running AnyConnect version 2.5.1025
going to check other computers running 3.1
Posted on 04-15-2015 07:02 AM
on some other computers, in addition to vpn_uninstall.sh in the /opt/cisco/anyconnect/bin directory there is also
anyconnect_uninstall.sh
dart_uninstall.sh
websecurity_uninstall.sh
do these also need to be run, or just the vpn_uninstall.sh ?
Posted on 04-15-2015 07:19 AM
@tcandela That depends if those optional install components have been installed or not.
Posted on 04-18-2015 08:05 AM
WithIn the /Applications folder, the Cisco folder contains an uninstaller that uninstalls everything except for DART (/applications/Cisco/....),
DART (has its own seperate uninstaller).
I'll try scripting the uninstaller from this location
Posted on 04-18-2015 08:03 PM
sudo bash /opt/cisco/anyconnect/bin/anyconnect_uninstall.sh and then dart_uninstall.sh
Posted on 11-19-2019 01:20 PM
how can i get cisco anyconnect uninstalled including the dart to perform a upgrade from self service?
Posted on 11-20-2019 08:44 AM
What is your requirement to uninstall to perform an upgrade? Install on top and let the AnyConnect installer handle it.
Posted on 04-25-2024 10:12 AM
Try this script.
#!/bin/sh
sudo /opt/cisco/anyconnect/bin/anyconnect_uninstall.sh
sudo sudo /opt/cisco/anyconnect/bin/amp_uninstall.sh
sudo /opt/cisco/anyconnect/bin/dart_uninstall.sh
sudo rm -rf /opt/cisco