Session Persistence Server as a Console Application
Session Persistence Server can be run as a console application when it is installed on a Windows system. Use command line switches to configure options, or use commands while it is running to perform actions.
Use the following switches before starting the Session Persistence Server:
Switch |
Function |
-c [configfile] |
Specifies the configuration file that Session Persistence Server uses, where [configfile] is the name of the configuration file. For example: Include the entire path with the file name if it is located in different directory than the default. For example: By default, Session Persistence Server uses TermProxy.cfg within the directory where wltermproxyservice.exe is installed. |
-h |
Displays the Session Persistence Server help, which lists the available switches. |
-k [certfile] |
Indicates the X509 certificate private key file location. This option specifies the location of a .pem key file to be used if the key file is not in the directory where the wltermproxyservice.exe resides. For example: |
-l [level] |
Sets the Session Persistence Server logging level. The [loglevel] parameter is the logging level to which you want to set Session Persistence Server. [loglevel] can be any number from 1 to 6 (1 being the lowest logging level).This method does not allow verbose mode to be set. For information about logging, see Setting the Logging Level. |
-s [certfile] |
Indicates the X509 server certificate file location. This option specifies the location of a .pem certificate file to be used if certificate file is not in the directory where the wltermproxyservice.exe resides. For example: |
-u [httpacct] |
Indicates the Session Persistence Server web server account user name and password on the command line. Indicates a reference file that contains this information such as http.cfg.For example: |
-v |
Displays the Session Persistence Server version information. |
Use the following commands while Session Persistence Server is running as a console application:
Command |
Function |
h |
Calls up the help menu, which displays the Session Persistence Server options that are available for the user (the options in this table). |
r |
Restarts Session Persistence Server. |
x |
Exits Session Persistence Server. |
v |
Dumps the current session states to the log file. |
k |
Toggles the data capture. |
l |
Toggles the logging level. |
To run Session Persistence Server from the command line
From a command line, navigate to the directory that contains TermProxy.exe.
•To start Session Persistence Server, type termproxy.exe.
Session Persistence Server runs with the desired options. Use the commands in the table above to restart, exit, change the log levels or data capture, or dump the current session states to the log file.
•To use command line switches, type termproxy.exe [switch], where [switch] is the switch that you want to use.