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