Running the server on UNIX
By default, the server runs as a daemon process. The
asm_srv
command starts a server that listens to
incoming commands on the specified port. You can assign a port number by the p
parameter. If this number is omitted, the server uses the default port 7250.
With the
h
, or
?
argument, you can display Help information.
You can specify these parameters in the
asm_srv
command on UNIX:
Parameter | Description |
---|---|
-inherit | Enable inherit of the system environment variables that were set when the ASM server was started. |
-k | Stop server process (on UNIX) |
-d | Debug info (verbose output) for daemon asm_srv to stdout. |
-p <port number> | Override default TCP/IP listening port. |
-home <home directory> | Set program home directory for Application Service Manager Server. This option is mandatory. |
-r <time in seconds> | Refresh interval for which Application Service Manager scans the existence of the process for instances with Running status. Default refresh time is 10 seconds. |
-? or -h[elp] | Display help/usage information |
-v | Version information |
Starting a server that uses the default port 7250 run this command:
# asm_srv -home <home directory>
Or use the
rc.startasm
script in the directory
<home directory>/etc
To start an Application Service Manager Server that listens on port 7252 and inheriting environment variables of current process run:
# asm_svr -home <home directory> -p 7252
-inherit
Or use the
rc.stopasm
script in the directory
<home directory>/etc
To stop the server, you can stop the daemon. Do not forget to add the port number parameter if the server does not use the default port:
# asm_srv -home <home directory> -p 7252 -k
Ensure that you start the server with the correct installation
directory, provided in the argument
-home <home directory>
.
The first time you start the Application Service Manager Server:
# ./asm_srv -home <home directory>
This message is displayed:
asm_srv: ASM daemon failed to read/open/parse configuration files. Please refer to previous messages.
You can ignore this message. To verify if the server is running, use this command:
# ps -ef | grep asm_srv
root 10598 1 0 Jan 7 ? 0:00 /home/bw/root/asm/bin/asm_srv -home
/home/bw/root/asm -p 7250
root 13944 1 0 Jan 2 ? 0:00 /home/root/bin/asm_srv -home
/home/root -d
root 26663 1 0 11:26:27 ? 0:00 ./asm_srv -home <home
directory> -p 7252