Link to home
Start Free TrialLog in
Avatar of JimR123b
JimR123bFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Cisco VPNClient hangs from command line when connecting

Hi,

I'm trying to use Cisco's VPN client from the command line (DOS), to connect to a remote server.

I use a command line such as:

    vpnclient connect "my connection" user myuser pwd mypassword

It all seems to work fine, except after connecting, it never returns back to the DOS prompt. The last thing it says is "Local LAN Access is disabled".

At this point, I am able to access the server, via file shares, so I know that it's connected.

But, I need it to return to the DOS prompt so that I can include it in a batch file. How can I make it do this?
Avatar of Qlemo
Qlemo
Flag of Germany image

I checked with  5.0.00.0340, and it returns as soon as I am connected. But only if do not provide a password on commandline. That is:
vpnclient connect "my connection"
works, but
vpnclient connect "my connection" pwd x
does not.

I do not know the difference, but there is one, since the latter will output more info and wait. The former works because user and password are stored in the profile, which is write-protected to prevent any change like password removal by the VPN client on connect ;-).

Avatar of JimR123b

ASKER

How do I store the user and pwd on the profile?
In the Windows interface, a different username and password is shown to that which I pass in the command line. If I change the shown login to the command line one, it doesn't connect even through the Windows interface.
Usually, I double-click in the Windows interface the connection, and it then prompts for the login which I pass in the command line. That then connects me. Not sure why there's 2 logins, but it seems to require them both.
 
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial