Sponsored Content
Top Forums Shell Programming and Scripting [Solved] need to get cpu usage with 1 request Post 302693517 by vbe on Wednesday 29th of August 2012 10:16:34 AM
Old 08-29-2012
You know, it does help to mention your OS and version...
When we get old it takes time ( a lot of) to figure what it can be in order to understand what you are up to...
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

cpu usage

hi, In response to your cpu usage answer I too read sys/sysinfo.h but , if we put these values to access the repective time fields in the array pst_cpu_time which is a member of the structure pst_dynamic values doesn't seem to match, why is like this? (0 Replies)
Discussion started by: sushaga
0 Replies

2. 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

3. SuSE

Request:- Could some do a poll of Linux version usage?

I don't know nearly enough about what versions of Open/Free Linux are available. I was wondering if someone would create a new poll of all the major recent(ish) distros so we can see the percentage of people's preferred distro? I've only ever used Suse and have been very happy with it, but... (0 Replies)
Discussion started by: Mark Ward
0 Replies

4. UNIX for Dummies Questions & Answers

cpu usage

when i got the cpu usage values of the all process running in my sytem i see that 140% of the cpu is used. (using ps aux command) i have a 4 cpu system. can we say that averagely 35% of each cpu is used? and if i want to speak more precisely, how can i find out that, which cpu is used at... (4 Replies)
Discussion started by: gfhgfnhhn
4 Replies

5. 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

6. 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

7. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

8. Solaris

Multi CPU Solaris system shows 100% CPU usage.

Hello Friends, On one of my Solaris 10 box, CPU usage shows 100% using "sar", "vmstat". However, it has 4 CPUs and prstat and glance are not showing enough processes to justify high CPU utilization. ========================================================================= $ prstat -a ... (4 Replies)
Discussion started by: mahive
4 Replies

9. 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

10. HP-UX

CPU Usage

Hi Experts, We encountered problem in one of the production system where some processes were taking higher CPU and after some time it came back to normal.. From system prespective, is there any way to check why processes took more cpu during that particular period. (16 Replies)
Discussion started by: sai_2507
16 Replies
COLLECTDCTL(1)							     collectd							    COLLECTDCTL(1)

NAME
collectdctl - Control interface for collectd SYNOPSIS
collectdctl [options] <command> [command options] DESCRIPTION
collectdctl provides a control interface for collectd, which may be used to interact with the daemon using the "unixsock plugin". OPTIONS
collectdctl supports the following options: -s socket Path to the UNIX socket opened by collectd's "unixsock plugin". Default: /var/run/collectd-unixsock -h Display usage information and exit. AVAILABLE COMMANDS
The following commands are supported: getval <identifier> Query the latest collected value identified by the specified <identifier> (see below). The value-list associated with that data-set is returned as a list of key-value-pairs, each on its own line. Keys and values are separated by the equal sign ("="). flush [timeout=<seconds>] [plugin=<name>] [identifier=<id>] Flush the daemon. This is useful, e. g., to make sure that the latest values have been written to the respective RRD file before graphing them or copying them to somewhere else. The following options are supported by the flush command: timeout=<seconds> Flush values older than the specified timeout (in seconds) only. plugin=<name> Flush the specified plugin only. I. e., data cached by the specified plugin is written to disk (or network or whatever), if the plugin supports that operation. Example: rrdtool. identifier=<id> If this option is present, only the data specified by the specified identifier (see below) will be flushed. Note that this option is not supported by all plugins (e. g., the "network" plugin does not support this). The plugin and identifier options may be specified more than once. In that case, all combinations of specified plugins and identifiers will be flushed only. listval Returns a list of all values (by their identifier) available to the "unixsock" plugin. Each value is printed on its own line. I. e., this command returns a list of valid identifiers that may be used with the other commands. putval <identifier> [interval=<seconds>] <value-list(s)> Submit one or more values (identified by <identifier>, see below) to the daemon which will then dispatch them to the write plugins. interval specifies the interval (in seconds) used to collect the values following that option. It defaults to the default of the running collectd instance receiving the data. Multiple <value-list(s)> (see below) may be specified. Each of them will be submitted to the daemon. The values have to match the data-set definition specified by the type as given in the identifier (see types.db(5) for details). IDENTIFIERS
An identifier has the following format: [hostname/]plugin[-plugin_instance]/type[-type_instance] Examples: somehost/cpu-0/cpu-idle uptime/uptime otherhost/memory/memory-used Hostname defaults to the local (non-fully qualified) hostname if omitted. No error is returned if the specified identifier does not exist (this is a limitation in the "libcollectdclient" library). VALUE-LIST A value list describes one data-set as handled by collectd. It is a colon (":") separated list of the time and the values. Each value is either given as an integer if the data-type is a counter, or as a double if the data-type is a gauge value. A literal "U" is interpreted as an undefined gauge value. The number of values and the data-types have to match the type specified in the identifier (see types.db(5) for details). The time is specified as epoch (i. e., standard UNIX time) or as a literal "N" which will be interpreted as now. EXAMPLES
"collectdctl flush plugin=rrdtool identifier=somehost/cpu-0/cpu-wait" Flushes all CPU wait RRD values of the first CPU of the local host. I. e., writes all pending RRD updates of that data-source to disk. "for ident in `collectdctl listval | grep users/users`; do collectdctl getval $ident; done" Query the latest number of logged in users on all hosts known to the local collectd instance. SEE ALSO
collectd(1), collectd.conf(5), collectd-unixsock(5), types.db(5) AUTHOR
collectd has been written by Florian Forster <octo at verplant.org> and many contributors (see `AUTHORS'). collectdctl has been written by Haakon J Dugstad Johnsen <hakon-dugstad.johnsen at telenor.com> and Sebastian Harl <sh at tokkee.org>. 5.1.0 2012-04-02 COLLECTDCTL(1)
All times are GMT -4. The time now is 08:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy