1833017 Members
2111 Online
110048 Solutions
New Discussion

ps eew

 
Mderin
Occasional Advisor

ps eew

Hi,

I need some information about ps command. "ps eew" command gives information about process's environment at Sun OS and Linux OS. You can see the information below. I need that kinds of information at HP-UX.

Thanks

ps eww --pid 15969
PID TTY STAT TIME COMMAND
15969 ? S 67:24 /usr/local/bea/jrockit81sp4_142_05/bin/java -jrockit -Xms32m -Xmx200m -Xverify:none -Djava.security.policy=/usr/local/bea/weblogic81/server/lib/weblogic.policy -Dweblogic.nodemanager.javaHome=/usr/local/bea/jrockit81sp4_142_05 -DListenAddress=10.201.148.23 -DListenPort=5555 weblogic.NodeManager HOSTNAME=anprta03 POINTBASE_TOOLS=/usr/local/bea/weblogic81/common/eval/pointbase/lib/pbtools44.jar PRODUCTION_MODE= TERM=ansi SHELL=/bin/bash HISTSIZE=1000 BEA_HOME=/usr/local/bea PATHSEP=: OLDPWD=/home/weblogic/bin QTDIR=/usr/lib/qt-3.1 JAVA_OPTIONS= -Xverify:none POINTBASE_CLASSPATH=:/usr/local/bea/weblogic81/common/eval/pointbase/lib/pbserver44.jar:/usr/local/bea/weblogic81/common/eval/pointbase/lib/pbclient44.jar USER=weblogic LD_LIBRARY_PATH=/usr/local/bea/jrockit81sp4_142_05/jre/lib/i386/jrockit:/usr/local/bea/jrockit81sp4_142_05/jre/lib/i386:/usr/local/bea/jrockit81sp4_142_05/jre/../lib/i386:/usr/local/bea/weblogic81/server/lib/linux/i686:/usr/local/bea/weblogic81/server/lib/linux/i686/oci920_8 LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35: WEBLOGIC_CLASSPATH=/usr/local/bea/jrockit81sp4_142_05/lib/tools.jar:/usr/local/bea/weblogic81/server/lib/weblogic_sp.jar:/usr/local/bea/weblogic81/server/lib/weblogic.jar JAVA_VENDOR=BEA PATH=/usr/local/bea/weblogic81/server/bin:/usr/local/bea/jrockit81sp4_142_05/jre/bin:/usr/local/bea/jrockit81sp4_142_05/bin:/usr/kerberos/bin:/bin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/X11R6/bin:/home/weblogic/bin MAIL=/var/spool/mail/weblogic PWD=/usr/local/bea/weblogic81/common/nodemanager INPUTRC=/etc/inputrc JAVA_HOME=/usr/local/bea/jrockit81sp4_142_05 LANG=en_US.UTF-8 LAMHELPFILE=/etc/lam/lam-helpfile SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass JAVA_VM=-jrockit HOME=/home/weblogic SHLVL=3 CLASSPATHSEP=: LOGNAME=weblogic CLASSPATH=/usr/local/bea/jrockit81sp4_142_05/lib/tools.jar:/usr/local/bea/weblogic81/server/lib/weblogic_sp.jar:/usr/local/bea/weblogic81/server/lib/weblogic.jar::/usr/local/bea LESSOPEN=|/usr/bin/lesspipe.sh %s POINTBASE_HOME=/usr/local/bea/weblogic81/common/eval/pointbase MEM_ARGS=-Xms32m -Xmx200m WL_HOME=/usr/local/bea/weblogic81 G_BROKEN_FILENAMES=1 _=/usr/local/bea/jrockit81sp4_142_05/bin/java

11 REPLIES 11
Court Campbell
Honored Contributor

Re: ps eew

ps -ex
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Mderin
Occasional Advisor

Re: ps eew

ps -ex does not fit exactly :(
Reshma Malusare
Trusted Contributor

Re: ps eew

Hi Mderin,
Please have a look on following document. It will solve your query

http://docs.hp.com/en/B2355-60130/ps.1.html

Thanks & Regards
Reshma
Court Campbell
Honored Contributor

Re: ps eew

Well I would say try -H, but unless you are running 11i v3 that is not an option.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Mderin
Occasional Advisor

Re: ps eew

version 11iv3 .

On the other hand, I couldnt see appropiate information in ps's man pages.
Court Campbell
Honored Contributor

Re: ps eew

Sorry you may not be able to get all that info from the hpux version of ps.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Mderin
Occasional Advisor

Re: ps eew

well, any other command helpful ?
Arturo Galbiati
Esteemed Contributor

Re: ps eew

Hu,
try to use the ptree.sh script attached.
HTH,
Art
Mderin
Occasional Advisor

Re: ps eew

I tried it but not helpful. In fact, I need information that process' environment variables values. Such as value of JAVA_HOME variable.

Thanks
Dennis Handly
Acclaimed Contributor

Re: ps eew

If you can afford to abort one process, strings -a on the core file would give this. (This is about the only use for it on core files.)
Mderin
Occasional Advisor

Re: ps eew

No , I cannot. This is a configuration scripts collecting information from servers and run on servers everyday automatically . One of information is some software's HOMEPATH . We try to find this information via running process such as weblogic process.

Thanks