sapnote_0000548699
TRANSCRIPT
8/9/2019 Sapnote_0000548699
http://slidepdf.com/reader/full/sapnote0000548699 1/3
23.10.2013 Page 1 of 3
SAP Note 548699 - FAQ: OS collector SAPOSCOL
Note Language: English Version: 2 Validity: Valid Since 18.09.2002
Summary
Symptom
1. How do I install saposcol?
2. How do I get all the commands of saposcol?
3. What commands can be executed in the dialog mode of saposcol?
4. How do I check whether saposcol is running and under what user
(root or <sid>adm) (Unix)?
5. How can I change the owner and group of file saposcol? What
properties should file saposcol have (Unix)?
6. How do I stop saposcol if standard commands (points 2 and 3) do notwork (Unix)?
7. How do I remove the shared memory key of saposcol?
Other terms
-
Reason and Prerequisites
-
Solution
1. Question: How do I install saposcol?a) To install saposcol, just copy the latest version available on the SAP
Service Marketplace: http://service.sap.com/swcenter-main. For more
information, see SAP Note 19227.
b) (Windows only) After that, you can set up the saposcol as a service. For
more information, see SAP Note 436186.
2. Question: How do I get all the commands of saposcol?
Answer: In order to be able to execute commands, the saposcol should be
running. Saposcol is started by command "saposcol –l". The saposcol is
controlled by the OS command “saposcol <option>”. In order to find out what
<options> are possible, execute command “saposcol -?” and you get an output
of all commands of saposcol.
(Note: Often the above output does not give the meaning of command
“saposcol -ztl” – activation of cycle trace.)
3. Question: What commands can be executed in dialog mode of saposcol?
Answer: The saposcol command “saposcol -d” starts the dialog mode of
saposcol. Please use command “help” for a list of possible commands in the
dialog mode. To exit the dialog mode of saposcol, execute command “exit”.
4. Question: How do I check whether saposcol is running and under what user
(root or <sid>adm) (Unix)?
Answer: First you can execute command "saposcol -s" or
"saposcol -d"
> statusin order to see the content of the shared memory. This will provide you
with information as to whether the collector is running or not.
8/9/2019 Sapnote_0000548699
http://slidepdf.com/reader/full/sapnote0000548699 2/3
23.10.2013 Page 2 of 3
SAP Note 548699 - FAQ: OS collector SAPOSCOL
On Unix you can also execute command:
ps -ef | grep saposcol
If saposcol is running, the output will give you the saposcol process ID.
Depending on which user is running saposcol, the output will be similar
either to:
root 17700 1 1 Jun 28 ? 349:27 saposcol –tzl (if saposcol running
under user root)
or
<sid>adm 17700 1 1 Jun 28 ? 349:27 saposcol –tzl (if saposcol running under
user <sid>adm).
5. Question: How can I change the owner and group of file saposcol? What
properties should file saposcol have (Unix)?
Answer: Execute command:
ls -la /usr/sap/<SID>/SYS/exe/run/saposcol
saposcol should have file properties similar to the following example:
-rwsr-x--- 1 root sapsys 320434 Apr 3 18:00 saposcol
To change the saposcol file to owner root, group sapsys, mode 4750, log in
as root to your unix system:cd /usr/sap/<SID>/SYS/exe/run
chown root saposcol
chgrp sapsys saposcol
chmod 4750 saposcol
6. Question: How do I stop saposcol if standard commands (points 2
and 3) do not work (Unix)?
Answer: Sometimes it may be impossible to stop saposcol either by “saposcol
-d” --> kill or by “saposcol -k”. The system produces messages similar to:
can't kill process 34570.
kill: No such process
ERROR:No reaction from collecting process 34570!
Please kill collecting process.
Although no process with PID 34570 exists, the output of command “saposcol
-s” shows that saposcol is running and shared memory is attached. In this
case, you can execute command: "cleanipc 99 remove".
If this does not work either, it is possible to stop the collector running
by removing the shared memory key of saposcol.
7. Question: How do I remove the shared memory key of saposcol?
Answer: Sometimes it may be necessary to remove the shared memory key of
saposcol (see point 6).
Caution: Please be very careful! This procedure should be performed only
after checking that saposcol is really not running (see point 4)
and only in cases when other options (see point 6) really do not work!For this, execute command “ipcs -ma” and note the line that contains
saposcol key “4dbe”. You need the shared memory ID. After that, execute
command
ipcrm -m ID
Now the command “saposcol -s” should show that saposcol is not running and
that the shared memory is not attached. The shared memory key will be
created automatically by the saposcol when the collector is next started:
“saposcol -l”.
Header Data
Release Status: Released for Customer
Released on: 08.10.2002 12:10:01
8/9/2019 Sapnote_0000548699
http://slidepdf.com/reader/full/sapnote0000548699 3/3
23.10.2013 Page 3 of 3
SAP Note 548699 - FAQ: OS collector SAPOSCOL
Master Language: English
Priority: Recommendations/additional info
Category: FAQ
Primary Component: BC-CCM-MON-OS Operating System Monitors
The Note is release-independent
Related Notes
Number Short Text
710975 FAQ: which saposcol should be used on AIX
436186 Installing saposcol as a service
19227 Open newest saposcol