1

Host machine: SunOS 5.11 11.3 sun4v sparc sun4v

As an Informix DBA monitoring a system I am trying to see the top users of CPU. In an Informix environment, that slot is hogged by a gazillion instances of and the engine, being run as user informix. I have seen a few suggestions of excluding a given user but none of them work. Examples:

  • Press the "o" key exclude the user by entering !USER=informix. No, when I press the o key it prompts me for a sort column.
  • On the command line: top -u='!informix' (or something similar). It ignores that, though it does not complain about the command line option. Or maybe it does but that flashes by too quickly as the interactive screen comes on.

Hey, I'm open to suggestions here. Ideas? A fool's quest?

Thanks for help here. -- JS

1
  • You can check the manual of Solaris top command with man top on a Solaris system, or on Oracle's website. Commented May 27 at 6:30

1 Answer 1

1

You can generate list of users and exclude informix user from this list and use command like:

prstat -U user1,user2,user3 

You can use something like (very ugly and need some refactoring) to get list of users delimited by comma and exclude particular user:

ps -fe|grep -v webservd|grep -v UID|sort -u -k1,1 |gawk 'BEGIN ORS=","} {print $1}' 

so the final command will be something like:

prstat -U $(ps -fe|grep -v webservd|grep -v UID|sort -u -k1,1 |gawk 'BEGIN {ORS=","} {print $1}') 

NB! In above command I remove webservd user!

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.