I think the command task statement has to be a single line. Try escaping the line endings?
Side note, I'd put the un/pw into Custom Properties so they can be easily changed and stored as Protected Fields. Then reference the $CustomProperties.name$ in the command task.
thanks for the reply, it appears that I can get it launched with:
in the command task but no matter how I try to pass in the creds, it just won't work. very odd
thanks for the reply, I can launch anyconnect with
/opt/cisco/anyconnect/bin/vpn -s connect vpn.soundtransit.org
in the command task but I cannot seem to be able to pass credentials for some reason
Hi @petedykinga
I created a script for this and I run it inside the 'Terminal' connection of Royal TSX.
The address is taken from the 'Computer Name':
The password is taken from the 'Credentials' section.
And the script is placed in the 'Custom Commands' section:
The number of the Group Name (in case you have to select a group upon connecting) is taken from 'Custom Field 1' under 'Custom Fields'.
The script also asks you for a 2FA password in case you need to enter one.
The script also checks if there is already a Cisco AnyConnection VPN connection active. If true, it asks you whether you want to keep it or to disconnect.
Use at your own risk.
I hope this helps :)
—Best regards, Pascal
That did it, thanks for the help!!
peted826
Can someone help me out, this works in terminal but I cannot set it up as a command task, I must be missing something??