on 05-13-2009 7:48 AM
Hi All
1)I upgraded kernel 700 to patch 185.its solaris machine.and then i tried to run saproot.sh script,but it is saying like
./saproot.sh SID
./saproot.sh: whoami: not found
./saproot.sh: test: argument expected
i gave full permission to saproot.sh and saposcol
2)I run a command 'cleanipc 00 remove' from then it is giving dump 'PXA_NO_SHARED_MEMORY'
i increased buffersize also but of no use.
when i go to st06 it is giving err 'SAPOSCOL not running?(shared memory not available)'
manually itried to run saposcol but it is saying no shared memory.
appreciate the responses.
Thank you
> # ./saproot.sh SID
> ./saproot.sh: whoami: not found
> ./saproot.sh: test: argument expected
There are two problems with that script delivered by SAP default:
- whoami is in /usr/ucb which should not be in the path (it contains old SunOS 4.x tools)
- "argument expected" means, that the shell (as root usually /bin/sh) does syntactically not understand the script.
You can simply do
ksh ./saproot.sh <SID>
or
bash ./saproot.sh <SID>
The "whoami" error still coming can be ignored since it just checks if you're logged on as root (which you are).
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> and when i go to st06 it is saying that 'SAPOSCOL not running?shared memory not available'
Yes - that is expected.
The script saproot.sh does the following:
- it checks the user ID (it tries to use whoami)
- it checks if saposcol is running
- if saposcol is running it stops it
- it does a "chown root saposcol icmbnd" (if you use oracle it will also change owners of some br*tools)
- it does a "chmod 4755 saposcol icmbnd" (it sets the sticky bit so that the effective user is root)
It does not start saposcol. This is done by "startsap" (when you start the system). You can now do simply
saposcol -l
wait a few seconds and then start ST06 again.
Markus
i tried to start saposcol
BGLR-CRM01:cr1adm> saposcol -l
-l
open logfile '/usr/sap/tmp/dev_coll.tmp' failed... use stderri
22:55:52 15.05.2009 ERROR: cannot open log file /usr/sap/tmp/dev_coll.tmp
22:55:52 15.05.2009 ERROR: Make sure directory /usr/sap/tmp exists or specify D
IR_PERF
22:55:52 15.05.2009 ERROR: in profile and run saposcol pf=<profile>
it is giving this and i go to st06 --> goto --> operating system collector --> start.
but it is giving same error 'SAPOSCOL not running?shared memory not available'
Markus
here is the reply
BGLR-CRM01:cr1adm> saposcol -l
-l
23:16:57 15.05.2009 LOG: Effective User Id is root
******************************************************************************
This is Saposcol Version COLL 20.95 700 - V3.72 64Bit
Usage: saposcol -l: Start OS Collector
saposcol -k: Stop OS Collector
saposcol -d: OS Collector Dialog Mode
saposcol -s: OS Collector Status
Starting collector (create new process)
Hi,
You need to run the script
./saproot.sh <SAPSID>
In place of <SAPSID> put your system ID name (consist of 3 characters).
Thanks,
Rohan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Hi All
>
> 1)I upgraded kernel 700 to patch 185.its solaris machine.and then i tried to run saproot.sh script,but it is saying like
>
> # ./saproot.sh SID
> ./saproot.sh: whoami: not found
> ./saproot.sh: test: argument expected
>
./saproot.sh SID needs to be execute from root user
> i gave full permission to saproot.sh and saposcol
>
> 2)I run a command 'cleanipc 00 remove' from then it is giving dump 'PXA_NO_SHARED_MEMORY'
> i increased buffersize also but of no use.
> when i go to st06 it is giving err 'SAPOSCOL not running?(shared memory not available)'
> manually itried to run saposcol but it is saying no shared memory.
>
> appreciate the responses.
>
> Thank you
Check this link
http://help.sap.com/saphelp_bw30b/helpdata/en/95/df4002597211d3b473006094b910d9/content.htm
http://www.saptechies.com/os-collector-saposcol/
Regards,
Subhash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Santosh,
You should follow,
Note 420417 - saproot.sh 'whoami command not found' (Solaris)
https://service.sap.com/sap/support/notes/420417
Regards,
Debasis.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.