LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   "sar" and "iostat" equivalents on Debian? (https://www.linuxquestions.org/questions/debian-26/sar-and-iostat-equivalents-on-debian-205332/)

aditya_shah 07-15-2004 07:33 AM

"sar" and "iostat" equivalents on Debian?
 
What are the "sar" (Report System and CPU performance)
and "iostat" (Report Disk and IO Performance) equivalents on Debian??

zuralin 07-15-2004 09:03 AM

try checking out "top"

actually, after an:

apt-cache search iostat

i found this package: sysstat

apt-cache show sysstat

reveals:

Quote:

The sysstat package contains the sar, mpstat and iostat commands for Linux.
apt-get install sysstat

Also you may want to look into isag which is an
Quote:

Interactive System Activity Grapher for sysstat
apt-get install isag

aditya_shah 07-16-2004 01:05 AM

Hi,

Thank you so much for your response!!

I tried searching the system for the sysstat and the isag packages using apt-cache, however, apt-cache could not locate them.

The command says:

debian:~# apt-cache showpkg sysstat
W: Unable to locate package sysstat

Is there some place where I can find/download these packages from?

Also, on Debian, does the 'top' utility get installed with the base installation?

Thanks!!

zuralin 07-16-2004 09:20 AM

According to debian.org sysstat is in all three (stable,testing,unstable) repositories. Show your /etc/apt/sources.list.

aditya_shah 07-30-2004 01:55 AM

Did you mean that I post my /etc/apt/sources.list file.

If that's the case then here it goes:

cat /etc/apt/sources.list

#deb cdrom:[Debian GNU/Linux 3.0 r1 _Woody_ - Official i386 Binary-1 (20021218)]/ unstable contrib main non-US/contrib non-US/main

# deb http://security.debian.org/ stable/updates main

deb cdrom:[Debian GNU/Linux 3.0 r1 _Woody_ - Official i386 Binary-1 (20021218)]/ unstable contrib main non-US/contrib non-US/main

Please provide some insight !!!

comp12345 07-30-2004 04:26 PM

Edit your /etc/apt/sources.list (either by hand or through apt-setup) and add an http source.
Code:

deb http://ftp.us.debian.org/debian unstable main non-free contrib
Then run apt-get update.

zero79 07-30-2004 05:00 PM

don't follow comp's post. that will add Sid as a package source. you want woody sources. do this

Code:

su -c "nedit /etc/apt/sources.list"
the 'su' command will request your root password to open the editor 'nedit'. add a line at the end that says

Code:

deb http://ftp.us.debian.org/debian stable main non-free contrib
i also suggest uncommenting the debian security source (remove the # from that line). then do this to download and install your software.

Code:

su -c "apt-get update ; apt-get install sysstat"
now, you should be able to run 'iostat' and 'sar'.

you may want to update your system with the latest packages (note that this isn't necessary...it will require a lot of downloading...so don't do it if u don't have broadband)

Code:

su -c "apt-get dist-upgrade"

macondo 07-30-2004 06:11 PM

macondo@debian:~$ apt-cache show sysstat
Package: sysstat
Priority: optional
Section: admin
Installed-Size: 536
Maintainer: Robert Luberda <robert@debian.org>
Architecture: i386
Version: 5.0.5-1
Depends: libc6 (>= 2.3.2.ds1-4), debconf (>= 0.5) | debconf-2.0
Recommends: cron
Suggests: isag
Conflicts: atsar (<< 1.5-3)
Filename: pool/main/s/sysstat/sysstat_5.0.5-1_i386.deb
Size: 110830
MD5sum: de9189504e570bd0109594f7e1155e19
Description: sar, iostat and mpstat - system performance tools for Linux
The sysstat package contains the sar, mpstat and iostat
commands for Linux.
.
The sar command collects and reports system activity
information. The iostat command reports CPU utilization
and I/O statistics for disks. The mpstat command reports
global and per-processor statistics.
The statistics reported by sar concern I/O transfer rates,
paging activity, process-related activities, interrupts,
network activity, memory and swap space utilization, CPU
utilization, kernel activities and TTY statistics, among
others. Both UP and SMP machines are fully supported.
.
Homepage: http://perso.wanadoo.fr/sebastien.godard/

Package: sysstat
Priority: optional
Section: admin
Installed-Size: 472
Maintainer: Robert Luberda <robert@debian.org>
Architecture: i386
Version: 4.0.4-1woody2
Depends: libc6 (>= 2.2.4-4), debconf (>= 0.2.80.17)
Recommends: cron
Suggests: isag
Conflicts: atsar (<< 1.5-3)
Filename: pool/updates/main/s/sysstat/sysstat_4.0.4-1woody2_i386.deb
Size: 78712
MD5sum: 3b33e776572470aa69c0d38989277205
Description: sar, iostat and mpstat - system performance tools for Linux
The sysstat package contains the sar, mpstat and iostat
commands for Linux.
.
The sar command collects and reports system activity
information. The iostat command reports CPU utilization
and I/O statistics for disks. The mpstat command reports
global and per-processor statistics.
The statistics reported by sar concern I/O transfer rates,
paging activity, process-related activities, interrupts,
network activity, memory and swap space utilization, CPU
utilization, kernel activities and TTY statistics, among
others. Both UP and SMP machines are fully supported.

macondo@debian:~$

aditya_shah 08-01-2004 11:53 PM

Thank you so much to all of you for extending all this help!!
Will try the solutions you have provided and let you know the results.

Thanks again!!


All times are GMT -5. The time now is 09:26 PM.