SlmServer configuration file

When no parameters are specified during the start of SlmServer the command searches for the configuration file ${SLMHOME}/etc/servercfg.xml.

For example with this content:
<?xml version="1.0"?>
<!-- Configuration for SLM -->
<servercfg
	mode="master"
	port="6005"
/>
A SlmServer listens on an UDP port for broadcast messages. The SlmConfig utility and the Installation Wizard send a broadcast message to that port to view a list of all running SLM servers. By default, the SLM server listens on UDP port 6005. To set a different port, you can use the -uport parameter. We recommend that you use the default UDP port, because the Installation Wizard always sends a broadcast message on UDP port 6005. You can set a different UDP port if an SLM server is already running on that same system. In that case the default UDP port is in use.

Without argument, the server is a master server. With the ­s argument, you can indicate that the server must act as a slave.

SlmServer has an argument to specify that all debugging or error output is sent to a log file, ­l <log file name>. You can use another argument to indicate that the process must run in the foreground (­f).

In the SlmServer command you can specify these parameters:
Command Description
-s[lave] Start as a Slave server.
-p[ort] <port number> Listen on port <port number>.
-up[ort] <port number> Listen on UDP port <port number> for broadcast messages.
-f[ront] Run as a foreground process.
-k[ill] Stop server process.
-l[og] <log file> Log stdout/stderr (debugging) output to <log file>.
-a[ppend] Append logging to existing log file.
-maxconn <num> Set maximum number of connection that the server can handle to <num>.
-set <var>=<val> Set environment variable <var> to <val>. You can use this to set SLMHOME.
-?, -u[sage] or -h[elp] Display help/usage information
-v Version information
To start a master SLM server that listens on port 6006 use this command:

SlmServer -p 6006

To start a slave server that uses the default port 6005 use this command:

SlmServer -s

To stop the server, you can simply stop the daemon. If the server does not use the default port you must add the port number:

SlmServer-p 6006 -k

Note that if the server program is not installed in its default location, ensure that the SLMHOME environment variable is set before you start the server.