Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Control » cmd code (How can I connect and disconnect in the cmd)
  •  
mhk_1370

Messages: 1
Karma: 0
Send a private message to this user
Hi
How can I connect and disconnect Kerio VPN Client in the cmd ?
  •  
luizfernando

Messages: 9

Karma: 5
Send a private message to this user
Hi Mhk, how are you?

look below:

Commands overview
-----------------

/tryauto
* VPN Client is executed (in simple or advanced mode)
* connection establishment is started in particular mode for all persistent connections with Auto connect option set
* if no connection is marked as Auto connect, VPN client is immediately terminated

/help
* VPN Client displays help message box containing all command line parameters but /tryauto
* always returns 0

/version
* VPN Client displays message box with its version and exits
* always returns 0

status [<server> <username>]
* another instance of VPN Client must be already running
* <server> <username> is applicable only if the client is in advanced mode specifies connection for which the status will be displayed
* return codes and their meaning:

0: connection is in connected state
1: connection is in connecting/autoconnecting state
2: connection is in waiting state
3: connection is in disconnected state
4: connection <server> <username> does not exist (advanced mode only)
5: VPN Client application is not running
7: <server> <username> is not specified (advanced mode only)
8: <server> <username> is specified (simple mode only)
19: Internal error

connect [<server> <username>] [/nowait]
* another instance of VPN server must be already running, if not, it is executed
* <server> <username> is applicable only if the client is in advanced mode
* connection must be stored with saved password
* if the connection is either in disconnected or in waiting state it is forced to connect
* if /nowait parameter is specified, VPN Client does not wait for the connection to be established
* return codes and their meaning:

0: connection has been established or is (already) in connected state
1: connection is already in connecting/autoconnecting state
2: connection moved to connecting state then to waiting state
3: connection moved to connecting state then to disconnected state
4: connection <server> <username> does not exist (advanced mode only)
5: VPN Client application is not running or failed to execute
6: connection password is not saved
7: <server> <username> is not specified (advanced mode only)
8: <server> <username> is specified (simple mode only)
9: connection establishment process started (/nowait)
19: Internal error

disconnect [<server> <username>]
* another instance of VPN server must be already running
* <server> <username> is applicable only if the client is in advanced mode
* return codes and their meaning:

0: connection has been disconnected or is (already in disconnected state)
4: connection <server> <username> does not exist (advanced mode only)
5: VPN Client application is not running
7: <server> <username> is not specified (advanced mode only)
8: <server> <username> is specified (simple mode only)
19: Internal error
Previous Topic: Kerio Control replies to any arp-request on any interface?
Next Topic: vdi authentication
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Tue Feb 28 08:49:11 CET 2017

Total time taken to generate the page: 0.00909 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.