Unable to run some commands in HP-UX


 
Thread Tools Search this Thread
Operating Systems HP-UX Unable to run some commands in HP-UX
# 1  
Old 01-11-2011
Unable to run some commands in HP-UX

Hi All,

I want to get %cpu and %memory utilization for a given process id in HP-UX so am using the following commands

1)TOP -p <PID> am getting error message like Quitting top: pset 26323 doesn't exist,but when am using only TOP command without any options its working fine.
2)ps -e -o pcpu -o pid -o user -o args this command is giving error message like invalid option -o
3)As ps aux is expected to give output which has columns "USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND"
for me it is giving only "PID TTY TIME COMMAND" these columns.

can anyone clarify if these commands will work if we change any settings
# 2  
Old 01-11-2011
have you tried to read the man pages of the commands?
# 3  
Old 01-11-2011
And also giving Architecture and OS version does help you know...
# 4  
Old 01-11-2011
Remarkably similar to this thread, where I have suggestions for the "ps" syntax issue.

Get CPU,Memory utilization by process id

Are you posting under two handles?
# 5  
Old 01-13-2011
Hi ,
On HPUX machine you can use glance if you have glance tool installed on ur system.
# 6  
Old 01-24-2011
You need to set UNIX95 standard first - see 'man 5 standards'

Try:
# export UNIX95=1
# ps -e -o pcpu -o pid -o user -o args

---------- Post updated at 01:49 PM ---------- Previous update was at 01:45 PM ----------

Oh... And your top -p <PID> is incorrect.... Its not <PID>, but PSET (processor set) which is different.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Unable to send SCSI commands to USB Drive

I am connecting a USB mass storage removeable drive to Solaris 10 x86 machine. The device is detected and i am able to perform standard read and write functions. But i want to use a code to send IOCTL based SCSI commands to the same device to read and write the data. Which i am unable to do so.... (17 Replies)
Discussion started by: danish2012
17 Replies

2. Shell Programming and Scripting

Unable to run command after ssh

Hello, I am trying to create a ksh script to login to server and collect gather output of some command to troubleshoot some issue. DATE=`date +%b.%d.%Y.%M.%H` echo " Enter emp id to login to server" read Eid Eid=$Eid echo " Enter hostname of the system" read HOST HOST=$HOST... (2 Replies)
Discussion started by: saurabh84g
2 Replies

3. Shell Programming and Scripting

Unable to run function

Hi, I have a separate file with a ksh function in it. When I try to run it, I get an error about permissions: user@~/scripts/functions$ ksh f_fill_testfunc ksh: f_fill_testfunc: cannot open user@~/scripts/functions$ ls -l batch_functions/f_fill_testfunc -rwxr-xr-x 1 user user 1105 Aug... (18 Replies)
Discussion started by: Subbeh
18 Replies

4. UNIX for Dummies Questions & Answers

I'm unable to run Keyed List commands(in ubuntu's terminal and Evolane Tcl Engine)

I'm trying to run these commands (keylset,keylget) but i keep getting a error message "invalid command name "keylset"". I've tried running it on both ubuntu's terminal and also Evolane Tcl Engine. Any idea what could be the problem? (1 Reply)
Discussion started by: abe171
1 Replies

5. AIX

unable to run at job

Hi All, I m not able to run at job with normal user on AIX system os version is 5300-05-06. I am able to run at job only with root user. When I try to run at job with any other user I am getting error: at: you are not authorized to use at. Sorry. I checked at.deny file, it is... (4 Replies)
Discussion started by: pkatkade
4 Replies

6. Shell Programming and Scripting

Run a shell script from one host which connext to remote host and run the commands

I want to write a script which would run from one host say A and connect to other remote host B and then run rest of commands in that host. I tried connecting from A host to B with SSH but after connecting to host B it just getting me inside Host B command prompt. Rest of the script is not running... (6 Replies)
Discussion started by: SN2009
6 Replies

7. Solaris

Unable to run xclock

Hello. I am trying to run xclock on newly built solaris box - These are the steps I followed: # DISPLAY=localhost:0.0 # export DISPLAY # xclock xclock: not found # cd /usr/openwin/bin # ./xclock Error: Can't open display: localhost:0.0 # Please suggest, what am i doing wrong? Thank... (27 Replies)
Discussion started by: panchpan
27 Replies

8. Solaris

Unable to execute commands using rsh in Solaris 9 and 10.

Unable to execute commands using rsh in Solaris 9 and 10. When I execute this command " rsh -n 172.16.67.91 ls -l " I am getting this error message. ::ffff:172.16.67.91: Connection refused Please guide me how to enable rsh. Thanks & Regards Durgaprasad (1 Reply)
Discussion started by: durgaprasadr13
1 Replies

9. Shell Programming and Scripting

unable to run a script

thi is (10 Replies)
Discussion started by: angelina
10 Replies

10. Solaris

Unable to use Crossbow commands ,completely?

Hi all, I have begun working on a project that involves "Crossbow" technology. But almost immediately i have run into problems! My version of Solaris doesnt seem to have all the Crossbow commands at all. Eg, when i use, #dladm create-vnic -d nge0 1 I get the entire set of dladm command... (1 Reply)
Discussion started by: wrapster
1 Replies
Login or Register to Ask a Question