TS/MP 2.5 System Management Manual
= SET SERVER NUMSTATIC 3
= SET SERVER PARAM SWITCH-1 “ON”
= SET SERVER PROGRAM \SYS.$DATA.SRVRS.ORDSRV
= ADD SERVER ORDER-SRV
The SET commands in the preceding example establish these characteristics for the SERVER:
• This is a Guardian server. (PROCESSTYPE attribute.)
• The files that your server program recognizes by the names ORDERS and PARTS are the files
$DATA.REG1.ORDFILE and $DATA.REG2.PARTFILE, respectively. (ASSIGN attribute.)
• The PATHMON process starts the first server process in the server class in processor 2, the
second server process in processor 3, and the third in processor 0.
If processor 2 is down, the PATHMON process instead starts the first server process in processor
4 as the backup processor for the first process. Similarly, CPUs 5 and 6 are the backup CPUs
for the second and third server processes, respectively. If the PATHMON process starts more
than three server processes, it reuses the CPUs in the order specified: for example, a fourth
server process would start in processor 2 if that processor were available. (CPUS attribute.)
• The total number of all server processes in the server class that the PATHMON process can
run simultaneously is five. (MAXSERVERS attribute.)
• The total number of static server processes allowed is three. (NUMSTATIC attribute.)
• When the PATHMON process starts a server process, it transmits this PARAM message:
SWITCH-1 “ON”
(PARAM attribute.)
• The object code for the server class is stored in the file \SYS.$DATA.SRVRS.ORDSRV.
(PROGRAM attribute.)
Attributes That Apply Only to OSS Servers
These attributes are valid only for OSS servers:
• ARGLIST specifies a set of process startup parameters.
• CWD specifies the current working directory to be used to resolve relative OSS filenames
specified for server attributes such as PROGRAM, STDIN, STDERR, and STDOUT. The current
working directory pathname is combined with a relative pathname to create an absolute OSS
filename. (The OSS concept of an absolute filename is similar to the Guardian concept of a
fully qualified file name that includes system, volume, and subvolume.)
An OSS absolute filename can be up to 1024 characters long.
If you have issued the CMDCWD command to establish a working directory, you do not need
to set the CWD attribute. However, if you have issued the CMDCWD command, you can set
the CWD attribute for a given server class to change the working directory just for that server
class.
• ENV specifies environmental variables for the server processes in this server class.
• STDERR specifies an OSS filename or device name to which errors are sent.
• STDIN specifies an OSS filename or device name from which this server process accepts input.
• STDOUT specifies an OSS filename or device name to which this server process sends output.
These commands defines an example of an OSS SERVER object and then adds it under the server
class name ORDER-SRV1:
= RESET SERVER
= SET SERVER PROCESSTYPE OSS
= SET SERVER ARGLIST -1, process/log, -t
= SET SERVER CPUS (2,3,0)
= SET SERVER CWD /centrl/inven/orders
64 Configuring Objects in a PATHMON Environment










