[opensuse] Running system information display in text mode?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, There are applications like top and htop that display on the first few lines the cpu load. There are other tools like iptraf to show network ussage. There are nice graphical tools like gkrelm that also display disk load, per disk, even per partition, and things like temperatures and voltages. What about a text mode application giving at least some of that? I would like something like the first few lines of "htop", with more info: network load, disks load, temperatures, fan speed... I'd like to have it running on text mode servers, or when doing maintenance or backup in text mode (clonezilla, for instance, is text mode). Do anybody know something of the kind? - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iF4EAREIAAYFAlNCrtgACgkQja8UbcUWM1z45QD+OhM/7NP4UZhfiFEIqu7DGYt4 MFUPXZo6/hzAdOYg7QMA/RjvtBhdIkj+NduiSFMPXMmM9G2mUxBBbKnLREmMV68+ =jevG -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- Greg Freemyer On Mon, Apr 7, 2014 at 9:57 AM, Carlos E. R. <carlos.e.r@opensuse.org> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Hi,
There are applications like top and htop that display on the first few lines the cpu load. There are other tools like iptraf to show network ussage. There are nice graphical tools like gkrelm that also display disk load, per disk, even per partition, and things like temperatures and voltages.
What about a text mode application giving at least some of that?
I would like something like the first few lines of "htop", with more info: network load, disks load, temperatures, fan speed... I'd like to have it running on text mode servers, or when doing maintenance or backup in text mode (clonezilla, for instance, is text mode).
Do anybody know something of the kind?
- -- Cheers / Saludos,
Carlos, I don't know if it is what you're looking for, but I use "iostat" all the time. Normally as "iostat -d 5". It is not part of the standard install, so "zypper in systat" to get it. There are several other stat applications in systat: <http://sebastien.godard.pagesperso-orange.fr/documentation.html> Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/07/2014 11:45 AM, Greg Freemyer pecked at the keyboard and wrote:
zypper in systat
The package name is sysstat, not systat. :-) And you will to give the daemon time to collects meaningful stats. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2014-04-07 17:45, Greg Freemyer wrote:
Carlos,
I don't know if it is what you're looking for, but I use "iostat" all the time.
Normally as "iostat -d 5".
Yes, I tried that one - no, it was iotop. I'll look at iostat later, can't install packages this minute. iotop gives the correct i/o info, yes, even says the application doing it. [...] Ah, now I can install packages. Trying iostat now. "iostat -c -d 5" is almost appropriate, save that, instead of rewriting the screen, it prints another page. That is a minor issue, though. But what I'm looking for is some application that gives all the information: cpu, disk, network, sensors perhaps... in text mode. iostat doesn't give network info. At present I need to have several open consoles: top/htop, iptraf, iotop... I'd like a combined thing. If the info can be obtained easily from "/proc", a script run from watch is a possibility. Or I can have a go at coding something... - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iF4EAREIAAYFAlNC4zUACgkQja8UbcUWM1xqPAD9E2aaZZn6WA7SYcWipCaZeOqD BJeTEu0eb3yuw1L1S24BAILXbXq4CcyEYUPYFGddJ0/scg2f4D3fN/0nylMZJ1dN =vvS5 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Hi,
There are applications like top and htop that display on the first few lines the cpu load. There are other tools like iptraf to show network ussage. There are nice graphical tools like gkrelm that also display disk load, per disk, even per partition, and things like temperatures and voltages.
What about a text mode application giving at least some of that?
I would like something like the first few lines of "htop", with more info: network load, disks load, temperatures, fan speed... I'd like to have it running on text mode servers, or when doing maintenance or backup in text mode (clonezilla, for instance, is text mode).
Do anybody know something of the kind?
Not exactly what you want, likely, but how about an io monitor: (uses screen clear to replot the page and ANSI color for the graphs... it can be set to scroll, though, but I find that less useful... Mon, Apr 7 10:42:01 Period: 5s Load:0.87 Tasks: 635 Cpu: 47.8% ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― NetIF:◄━━━━━━━━━━━━━Receive & Transmit 2MB/s Scale ━━━━━━━━━━━━━(Tot: 1.7MB/s)━► eth2 :██████████████(1017KB/s Trx)███████████ 1MB/s eth4 :████████(560KB/s Trx)███ 684KB/s eth0 : 771B/s ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― Device :◄━━━━━━━━━━━━━Read & Write 1MB/s Scale ━━━━━━━━━━━━(Tot: 948KB/s)━► Media :█████████████████████████(930KB/s Rd)█████████████████████████ Home : 1.6KB/s ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― Name :PID :◄━━━━━━━━━━━Read & Write 1MB/s Scale ━━━━━━━━━━━(Tot: 930KB/s)━► transmiss:5519 :████████████████(681KB/s Rd)███████████████ 681KB/s transmiss:59966:██(245KB/s Rd)█ 245KB/s imap :8988 : 2.4KB/s Terminal :35026: 818B/s fetchmail:60492: 818B/s This util is specific to I/O...shows network I/O, partition I/O and top process I/O processes. I'd have to package it up for distribution (written in perl). Only bug I know that it has is if you resize the window, you have to hit return in the window to get it to go again -- for some reason the SIGWINCH causes the timer signal to get lost. Can change the refresh period by using +/- keys. I usually start it up in it's own Terminal window in a script that loops and runs it again if I press 'q', (aids in starting a new version). I find it a bit easier to see what I/O is going on rather than trying to look at something like iotop....ARG... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-04-07 19:51, Linda Walsh wrote:
Not exactly what you want, likely, but how about an io monitor: (uses screen clear to replot the page and ANSI color for the graphs... it can be set to scroll, though, but I find that less useful...
It looks about right :-)
I'd have to package it up for distribution (written in perl).
I was thinking about writing my own app, in pascal. But I don't know where to get the info from. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2014-04-07 at 21:45 +0200, Carlos E. R. wrote:
On 2014-04-07 19:51, Linda Walsh wrote:
I'd have to package it up for distribution (written in perl).
I was thinking about writing my own app, in pascal. But I don't know where to get the info from.
I have got so far as to replicate "free" and "uptime" - more or less :-) +++························· cer@Telcontar:~/bin/lazarus/mios/SystemInfo> uptime ; echo ; free -b -l ; echo ; ./systeminfo 02:16 up 7:07, 31 users, load average: 0,09, 0,29, 0,30 total used free shared buffers cached Mem: 8390156288 8143261696 246894592 79347712 1020768256 3626921984 Low: 8390156288 8143261696 246894592 High: 0 0 0 - -/+ buffers/cache: 3495571456 4894584832 Swap: 22545416192 14831616 22530584576 Uptime: 0d 7:7:34 Load avg: 0.093/0.318/0.332 (719 processes). total used free shared buffers cached Mem : 8390 --- 246 0 1020 --- Swap : 22545 --- 22530 High : 0 --- 0 mem_unit: 1 ·························++- I found a system call that returns all that data (SysInfo). Besides reformatting the output for easier comparison with the system utilities, the documentation and the example code were all wrong, I had to look up the pascal .h equivalent of the definitions. The load average could be wrong. As I'm not having to read /proc so far, this part is very fast. If I could find more function calls for the rest of the data, it would be wonderful. Besides, I found a bug, I think, on the "free" output. The help says: Options: -b, --bytes show output in bytes -k, --kilo show output in kilobytes -m, --mega show output in megabytes -g, --giga show output in gigabytes --tera show output in terabytes -h, --human show human readable output --si use powers of 1000 not 1024 Now compare: cer@Telcontar:~> free -b ; echo ; free --si ; echo ; free -k total used free shared buffers cached Mem: 8390156288 8132198400 257957888 79638528 1021140992 3621867520 (plain bytes) - -/+ buffers/cache: 3489189888 4900966400 Swap: 22545416192 14831616 22530584576 total used free shared buffers cached Mem: 8193512 7941864 251648 77772 997208 3536980 (SI, it says - -/+ buffers/cache: 3407676 4785836 Swap: 22017008 14484 22002524 total used free shared buffers cached Mem: 8193512 7941844 251668 77772 997208 3536980 (KB, it says) - -/+ buffers/cache: 3407656 4785856 Swap: 22017008 14484 22002524 cer@Telcontar:~> Those are not "SI" units. Or, either the "-k" output is wrong, or the "--si" output is wrong... and as the SI output should be the bytes divided by powers of 1000, and it is obviously not so, it is using KiB in fact for SI units. YIKSS! - -- Cheers, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlNDQp8ACgkQtTMYHG2NR9XVAQCglvFLWNv48j2Ssc3L7jrqZqYB rb8AoJMo2iGrsK0lnPhOmTE+VznLEWaY =2uW4 -----END PGP SIGNATURE-----
participants (5)
-
Carlos E. R.
-
Carlos E. R.
-
Greg Freemyer
-
Ken Schneider - openSUSE
-
Linda Walsh