hi,
im doing an awk script to display some information of the current state of the system, and i can't find how to display general information of the CPU (average use, sleeps process, etc..)
if somebody can help me, I really appreciate it
Thanks
You'll need to use other commands to find your CPU info, and then use tools like grep or awk to get the parts you want out of there.
The commands you need will depend on exactly what information you are looking for, and also which version of Unix you are on. I usually work on Sun Solaris, and the commands I'd look at for something like this are prtdiag, ps, psrinfo, or maybe some of the proc tools like ptree. Maybe do a man on those (or the equivalent for your OS) and see if they can tell you what you need.
Originally posted by grillonegro hi,
im doing an awk script to display some information of the current state of the system, and i can't find how to display general information of the CPU (average use, sleeps process, etc..)
if somebody can help me, I really appreciate it
Thanks
'
Hey bro, it really helps if you specify your flavor of UNIX... to pull cpu info... some versions like mine, HPUX have specific commands that can be used to do this.