HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: The usage of "ps"
Operating System - HP-UX
1833748
Members
2572
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 03:08 PM
03-10-2005 03:08 PM
I have a user , the login ID is "acc_usr" , the user is running a very large process in my system ,
#who -u acc_usr
acc_usr pts/19 Mar 11 10:30 00:12 4231 (192.168.0.1)
but if I ps the user PID , the process is in "S" mode,
#ps -aux |grep 4231
root 4 231 0.0 0.0 2352 992 ? S 10:30 0:00 login -- acc_usr
acc_usr 319 0.0 0.0 3588 632 pts/22 S 11:51 0:00 grep 4231
I check with the command "top" , the user is running process , and in "R" mode , could suggest why ps can't find the "R" mode process , do I need to use other parameter ? thx.
#who -u acc_usr
acc_usr pts/19 Mar 11 10:30 00:12 4231 (192.168.0.1)
but if I ps the user PID , the process is in "S" mode,
#ps -aux |grep 4231
root 4 231 0.0 0.0 2352 992 ? S 10:30 0:00 login -- acc_usr
acc_usr 319 0.0 0.0 3588 632 pts/22 S 11:51 0:00 grep 4231
I check with the command "top" , the user is running process , and in "R" mode , could suggest why ps can't find the "R" mode process , do I need to use other parameter ? thx.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 07:46 PM
03-10-2005 07:46 PM
Solution
Hi,
what system are you running?
According to my man pages (HPUX 11.0) the command ps -aux should not work:
as
1. If any of the -a, -A, -d, or -e options is specified, the -C, -g, -G,-p, -R, -t, -u, and -U options are ignored.
2. -u uidlist Select processes whose effective user ID numbers or login names are given in uidlist.
All of this aside:
The default heading for the state column is S. Are you sure you are not looking at the default heading?
Regards
what system are you running?
According to my man pages (HPUX 11.0) the command ps -aux should not work:
as
1. If any of the -a, -A, -d, or -e options is specified, the -C, -g, -G,-p, -R, -t, -u, and -U options are ignored.
2. -u uidlist Select processes whose effective user ID numbers or login names are given in uidlist.
All of this aside:
The default heading for the state column is S. Are you sure you are not looking at the default heading?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 07:48 PM
03-10-2005 07:48 PM
Re: The usage of "ps"
Hi Peterchu
I'm not sure what the -x switch on ps is for? Is this HP-UX? Anyway, try ps -eux rather than ps -aux. The -a option excludes certain processes. Maybe the 'R' process showing in top doesn't fit the criteria for the -a option.
Let us know how you get on - Keith
I'm not sure what the -x switch on ps is for? Is this HP-UX? Anyway, try ps -eux rather than ps -aux. The -a option excludes certain processes. Maybe the 'R' process showing in top doesn't fit the criteria for the -a option.
Let us know how you get on - Keith
Arse-cover at all costs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 09:17 PM
03-10-2005 09:17 PM
Re: The usage of "ps"
What do you mean 'in "R" mode' ?
I cannot see a MODE column shown by "top" command. Instead, a "STATE" command is shown, where "run" or "sleep" states are displayed (not R).
I suspect your server is Solaris, not HP-UX, because
1st: the options of your 'ps' command (-aux) always report an error unless a user called 'x' is defined into /etc/passwd.
2nd: the output shown of your ps command is different from output of the ps command. Your output matches the output from /usr/ucb/ps in Solaris.
May you post the output of 'uname -a' ?
I cannot see a MODE column shown by "top" command. Instead, a "STATE" command is shown, where "run" or "sleep" states are displayed (not R).
I suspect your server is Solaris, not HP-UX, because
1st: the options of your 'ps' command (-aux) always report an error unless a user called 'x' is defined into /etc/passwd.
2nd: the output shown of your ps command is different from output of the ps command. Your output matches the output from /usr/ucb/ps in Solaris.
May you post the output of 'uname -a' ?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP