04-25-2024 11:55 PM
Hi here,
I'm looking for advice on editing my DefaultProfile.xml in Cisco and deploying it via policy to all Mac devices to establish a new connection. However, it seems that my Mac is retaining memory of the last successful connection, making it appear as the default option when attempting to connect again. Is there a way to reset this and have the connection specified in the DefaultProfile.xml as the default option for connection?
04-26-2024 05:36 AM
On Windows there is a file called "preferences.xml" that contains the last connected host, and I think on Mac it is located in the folder "/home/username/.anyconnect" or "/opt/cisco/anyconnect/.anyconnect_global". It would be enough to remove that file which will get generated after the first connection.
04-26-2024 06:10 AM
deleted .anyconnect_global but it did not close the app and reopened but still the same
04-26-2024 06:24 AM
Did you find anything in "/home/username/.anyconnect" folder?
04-26-2024 05:39 AM
This temporarily' i.e. when you access again and use new GW then it by defualt change to use new GW
If you can' can I see screenshots of anyconnect?
MHM
04-26-2024 06:13 AM
yes if I use the new GW and connect it will be updated. but i want to avoid the confusion
04-26-2024 12:00 PM
04-28-2024 11:38 PM
the DefaultProfile.xml is working as expected is adding the new Andress to the dropdown list but the user needs to select the new address because Cisco on MAC remembers the previous connection and has it as default for example if I successfully connected to: test.com the default one remains test.com and I can found test2.com form my dropdown filed, my XML straight forward
<?xml version="1.0" encoding="UTF-8"?>
<AnyConnectProfile xmlns="http://schemas.xmlsoap.org/encoding/">
<ServerList>
<HostEntry>
<HostName> test2.com </HostName>
<HostAndress> test2.com </HostAndress>
</HostEntry>
</ServerList>
</AnyConnectProfile>
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide