Operating System - HP-UX
1824937 Members
3903 Online
109678 Solutions
New Discussion юеВ

top not showing no.of cpu and avg cpu load

 
ITlearner
Frequent Advisor

top not showing no.of cpu and avg cpu load

Hi,

We have a rp4440 series and when I give top command i cannot see the per cpu load and processes the each cpu have.

last pid: 6916; load averages: 0.01, 0.04, 0.06 16:23:07
201 processes: 193 sleeping, 7 running, 1 zombie
CPU states: % usr, % nice, % sys, % idle, % block, % intr
Memory: Real: 72M/180M act/tot Virtual: 140M/301M act/tot Free: 3115M

TTY PID USERNAME PRI NICE SIZE RES STATE TIME CPU COMMAND
? 6852 pbldsrv 154 0 414K 621K sleep 0:00 0.23% clearmake
? 6912 pbldsrv 154 0 94K 258K sleep 0:00 0.15% clearmake


can anybody help me

10 REPLIES 10
Chan 007
Honored Contributor

Re: top not showing no.of cpu and avg cpu load

Just ensure that you are not aliasing top for top -h (hides the cpu list)

unset that and run top

Chan
ITlearner
Frequent Advisor

Re: top not showing no.of cpu and avg cpu load

No, I checked it its okay but still top doesn't show.

but when we check for syslog all processors has come up and SAM also 4 processors running .but still top doesnt show the cpu details.

Thanks in advance

Peter Godron
Honored Contributor

Re: top not showing no.of cpu and avg cpu load

Hi,
could you please post the results of:
what `which top`
ll `which top`
ITlearner
Frequent Advisor

Re: top not showing no.of cpu and avg cpu load

# what `which top`
/usr/sbin/top:
$Revision: 92453-07 linker linker crt0.o B.11.37 031205 $
# ll `which top`
-rwxrwxrwx 1 root sys 98304 Apr 26 2005 /usr/sbin/top
#
Peter Godron
Honored Contributor

Re: top not showing no.of cpu and avg cpu load

Hi,
on my 11.11 system:
# what `which top`
/usr/bin/top:
top.c $Date: 2004/01/28 15:25:27 $Revision: r11.11/11 PATCH_11.11 (PHCO_29072)
$Revision: @(#) all R11.11_BL2004_0203_1 PATCH_11.11 PHCO_29072
Tue Feb 3 08:35:29 PST 2004 $
# ll `which top`
-r-xr-sr-x 1 bin sys 40960 Feb 3 2004 /usr/bin/top

Please note the different permissions !!
ITlearner
Frequent Advisor

Re: top not showing no.of cpu and avg cpu load

OK but tell me can I change my usr/sbin/top premissions as per yours

ITlearner
Frequent Advisor

Re: top not showing no.of cpu and avg cpu load

Hi,

when I type
#/usr/bin/top
I can get the cpu processes but not when typing /usr/sbin/top

tell me how to change by default to reroute to /usr/bin/top.
when i type top cmd it should reroute to /usr/bin/top
ITlearner
Frequent Advisor

Re: top not showing no.of cpu and avg cpu load

Hi,

Thanks for the help.

i got it.

i gave #alias top=/usr/bin/top

now its working.

Thanks
Patrick Wallek
Honored Contributor

Re: top not showing no.of cpu and avg cpu load

The reason it was finding /usr/sbin/top first is due to your PATH environment variable.

If you 'echo $PATH' you will probably see /usr/sbin/ in the list before /usr/bin/.

To get /usr/bin/top first, just move /usr/bin/ so it occurrs BEFORE /usr/sbin/ in your PATH.
ITlearner
Frequent Advisor

Re: top not showing no.of cpu and avg cpu load

successfully