1846574 Members
1935 Online
110256 Solutions
New Discussion

command top error

 
SOLVED
Go to solution
Alfredo_9
Frequent Advisor

command top error

hello,

i'm trying to write a script that gives me the cpu load of my server. i thought of using the command top in my script but i get the following error :
top: /dev/ksyms is not a 32-bit kernel namelist
kvm_open: Error 0
what does it mean ?

thank you
alfredo
3 REPLIES 3
Michael Tully
Honored Contributor
Solution

Re: command top error

Hi,

You'd be better off using the output of 'sar' to get this type of information. As 'top' is mostly interactive could cause this type of error (without seeing the script). Another tool is glance + which does cost, but there is a free trial version.

Michael
Anyone for a Mutiny ?
Chris Wilshaw
Honored Contributor

Re: command top error

If you really want to use top, you can, by redirecting the output to a file

eg:

top -d 1 -f

Will produce 1 screens worth of top output in the file .

If it's just the load average you're after, you could also use the uptime command.

Chris.
George Abraham_1
Regular Advisor

Re: command top error

hai

This is a useful link which give some scripts for system monitoring.. pick the one you like
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x026250011d20d6118ff40090279cd0f9,00.html


keep smiling
george
keep smiling