A ps trick

How do you get the full command-line including arguments for a process on Solaris? Here is how:

/usr/ucb/ps auxww <pid>

This is useful for some people who wants to know how an application actually got launched, which may include a long list of configuration parameters. Seeing the full command-line including all arguments is useful for configuration troubleshooting.

8 thoughts on “A ps trick

  1. Thanks for offering a suggestion. Yes. pargs can also provide the same information in a different presentation. It presents each argument as a separate line, which could be easier to read for some people. If your goal is to see how the process was executed AS-IS, use either /usr/ucb/ps auxww or pargs -l. pargs can display the full path to the executable while /usr/ucb/ps will leave that information out.

  2. Hi,

    Are you aware of any known bugs in /isr/ucb/ps.

    Some time back I came across a case where ‘/usr/ucb/ps -auxwww’ would have an issue with output.

    The process name would be displayed after the process arguments. i.e In Reverse order !!!


  3. When I ran ‘/usr/ucb/ps -auxwww’, it shows full path to the executable, then the arguments. So it appears to be working for me. Are you seeing the behavior that you described even now?

  4. It seems that on the latest patched version of Solaris, ‘/usr/ucb/ps -auxwww’ no longer gives the full information. It is truncated after about 200 characters. It stopped working after the unix admins patched all the servers to handle issues with the change in daylight savings time. Is anyone else experiencing this?

  5. Hi AI,

    I haven’t experienced the issue you described. Actually I haven’t find a need to run /usr/ucb/ps -auxwww lately. So, if you find a solution/workaround, let me know. Thanks,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s