Starting SAPOSCOL

You only need to start SAPOSCOL yourself the first time that it is started on a host (see Installation and Configuration of SAPOSCOL). Thereafter, SAPOSCOL is automatically stopped and started when the host is shut down and started; this applies irrespective of whether SAP components are running on the corresponding host. A manual stop and restart is only necessary in the following conditions:

  • You want to install a newer version of SAPOSCOL.
  • You want to stop SAPOSCOL that is collecting incorrect data or to correct an incorrect installation.

Procedure

The command to start SAPOSCOL varies depending on the operating system:

  • Under UNIX, you start SAPOSCOL with the command
  • saposcol (or saposcol -l).
  • Under Windows NT, you start SAPOSCOL by starting the corresponding service by choosing Start ® Settings ® Control Panel ® Services (see SAP Note 0436186).
  • You can also start SAPOSCOL in the operating system monitor.


Normally, SAPOSCOL is called without additional parameters or profiles. saposcol –l corresponds to this call, where -l stands for start (see Controlling SAPOSCOL from the Operating System).

The following occurs when the start command is executed:

  1. If the call finds a SAPOSCOL segment in the shared memory, it takes over its process ID (PID) and the stored data of a SAPOSCOL that may already be running.
  2. If no other SAPOSCOL is collecting data, the PID is 0, and SAPOSCOL uses the existing shared memory segment when starting. SAPOSCOL also starts if no shared memory is available.
  3. The new SAPOSCOL does not start if it detects that another SAPOSCOL is already collecting data.
  4. After it has been started, SAPOSCOL performs an initialization during which it reserves its required space in shared memory. The program calculates the size of this space from the number of available hard disks, CPUs, file systems, and so on. SAPOSCOL writes the contents of the file
  5. coll.put (if it exists) to its shared memory segment.
  6. The process continues running in the background, and the original program ends.

No comments:

topics