19
0
Fork 0
wiki/HowtoAtop.md

37 lines
454 B
Markdown
Raw Normal View History

2017-05-15 09:24:11 +02:00
---
title: Howto atop
---
# Activer l'accounting kernel
~~~
# apt install acct
Turning on process accounting, file set to '/var/log/account/pacct'.
~~~
# Lancer atop avec un le chemin du fichier d'accounting
~~~
# ATOPACCT="/var/log/account/pacct" atop -w atop.file
2017-08-31 10:44:43 +02:00
~~~
# Stopper l'accounting kernel
~~~
accton off
2017-11-27 10:33:36 +01:00
~~~
# Loguer
~~~
atop -w <file>
~~~
# Lire log
~~~
atop -r <file>
~~~
* t : 10 secondes plus tard
* T : 10 secondes précédente