AnyConnect 2.4 scripting onConnect, can't get to work

Answered Question
Nov 6th, 2009
User Badges:

I can't get onConnect or onDisconnect scripts to activate.


They download from ASA, will work if launched manually from command line (win-xp), and preferences "enable connection scripts" is checked.


Any suggestion would be appreciated.

Correct Answer by hdashnau about 7 years 6 months ago

No problem, glad I could help. Please remember to rate the posts and mark the question as resolved if you're all set.


-heather

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.5 (2 ratings)
Loading.
saquib.mkhan Sat, 11/07/2009 - 00:23
User Badges:

Are you able to email me the scripts ? I have been looking for them


Thanks

hdashnau Sat, 11/07/2009 - 06:24
User Badges:
  • Cisco Employee,

They are available on www.cisco.com.


Currently they are under Support>Download Software> Security> Virtual Private Networks> Cisco VPN Clients> Cisco VPN Client Tools> All Releases>AnyConnect>Sample Scripts

hdashnau Sat, 11/07/2009 - 06:39
User Badges:
  • Cisco Employee,

It sounds like your AnyConnect might not be able to find or is unabled to parse the correct profile to load that has scripting enabled. Check the event viewer logs to see if the AnyConnect found and is using the xml profile with scripting enabled. If you are getting parse errors, try to use our profile editor tool that automatically creates the XML content for you. The tool should be on cisco.com under Security > Cisco VPN Client Tools > VPN Client Tools and Utilities > Profile Editor.


Once you have the new profile uploaded and applied on your ASA, go to your client PC and remove the old/bad XML profiles.


-heather

steveeclark Mon, 11/09/2009 - 07:04
User Badges:

Suggestions about Event Log and your previous posting about location of sample scripts was exactly what I needed to solve the problem. Much appreciated! (Like the other user, I hadn't been able to find the sample scripts either.)


Perhaps you can forward both pieces of knowledge to the "AnyConnect Administrator Guide 2.4" document authors to include in the next revision? "Troubleshooting Scripts", p97/3-61 and "Note...example scripts..." on multiple pages.


Thanks again.

Correct Answer
hdashnau Mon, 11/09/2009 - 07:18
User Badges:
  • Cisco Employee,

No problem, glad I could help. Please remember to rate the posts and mark the question as resolved if you're all set.


-heather

Actions

This Discussion