21
University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department [email protected] http://www.di.unipi.it/~bista/

University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department [email protected]

Embed Size (px)

Citation preview

Page 1: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

University of PisaComputer Science Department

System Administration

MonitoringStefano Bistarelli

University of PisaComputer Science [email protected]://www.di.unipi.it/~bista/

Page 2: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

Outline

lun mar mer gio ven sab dom

1 2 3 4 5 6 7

8 9 10 11 lab 12 lab 13 14

15 lab 16 17 18 lab 19 lab 20 21

22 lab 23selfstudy 24 25lab 26 lab 27 28

29 lab 30 selfstudy 31

2001

Gennaio

Page 3: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

Outline

lun mar mer gio ven sab dom

1 2 lab 3 4

5 lab 6 7 Ripasso in

aula / Selfstudy 8 lab 9l ab 10 11

12 Exam 13 Exam 14 15 16 17 18

19 20 21 22 23 24 25

26 27 28

2001

Febbraio

Page 4: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

Prima Settimana

9Introduzione

W2K•Installazione win2K (anche studenti)•Backup

Riferimenti:-Lucidi-Cap 1,2,15 libro

10W2K•registri•Active Directory•Gestione computer

Linux-Installazione Linux

Riferimenti:-Lucidi-Cap 4,5 libro-RH inst.guide

11 lab

-Linux utente1

12 lab

-Linux utente2

Page 5: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

Seconda settimana

15 lab 16W2K•Booting and ShutdownDisco ripristino

Linux•Booting and Shutdown•Inst. Linux (studenti)

Riferimenti:-Lucidi- fotocopie

17W2K•Utenti

Linux•Backup•multi boot•Utenti•superuser

Riferimenti:-Libro Cap. 7-Lucidi- fotocopie

18 lab 19 lab

Page 6: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

terza settimana

22 lab 23 24W2K•Device•Disk•fs

Linux•Device•Disk•fs

Riferimenti:-Libro Cap. 8-Lucidi- fotocopie

25 lab 26 lab

Page 7: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

quarta settimana

29 lab 30 31W2K•processi•Task periodici•stampa

Linux•processi•Task periodici•stampa

Riferimenti:-Libro Cap. -Lucidi- fotocopie

1W2K•processi•Task periodici•stampa

Linux•processi•Task periodici•stampa

Riferimenti:-Libro Cap. -Lucidi- fotocopie

2 lab

Page 8: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

quinta settimana

5 lab 6W2K•monitoring

Linux•monitoring

Riferimenti:-Libro Cap. -Lucidi- fotocopie

7W2K

Linux

Ripasso guidato dagli studenti

8 lab 9 lab

Page 9: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

Monitoring-Linux

In tutti gli Unix: Iostat: disk,terminal,cpu Vmstat: virtual memory Pstat: intero sistema Netstat: ethernet

Difficile interpretazione! No regole fisse! Solo esperienza!

Page 10: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

vmstat

procs memory swap io system cpu

r b w swpd free buff cache si so bi bo in cs us sy id

0 0 0 1920 2984 7996 57372 0 0 1 1 122 99 1 0 98

Procs r: The number of processes waiting for run time. b: The number of processes in uninterruptable sleep. w: The number of processes swapped out but otherwise

runnable. This field is calculated, but Linux never desperation swaps.

Memory swpd: the amount of virtual memory used (kB). free: the amount of idle memory (kB). buff: the amount of memory used as buffers (kB).

Page 11: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

procs memory swap io system cpu

r b w swpd free buff cache si so bi bo in cs us sy id

0 0 0 1920 2984 7996 57372 0 0 1 1 122 99 1 0 98

Swap si: Amount of memory swapped in from disk

(kB/s). so: Amount of memory swapped to disk (kB/s).

IO bi: Blocks sent to a block device (blocks/s). bo: Blocks received from a block device (blocks/s).

Page 12: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

procs memory swap io system cpu

r b w swpd free buff cache si so bi bo in cs us sy id

0 0 0 1920 2984 7996 57372 0 0 1 1 122 99 1 0 98

System in: The number of interrupts per second,

including the clock. cs: The number of context switches per

second. CPU

These are percentages of total CPU time. us: user time sy: system time id: idle time

Page 13: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

vari

Uptime Df, du Who ps

Page 14: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

procinfo

Memory: Total Used Free Shared Buffers CachedMem: 127812 89812 38000 14332 8204 59484Swap: 530104 1920 528184

Bootup: Sun Feb 4 18:33:48 2001 Load average: 0.00 0.00 0.00 2/53 3104

user : 0:24:45.13 1.4% page in : 107158 disk 1: 33557r 47293w

nice : 0:00:00.00 0.0% page out: 69284system: 0:04:41.29 0.3% swap in : 1063idle : 1d 4:43:27.87 98.3% swap out: 1810uptime: 1d 5:12:54.27 context : 10379950

irq 0: 10517429 timer irq 6: 3irq 1: 64888 keyboard irq 8: 1 rtcirq 2: 0 cascade [4] irq 10: 2242 es1371irq 3: 3 irq 12: 331807 PS/2 Mouseirq 4: 3 irq 13: 1 fpu

irq 5: 472789 eth0 irq 14: 1407307 ide0

Page 15: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

Procinfo -m

Kernel Command Line: auto BOOT_IMAGE=linux ro root=301

Modules: 28 *nfs 140 *nfsd 30 *lockd 52 *sunrpc 19 *3c59x 28 es1371 3 *soundcore

Character Devices: Block Devices: 1 mem 14 sound 1 ramdisk 2 pty 29 fb 2 fd 3 ttyp 36 netlink 3 ide0 4 ttyS 128 ptm 9 md 5 cua 136 pts 7 vcs 162 raw 10 misc

File Systems:ext2 [proc] iso9660 [devpts][nfs]

Page 16: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

top

uptime This line displays the time the system has been up, and the

three load averages for the system. The load averages are the average number of process ready to run during the last 1, 5 and 15 minutes. This line is just like the output of uptime(1). The uptime display may be toggled by the interactive l command.

processes The total number of processes running at the time of the last update. This is also broken down into the number of tasks which are running, sleeping, stopped, or undead. The processes and states display may be toggled by the t interactive command.

Page 17: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

Top/gtop

11:53pm up 1 day, 5:19, 1 user, load average: 0.00, 0.00, 0.00

53 processes: 52 sleeping, 1 running, 0 zombie, 0 stopped

CPU states: 0.3% user, 0.1% system, 0.0% nice, 99.4% idle

Mem: 127812K av, 90028K used, 37784K free, 14632K shrd, 8216K buff

Swap: 530104K av, 1920K used, 528184K free 59536K cached

PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND

3134 bista 18 0 964 964 748 R 0 0.5 0.7 0:00 top

1 root 0 0 120 68 48 S 0 0.0 0.0 0:04 init

2 root 0 0 0 0 0 SW 0 0.0 0.0 0:01 kflushd

3 root 0 0 0 0 0 SW 0 0.0 0.0 0:09 kupdate

4 root 0 0 0 0 0 SW 0 0.0 0.0 0:00 kpiod

5 root 0 0 0 0 0 SW 0 0.0 0.0 0:00 kswapd

6 root -20 -20 0 0 0 SW< 0 0.0 0.0 0:00 mdrecoveryd

333 bin 0 0 248 220 156 S 0 0.0 0.1 0:00 portmap

Page 18: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

Top/gtop

Man top

Page 19: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

win2k

Performance monitor

Page 20: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

win2k

Registro eventi

Page 21: University of Pisa Computer Science Department System Administration Monitoring Stefano Bistarelli University of Pisa Computer Science Department bista@di.unipi.it

dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department

Linux - rpm

Gnome rpm krpm