Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am running command "prstat -v" on Solaris but it is showing very short process name as below: (see last column values under PROCESS/NLWP). Which option in prstat gives me complete process name that is running?

 PID USERNAME USR SYS TRP TFL DFL LCK SLP LAT VCX ICX SCL SIG PROCESS/NLWP

  2709 root     0.0 0.0 0.0 0.0 0.0 0.0 100 0.0   0   0   0   0 sshd/1

  2624 root     0.0 0.0 0.0 0.0 0.0  50  50 0.0   0   0   0   0 in.rarpd/3

  2648 root     0.0 0.0 0.0 0.0 0.0 0.0 100 0.0   0   0   0   0 sendmail/1

 24429 root     0.0 0.0 0.0 0.0 0.0  98 2.5 0.0   1   0   1   0 java/807
share|improve this question

3 Answers 3

I don't see any way to do that.

share|improve this answer

You have to fall back on other utilities to get full process names.

For example:

$ pargs -l $$
/usr/bin/bash
share|improve this answer

prstat on its own will not give you what you want. However if you use ps and awk you can often get enough. For example to check on the rss values for each process I use the command

ps -ef -o rss -o args |  awk '{ hr=$1/1024 ; printf("%13.6f Mb ",hr) } { for ( x=2 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | sort -n -r
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.