SAS/IntrNet 8.2: Application Dispatcher |
To create a service on OpenVMS:
@sas$root:[tools]inetcfg.com
.
Note: Square brackets in syntax indicates that an attribute is optional; do not include the square brackets in your code.
As the configuration utility runs, you are prompted for information about the service that you are creating.
If there is only one server, press Return. If you plan to have multiple servers, type the number and then press Return.
If the information is correct, press Return. The utility creates the service. Read the messages printed by the utility to determine if the service was created correctly. One of these messages contains the path for the service root directory created by the utility. Note this path for use later in this process.
If you want to change the information, type N and press Return. The utility exits and you can start over.
The definition block for a socket service might look like
# This service contains one server (port 5801) on yourserv.yyy.com.
SocketService service-name "brief-text-desc"
ServiceDescription "text-desc"
ServiceAdmin "administrator-name"
ServiceAdminMail "administrator-email-address@host"
Server yourserver
Port 5801
A pool service definition might look like
# Start up to 5 servers on node yourserv.yyy.com using the spawner started
# at port 7777. All servers will be started with the specified username/
# password. At least 1 server will not timeout and be kept running.
PoolService service-name "brief-text-desc"
ServiceDescription "text-desc"
ServiceAdmin "administrator-name"
ServiceAdminMail "administrator-email-address@host"
ServiceLoadManager load-manager-host:port
SasCommand "sas8 disk:[username.INTRNET.service-name]APPSTART.SAS+
/rsasuser /noterminal /noprint /nolog /SYSPARM "
Server yourserver
Port 6000-6004
Username your-username
Password your-password
SpawnerPort 7777
MinRun 1
Socket services must be started with the START.COM created by the configuration utility. To start the service, change to the service root directory created by the utility. Then submit the command
@START.COM
Pool services are started automatically by the Application Load Manager. See Using the Load Manager for more details.
Once a service is started, you can test it from a Web browser. The URL depends on the platform and path where your Application Broker is installed. For typical installations, the URL to test (or "ping") a service is one of the following:
http://yourserver/scripts/broker.exe?_service=service-name&_program=ping
http://yourserver/cgi-bin/broker?_service=service-name&_program=ping
http://yourserver/sasweb/htbin/broker.cgi?_service=service-name&_program=ping
Specify your Web server name in place of yourserver and your service name in place of service-name. You might need to use a different URL path if you chose a different path when you installed the Application Broker. If the service is running, an HTML page will be returned stating that the Application Server is functioning.
Services can be stopped from a Web browser. The URL depends on the platform and path where your Application Broker is installed. For typical installations, the URL to stop a service is one of the following:
http://yourserver/scripts/broker.exe?_service=service-name&_program=stop
http://yourserver/cgi-bin/broker?_service=service-name&_program=stop
http://yourserver/cgi-bin/broker?_service=service-name&_program=stop
Specify your Web server name in place of yourserver and your service name in place of service-name. You might need to use a different URL path if you chose a different path when you installed the Application Broker.
Log files are placed in the LOGS directory under the service root directory and are named <day>_<port>.LOG, for example, MON_5001.LOG;1 or TUE_5001.LOG;1.
By default, logs are kept for one week (six full days and one partial day) and then overwritten.
You can remove a service by deleting the service root directory and its contents. Any active servers must be stopped before you delete this directory.
SAS/IntrNet 8.2: Application Dispatcher |