Skip to Content
avatar image
Former Member

saproot.sh script not running

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

  1. ./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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    May 14, 2009 at 10:32 PM

    > # ./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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Markus Doehr

      Yes markus its working good now

      Really Thank you very much man.

      and can you look into my second issue

      it is giving dump'PXA_NO_SHARED_MEMORY'

      i increased buffer size also but not solved

      Edited by: Santosh Kulkarni on May 15, 2009 12:25 PM

  • May 13, 2009 at 07:10 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

    >

    ./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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 14, 2009 at 06:25 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Debasis

      i am not getting that point exactly.

      can u explain me in detail.

      we are using korn shell

      PATH=/usr/ucb:$PATH

      ./saproot.sh <SID>

      i am not getting here what exactly is the PATH