English
Ask Your Question
0

atop and a human readable format?

asked 2017-11-14 09:55:59 +0000

toddandmargo gravatar image

Hi All,

I want to make a snapshot of my system ever so often with atop. Is there a was to get atop to make a human readable file? (I realize atop -r will read it in, but I want the file to be human readable).

Is there a better way to do this than atop?

Many thanks, -T

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-11-15 13:40:25 +0000

masteroman gravatar image

Installing atop from the repositories will provide you with service file. To start and enable atop:

sudo systemctl enable --now atop.service

From there, you can adjust logging interval and timestamp format in:

/etc/sysconfig/atop

I would prefer doing that instead of manually running atop periodically.

edit flag offensive delete link more

Comments

Thank you! I will stick with the manual method too.

toddandmargo ( 2017-11-15 19:44:42 +0000 )edit
1

answered 2017-11-14 20:16:28 +0000

Samuel Sieb gravatar image

You can just redirect the output of atop to a file. e.g. atop > myfile.txt. That will keep writing new snapshots, so you probably want to set a limit. Note that the first snapshot will always be the cumulative total, so you might want to take two snapshots and split the file up to get the second one. Assuming you want the standard 10s interval, do atop 10 2 > myfile.txt.

edit flag offensive delete link more

Comments

thank you!

toddandmargo ( 2017-11-15 07:00:53 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

Follow
1 follower

Stats

Asked: 2017-11-14 09:55:59 +0000

Seen: 32 times

Last updated: Nov 15