We have a Sun Sparc System which has multiple CPUs (4 Nos.). I need a command/program that can be used to monitor the % utilization per CPU. (2 Replies)
Hi All,
Kindly help me in optimizing the server as it displays a great amount of CPU & MEM being utilised when the mysql process executes.
Below are the stats ---
--------------------------------------------------------------------------
# top
15:51:57 up 23:22, 5 users, load average:... (1 Reply)
Hi,
I want to check the CPU and Memory Utilisation in the whole machine (not for a single process). Can someone send me a ready made script which captures all information in a log every 5min??
Thanks,
Ajith (0 Replies)
Hi all,
I am a newbie to whole shell scripting thing. I deal with computational studies and a lot of softwares which run on linux. At times, I have to schedule my jobs after some process has started. In these case, I have to use at command to schedule my job.
However, I would like to know if... (0 Replies)
Hi,
We need to monitor one process over time to see at which exact point it starts to consume to much memory and CPU (to correlate this with some other events).
I am a newbie in AIX, so please could you tell me which command will give a snapshot of the current state of a process so that I... (1 Reply)
Hi all,
I'm using Solaris 10 and have an occasional problem where a process that runs near to midnight each day, takes anywhere between 30 seconds and over two minutes to complete. I suspect that the CPU is highly utilised during the times where it takes a long time to complete, but I need a way... (3 Replies)
Hi ,
I need to find the average percentage of CPU utilisised by a particular process through a shell script. Suppose if a process is running for 6 hours i need to get average CPU utilised by it.
Could you please assist me.
Thanks, (0 Replies)
Hi,
Can anyone tell me how to get the CPU utilisation for past 1 day in Solaris.
Below is the version i m using
SunOS ss1qeb 5.10 Generic_138889-03 i86pc i386 i86pc
thanks in advance (2 Replies)
Hi,
I want to write one script that sent mail when CPU utilisation is more then 70%. i used topas but problem is it will show output only when we press ctrl +c.
Please let me know if there is some other command that will give cpu utilisation which i can use in shell script.
Thanks (3 Replies)
Hi,
I need a command to check overall cpu utilisation
TIA (3 Replies)
Discussion started by: sumanthupar
3 Replies
LEARN ABOUT OSF1
psrinfo
psrinfo(1) General Commands Manual psrinfo(1)NAME
psrinfo, pinfo - Displays processor administration information
SYNOPSIS
/usr/sbin/psrinfo -n
/usr/sbin/psrinfo [-v] [processor...]
/usr/sbin/psrinfo -s processor
/usr/sbin/pinfo [-v] [processor...]
OPTIONS
Displays the number of processors in the system. Enables verbose mode. Writes only a boolean value to standard output. The -s option
requires a single processor identification number (processor). The -s option is intended to be used in scripts. A value of 1 is output if
the specified processor is on line. A value of 0 is output if the specified processor is off line.
DESCRIPTION
The psrinfo and pinfo commands display information about processors. The processor variable specifies the processor identification number,
which is a unique integer that identifies the processor. If you do not specify any options or a processor identification number, the com-
mands display information about all processors.
EXAMPLES
The following is an example of the default prsinfo command output (no options or processor identification numbers):
greene:> psrinfo 0 on-line since 11/03/1999 09:41:34 1 on-line since 11/03/1999 09:41:34 2 off-line since
11/03/1999 08:41:34
The following example shows how to use the psrinfo command with the -s option in a shell script to determine the state of the pro-
cessor with an identification number of 1:
if [ "`psrinfo -s 1 2> /dev/null`" -eq 1 ] then echo "processor 1 is up" else echo "processor 1 is down" fi The following
example shows how to use the psrinfo command with the -v option:
% psrinfo -v Status of processor 0 as of: 05/23/00 15:47:40
Processor has been on-line since 05/23/2000 15:08:04
The alpha EV5.6 (21164A) processor operates at 465 MHz,
and has an alpha internal floating point processor. Status of processor 1 as of: 05/23/00 15:47:40
Processor has been on-line since 05/23/2000 15:08:04
The alpha EV5.6 (21164A) processor operates at 465 MHz,
and has an alpha internal floating point processor. Status of processor 2 as of: 05/23/00 15:47:40
Processor has been off-line since 05/23/2000 15:08:04
The alpha EV5.6 (21164A) processor operates at 465 MHz,
and has an alpha internal floating point processor. Status of processor 3 as of: 05/23/00 15:47:40
Processor has been on-line since 05/23/2000 15:14:00
The alpha EV5.6 (21164A) processor operates at 465 MHz,
and has an alpha internal floating point processor.
FILES SEE ALSO
Commands: pset_assign_cpu(1), pset_assign_pid(1), pset_info(1), psradm(8)
Files: utmp(4)
Processor Sets: processor_sets(4)psrinfo(1)