If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I sometimes need to check the env variables that were set at the time of db2start. I use "ps eww <PID of db2sysc>". This works fine on AIX. I also checked on Linux RHEL and it looks ok too.
I think I now understand what is wrong. Cust must have issued this command when logged in as some other user id. From the info provided, it looked as if he was executing it using ldaptw.
My cust tried ps eww on AIX and several Linux servers and it worked for all of them expect SUSE 10. He was logged in as the instance id. I also tried it on several Linux servers and it always displayed the env variables as long as I was doing it for my instance id.
My results:
$ whoami
dbguest2
$ cat /etc/SuSE-release
SUSE Linux Enterprise Server 10 (ppc)
VERSION = 10
PATCHLEVEL = 1
I didn't realize at first that you were trying to get the environment for a different process. That obviously is not allowed; you can only see the environment of your own processes, unless you are root.
Customer was logged in as instance_id when he issued "ps eww <PID of db2sysc for that instance_id>". This works on all of their servers (AIX/Linux) except for SUSE 10. The only way I could reproduce this "behaviour" (no env info is displayed) is if I try to get the environment for a different user.