Professional Documents
Culture Documents
Getting Started
This chapter describes how to get started using ACSLS, including how to start and stop ACSLS and how to use an ACSLS command processor window (cmd_proc).
lets you run ACSLS utilities from the UNIX command line prompt. You can also open a cmd_proc from the acsss user ID if you prefer to work from a single user ID; see "Manually Starting a cmd_proc" for more information. Typically, you will log in as both user IDs so you can enter both ACSLS utilities and commands as shown in Figure 1.
Figure 1. Example Screen Display with User IDs acssa and acsss Logged In The screen display shown in Figure 1 contains the following windows: A UNIX command tool
logged in as the acsss user. A "tailed" ACSLS Event Log that lets you monitor ACSLS activity; see "Event Log" for more information. A cmd_proc window that lets you enter ACSLS commands. A system clock showing the current date and time.
Starting ACSLS
You can start ACSLS in either of the following ways: Automatically at workstation boot (if the ACSLS server system startup file references the rc.acsss utility). Hint: The startup file /etc/rc on the ACSLS server contains comments that describe how to modify this file to enable automatic startup.
To manually start ACSLS, do the following: 1. Open a UNIX command tool. 2. If you are on a remote system, to access the ACSLS server, enter the following command:
3. telnet hostname
Where hostname is the UNIX hostname of the ACSLS server. Otherwise, go to Step 3. 4. Log in as acsss. 5. Enter the following command:
6. rc.acsss
Hint: You usually start ACSLS in the run state. To start ACSLS in the idle state, enter the following command:
rc.acsss IDLE
Stopping ACSLS
Use this procedure to shut down ACSLS and the database. Typically, you would use this procedure before: Performing maintenance on the ACSLS server.
Backing up the entire ACSLS server disk. Hint: Backing up the entire ACSLS server disk, is not the same as backing up the ACSLS database using the bdb.acsss utility. See "Maintaining the ACSLS Database" for procedures for backing up the database. See "Database Restoration" for procedures restoring the database.
Caution: Do not use the following procedure before upgrading to a new release of ACSLS! See the ACSLS Installation and Configuration Guide for your platform for specific procedures for doing an upgrade installation. To stop ACSLS, do the following: 1. If you are not already logged in as acsss do so now. 2. Bring up a cmd_proc. You can do this either on the acsss user ID or you can log in to acssa. 3. From the cmd_proc, enter the following commands to idle the server and log off from the cmd_proc:
4. idle 5. logoff
6. On the acsss user ID, bring up a UNIX command tool, enter the following command to stop ACSLS:
7. kill.acsss
If this message appears, do the procedure in "Manually Killing the ACSLS Process" , then continue with Step 5. 8. From the UNIX command tool, enter the following command to shut down the database:
9. db_command stop
To manually kill the ACSLS process, do the following: 1. From cmd_proc, enter the following command:
2. query server
3. If ACSLS is running, to display the ID of its process daemon, from the acsss shell prompt, enter the following command:
4. ps | grep acsss_daemon
The left column of the display shows the process ID for the ACSLS process (acsss_daemon). 5. From the acsss shell prompt, enter the following command:
6. kill -term pid
Starting a cmd_proc
You can start a cmd_proc from any terminal type with a minimum 24 x 80 display size. The terminal type must be defined in the workstation's /etc/termcap file. You automatically start a cmd_proc when you log in as acssa. After logging in, you can start additional cmd_procs by entering the cmd_proc command from a UNIX command tool as described in "Manually Starting a cmd_proc". Typically, you will run only one cmd_proc, but you can run as many as your system resources will allow. Hint: If you start a cmd_proc without specifying the -q option and ACSLS is not running, the cmd_proc window hangs. If this happens, quit the window and start another cmd_proc. You can also log out from user acssa and log back in to restart the cmd_proc.
4. Respond to the prompt by entering your terminal type. Example of terminal types are sun, sun-cmd, xterm, and dtterm.
Where hostname is the UNIX hostname of the ACSLS server. 4. Respond to the prompt by entering your terminal type. Example of terminal types are sun, sun-cmd, xterm, and dtterm. 5. Press <RETURN>. The cmd_proc window appears.
Where hostname is the UNIX hostname of the ACSLS server. 4. Log in as acssa.
5. Respond to the prompt by entering your terminal type. Example of terminal types are sun, sun-cmd, xterm, and dtterm. 6. Press <RETURN>. The cmd_proc window appears.
4. Respond to the prompt by entering your terminal type. Example of terminal types are sun, sun-cmd, xterm, and dtterm. 5. Press <RETURN>. The cmd_proc window appears.
cmd_proc options
When you manually start a cmd_proc, you can also enter the following options:
-q -l
suppresses the automatic query server command. brings up cmd_proc in command line mode (command area only, no split screen, no message area).
Using a cmd_proc
cmd_proc Window
Figure 2 shows the cmd_proc window displayed when you log in as acssa. The cmd_proc window is a split screen where the top section is the message area and the bottom section is the command area. You enter ACSLS commands at the ACSSA prompt. As Figure 2 shows, when you log in as acssa, the cmd_proc automatically issues a query server command to check the status of the library.
The cmd_proc terminates. Hint: If you were logged in as acssa, you will also be logged out automatically.
command.
<CTRL> + D Returns to the <CTRL> + D has no effect if the current command cmd_proc prompt. has completed. If the current command is processing, it completes but cmd_proc does not display a response message. If you have not entered the current command at the ACSSA prompt, <CTRL> + D deletes the command. <CTRL> + H Deletes the On most keyboards, you can also use the previous character <DELETE>or <BACK SPACE> key. on the command line. <CTRL> + I Refreshes the cmd_proc display This function is useful if the current cmd_proc display has been corrupted by noise on the communications lines.
<CTRL> + R Refreshes the current command line. <CTRL> + U Deletes the current command line.
This function is useful if the current command line display has been corrupted by noise on the communications lines.
<CTRL> + Z Suspends cmd_proc Enter the C shell fg command to resume cmd_proc. and escapes to the shell environment.
To start an additional cmd_proc and specify an input file, do the following: 1. While logged in as acssa, open a UNIX command tool. 2. To start the cmd_proc, enter the following command:
3. cmd_proc -q < filename
You can also start a cmd_proc, specify an input file, and redirect the output to another file. Using input and output files lets you run a set of commands at cmd_proc startup and look at the results. For example, the following file shows the results of the commands run in the previous example that showed cmd_proc with only an input file.
To start an additional cmd_proc, specify an input file, and redirect the output, do the following: 1. While logged in as acssa, open a UNIX command tool. 2. To start the cmd_proc, enter the following command:
3. cmd_proc -q < file1 > file2
Where file1 is the input file and file2 is the file to which the output is directed. By default, cmd_proc display area messages are written to stderr. but you can also redirect these messages. For example:
cmd_proc -q < file1 > file2 2>&1
Idling ACSLS
Use this procedure to suspend request processing by putting ACSLS in the idle state. Typically, this procedure is used before shutting down ACSLS, but you can also use it to temporarily stop ACSLS request processing. To idle ACSLS, do the following: 1. From a cmd_proc, enter the following command:
2. idle
ACSLS processes all current requests, rejects all new requests, and goes into the idle state.
Restarting ACSLS
Use this procedure to resume request processing by putting ACSLS in the run state. Typically, you restart ACSLS to remove it from the idle state. To restart ACSLS, do the following: 1. From a cmd_proc, enter the following command:
2. start