2. Configure a tibtunnel profile using your AccessKey
tibtunnel.exe configure --profile <TIBTUNNEL_PROFILE_NAME> --accessKey <TIBTUNNEL_ACCESS_KEY_SECRET> |
3.Start tibtunnel as a background process using Windows command "start /B
start /b tibtunnel.exe connect --log-file <TIBTUNNEL_LOG_FILE> --profile <TIBTUNNEL_PROFILE_NAME> -s <TIBTUNNEL_SPECS> <TIBTUNNEL_CONNECT_URL> |
--log-file <logFilePath> Applicable only for the “connect” command, and represents the full path to the output log file. If not specified, the logs will be printed on stdout. The logs will be appended to the specified file (i.e. previous content is not lost). The implementation allows 3rd party tools to implement a log rotation mechanism (for Windows, we recommend to use copy-and-truncate mechanism for log rotation)
5. Find out the process ID of the background tibtunnel service
tasklist /FI "imagename eq tibtunnel.exe" |
The output of the above command will list the process ID (i.e. PID) of the tibtunnel service. For example, in the below sample output the PID is 2468
Output sample for "tasklist" command
Image Name PID Session Name Session# Mem Usage ========================= ======== ================ =========== ============ tibtunnel.exe 2468 Console 1 14 , 440 K |
6.Gracefully stop the tibtunnel background service using the taskkill command. For example, if the PID is 2468, we will issue the following command
taskkill /T /PID 2468 |