cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
1362
Views
5
Helpful
4
Replies
Highlighted

Anyconnect NAM network repair from CLI

Hi Everyone,

 

Is there a chance to execute "network repair" function for Anyconnect NAM from command line in Windows?

 

I am asking because it can happen sometimes via updates that the anyconnect service is disabled and to proceed on the wireless service recovery is necessary to

 

1) "network repair" via the tray gui

2) Reboot the workstation

 

Now I would like to automate this in the service recovery options of windows to have a service recovery option (3rd option) to run a script to run network repair and then reboot the workstation autonomously

 

Thank you

4 REPLIES 4
Highlighted
Participant

As far as I know it is not possible to call the network repair function from AnyConnect from CMD but I believe you could replicate the functionality with a script.  

 

You would just need a script that, stops and restarts the AnyConnect services and disables and enables the wireless network adapter.

Highlighted
Cisco Employee

This is possible using the "acnamcontrol.exe" option from the commnad line.  The tool is located in C:\Program Files (x86)\Cisco\Cisco AnyConnect Secure Mobility Client\acnamcontrol.exe.  Two options exist with this tool.  "restartAdapter" and "enable"/"Disable" Client.

 

C:\Program Files (x86)\Cisco\Cisco AnyConnect Secure Mobility Client>acnamcontrol.exe
Usage: acnamcontrol.exe restartAdapter <adapter_symbolic_name_list>

Description: Restarts the network adapters.

 

Usage: acnamcontrol.exe [enableClient|disableClient]
Description: Enables/Disables NAM functionality.

Highlighted

Thank you very much,

 

Is there a way to reset all network interfaces without knowing the GUID? or how to easily find the GUID for the network interface used on a workstation?

 

Thanks!

 

acnamcontrol.exe restartadapter
Usage: acnamcontrol.exe restartAdapter <adapter_symbolic_name_list>
Restarts the network adapter(s) listed.
The adapter symbolic name in Windows is a GUID.
One or more adapters can be listed. If space is used
for a separator, the list should be enclosed in
quote marks.

Highlighted

You can use Powershell or Netsh to get the adapter GUID and add this to whatever script youwill be running.

 

Netsh command:

netsh wlan show interfaces

netsh lan show interfaces

 

or with Powershell using Get-NetAdapter.  I am not sure of th eSyntax but I am sure you can find it online.

https://docs.microsoft.com/en-us/powershell/module/netadapter/get-netadapter?view=win10-ps

 

Content for Community-Ad