Sponsored Content
Operating Systems Solaris current CPU usage, memory usage, disk I/O oid(snmp) Post 302267648 by sandejai on Saturday 13th of December 2008 05:19:47 AM
Old 12-13-2008
pstat

will do a help
 

10 More Discussions You Might Find Interesting

1. Programming

Monitor CPU usage and Memory Usage

how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries through a c program or java program i want to store that data into database so i can show it graphically thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies

2. UNIX for Advanced & Expert Users

Monitoring CPU usage on AIX 5.3 with SNMP

Hi I would like to monitor CPU usage ( %) , memory utilization and such on an AIX 5.3 with snmp. How would I do that ? :confused: If I do "snmpwalk -c public -v1 hosttomonitor" I get nothing about the CPU. I've done this on Linux ( not much trouble doing it on linux ) but I'm having a hard... (2 Replies)
Discussion started by: art
2 Replies

3. Programming

CPU usage and memory usage

Please tell me solaris functions/api for getting following information 1- Function that tells how much memory used by current process 2- Function that tells how much memory used by all running processes 3- Function that tells how much CPU is used by current process 4- Function that tells how... (1 Reply)
Discussion started by: mansoorulhaq
1 Replies

4. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

5. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

6. UNIX for Advanced & Expert Users

How often should I monitor the CPU and memory usage ?

Hi all, When you monitor the CPU and memory usage, how often do you do it ? Do it too often or too rarely will both cause the problem. So does anyone have hand-on experience ? And for my case, the requirement says that when CPU usage is above X% or memory usage is above Y%, I should reject... (5 Replies)
Discussion started by: qiulang
5 Replies

7. Infrastructure Monitoring

Monitoring CPU Usage with SNMP

Can someone please tell me how to calculate the CPU usage from what one gets back from snmpwalk? I have searched and dug through the internet and apparently, no one has the answer to this? i can use snmpwalk to pull out relevant information about cpu. but i have no clue what values are to be... (1 Reply)
Discussion started by: SkySmart
1 Replies

8. Shell Programming and Scripting

shell script to alert cpu memory and disk usage help please

Hi all can any one help me to script monitoring CPU load avg when reaches threshold value and disk usage if it exceeds some % tried using awk but when df -h out put is in two different lines awk doesnt work for the particular output in two different line ( output for df -h is in two... (7 Replies)
Discussion started by: robo
7 Replies

9. Shell Programming and Scripting

Get the memory and cpu usage

what is the best way to get the memory and cpu usage of a process on any system? this is relatively simple. however, i'm looking for a unified method that would work on linux, sunos, hpux, aix. ps -ef | egrep myprocess | awk '{print $4}' ---> there could be several instances of 'myprocess'... (3 Replies)
Discussion started by: SkySmart
3 Replies

10. Shell Programming and Scripting

Cpu and memory usage scripts

All I am writing a script to generate an email when cpu and memory usage is high for 5 min continuously help me urgent I wrote below scritpt LOAD=75.00 CPU_LOAD= 'sar -P all 300 5 |grep 'Average.all* '| awk -F " " '(print 100.0 -$NF)'' IF }; ECHO "pLEASE CHECK YOUR PROCESS ON YOUR... (1 Reply)
Discussion started by: anil529
1 Replies
pstat(8)						      System Manager's Manual							  pstat(8)

Name
       pstat - print system facts

Syntax
       /etc/pstat -aixvptufTk [ system ] [ corefile ]

Description
       The command interprets the contents of certain system tables. The contents of system tables can change while is running, so the information
       it gives is a snapshot taken at a given time.  If you specify system, gets the namelist from the named system's kernel. If you omit system,
       uses  the  namelist  in If you specify corefile, uses the tables in the core file. Otherwise, uses the tables in Use the -k option when you
       specify the system or corefile argument.

Options
       -a   When used with the -p option, displays all process slots, rather than just active ones.

       -f   Displays the open file table with the following headings:

	       LOC	 The core location of this table entry.

	       TYPE	 The type of object the file table entry points to.

	       FLG	 Miscellaneous state variables, encoded as follows:

			   R   Open for reading

			   W   Open for writing

			   A   Open for appending

			   S   Shared lock

			   X   Exclusive use

			   I   Asynchronous input and output notification

			   B   Block-if-in-use flag is set (shared line semaphore)

	       CNT	 Number of processes that know this open file.

	       GNO	 The location of the gnode table entry for this file.

	       OFFS/SOCK The file offset or the core address of the associated socket structure.  (See for information on file offsets.)

       -i   Displays the gnode table with the following headings:

	       LOC	 The core location of this table entry.

	       FLAGS	 Miscellaneous state variables, encoded as follows:

			   L   Locked.

			   U   Update time for the file system must be corrected. See the reference page for more information.

			   A   Access time must be corrected.

			   M   File system is mounted here.

			   W   Wanted by another process (L flag is on).

			   T   Contains a text file.

			   C   Changed time must be corrected.

			   S   Shared lock applied.

			   E   Exclusive lock applied.

			   Z   Someone waiting for an exclusive lock.

			   I   In-use flag is set (shared line semaphore).

	       CNT	 Number of open file table entries for this gnode.

	       DEV	 Major and minor device number of the file system in which this gnode resides.

	       RDC	 Reference count of shared locks on the gnode.

	       WRC	 Reference count of exclusive locks on the gnode. (This count can be >1 if, for example, a file  descriptor  is  inherited
			 across a fork.)

	       GNO	 I-number within the device.

	       MODE	 Mode bits. (See for information about mode bits.)

	       NLK	 Number of links to this gnode.

	       UID	 User identification (ID) of owner.

	       SIZ/DEV	 Number of bytes in an ordinary file or major and minor device of a special file.

       -k   Prevents  the process that is created from becoming too large, which can cause performance problems.  Use -k when you specify the sys-
	    tem or corefile argument.

       -p   Displays the process table for active processes with these headings:

	       LOC	 The core location of this table entry.

	       S	 Run state, encoded as follows:

			   0   No process

			   1   Waiting for some event

			   3   Able to be run

			   4   Being created

			   5   Being terminated

			   6   Stopped under trace

	       F	 Miscellaneous state variables, combined with a Boolean OR operation (hexadecimal):

			   00000001 Process is resident in memory.

			   00000002 System process:  swapper, pager, idle (RISC only), trusted path daemon.

			   00000004 Process is being swapped out.

			   00000008 Process requested swapout for page table growth.

			   00000010 Traced.

			   00000020 Used in tracing.

			   00000040 Locked in by a call.

			   00000080 Waiting for page-in to complete.

			   00000100 Protected from swapout while transferring resources to another process.

			   00000200 Used by a call.

			   00000400 Exiting.

			   00000800 Protected from swapout while doing physical input and output.

			   00001000 Process resulted from a call, which is not yet complete.

			   00002000 Parent has received resources returned by a child created with the call.

			   00004000 Process has no virtual memory because it is a parent in the context of the call.

			   00008000 Process is demand-paging data pages from its text gnode.

			   00010000 Process has advised of sequential memory access.

			   00020000 Process has advised of random memory access.

			   00080000 Process has indicated intent to execute data or stack (RISC only).

			   00100000 POSIX environment: no SIGCLD generated when children stop.

			   00200000 Process is owed a profiling tick.

			   00400000 Used by a call

			   00800000 A login process.

			   04000000 System V file lock applied.

			   08000000 Repair of unaligned accesses has been attempted (RISC only).

			   10000000 Process has called the system routine.

			   20000000 The idle process (RISC only).

	       POIP	 Number of pages currently being pushed out from this process.

	       PRI	 Scheduling priority. (See for information on priorities.)

	       SIGNAL	 Signals received (signals 1-32 coded in bits 0-31).

	       UID	 Real user ID.

	       SLP	 Amount of time the process has been blocked.

	       TIM	 Time resident in seconds; values greater than 127 are coded as 127.

	       CPU	 Weighted integral of CPU time, for scheduler.

	       NI	 Nice level. (See for information about nice levels.)

	       PGRP	 Process number of the root of the process group (the opener of the controlling terminal).

	       PID	 The process ID number.

	       PPID	 The process ID of the parent process.

	       ADDR	 If the process is in memory, identifies the user area page frame number of the page table entries.   If  the  process	is
			 swapped out, identifies the position in the swap area measured in multiples of 512 bytes.

	       RSS	 Resident set size minus the number of physical page frames allocated to this process.

	       SRSS	 RSS at last swap (0 if never swapped).

	       SIZE	 Virtual size of process image (data plus stack) in multiples of 512 bytes.

	       WCHAN	 Wait channel number of a waiting process.

	       LINK	 Link pointer in list of processes that can be run.

	       TEXTP	 If text is pure, pointer to location of text table entry.

	       CLKT	 Countdown  for  real  interval  timer,  measured in clock ticks (10 milliseconds). See the reference page for information
			 about the real interval timer.)

	       TTYP	 Address of controlling the terminal.

	       DMAP	 Address of data segment dmap structure.

	       SMAP	 Address of stack segment dmap structure.

       -s   Displays the following information about the pages used for swap space:

	       o    The number of pages reserved, but not necessarily allocated, by the system for currently executing processes.

	       o    The number of pages used (physically allocated), including the number used for text images.

	       o    The number of pages free, wasted, or missing. Free pages are pages that have not been allocated.  Missing  pages  are  usually
		    allocated to argdev.  Wasted pages indicate the amount of space lost because the swap space is fragmented.

	       o    The number of pages available, which indicates the amount of space available for swapping.

       -t   Displays the table for terminals with the following headings:

	       RAW	 Number of characters in the raw input queue.

	       CAN	 Number of characters in the canonic input queue.

	       OUT	 Number of characters in the output queue.

	       MODE	 Terminal mode, as described in

	       ADDR	 Physical device address.

	       DEL	 Number of delimiters (newlines) in the canonic input queue.

	       COL	 Calculated column position of the terminal.

	       STATE	 Miscellaneous state variables, encoded as follows:

			   T   Line is timed out.

			   W   Waiting for open to complete.

			   O   Open.

			   C   Carrier is on.

			   B   Busy doing output.

			   A   Process is awaiting output.

			   X   Open for exclusive use.

			   H   Hangup on close.

			   S   Output is stopped (ttstop).

			   I   In-use flag is set (shared line semaphore).

			   D   Open nodelay.

			   G   Ignore carrier.

			   N   Nonblocking input and output.

			   Z   Asychronous input and output notification.

			   L   Terminal line is in the process of closing.

			   Q   Output suspended for flow control.

	       PGRP	 Process group for which this is the controlling terminal.

	       DISC	 Line discipline; blank is old tty OTTYDISC, ntty for NTTYDISC, or termio for TERMIODISC.

       -T   Displays  the  number  of  used and free slots in the system tables.  This option is useful for determining how full the system tables
	    have become if the system is under a heavy load.

       -upid
	    Displays information about the specified user process. The pid argument is the process ID number as displayed  by  the  command.   The
	    process  must be in main memory, unless you specify the corefile argument on the command line. If you specify a core file, pid must be
	    0.

       -v   Displays a listing of all vector processes on the system. This option is valid only for processors that have the VAX vector  hardware.
	    The following list describes the headings in the display:

	       LOC	 The core location of this table entry

	       PPGRP	 The process number of the root of the process group (the opener of the controlling terminal)

	       PID	 The process ID number

	       PPID	 The process ID of the parent process

	       VSTAT	 One of the following vector process statuses:

			   WAIT   New vector process, which is waiting for a vector processor to be allocated to it.

			   LOAD   Process context is present in both vector and scalar processors.

			   SAVED  Process vector context is saved in memory.

			   LIMBO  A  vector  processor	has  been allocated to the process, but the vector context of the process has not yet been
				  loaded.

	       VERRS  Number of vector processor errors incurred by this process.

	       REFS   Number of times this process was refused scheduling into a vector processor.

	       CHPCXT Number of times the scaler context has been saved and restored, while the vector context remains resident in the vector pro-
		      cessor.

	       EPXCXT Number of times both the scalar and vector contexts have been saved and restored.

       -x   Displays the text table with the following headings:

	       LOC	 The core location of this table entry.

	       FLAGS	 Miscellaneous state variables encoded as follows:

			   T   A process called the system call.

			   W   Text has not yet been written on the swap device.

			   L   Loading is in progress.

			   K   Locked.

			   w   Wanted. (L flag is on.)

			   F   Text structure is on the freelist.

			   P   Resulted from demand-page-from-gnode execution format.  For further information, see

			   l   Locked from being paged or swapped.  For further information, see

			   B   All attached processes are being killed due to server write of an file.

	       DADDR	 Address of the text dmap structure in core.

	       CADDR	 Head of a linked list of loaded processes using this text segment.

	       SIZE	 Size of the text segment, measured in multiples of 512 bytes.

	       IPTR	 Core location of the corresponding gnode.

	       CNT	 Number of processes using this text segment.

	       CCNT	 Number of processes in core using this text segment.

	       LCNT	 Number of process locking this text segment.

	       POIP	 Number of pages currently being pushed out in this text segment.

	       CMAP	 The address of the last CMAP entry freed.

Files
       User process information

       Kernel memory

       System namelist

See Also
       ps(1), chmod(2), execve(2), getitimer(2), getpriority(2), lseek(2), plock(2), ptrace(2), stat(2), fs(5)

																	  pstat(8)
All times are GMT -4. The time now is 01:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy