From 6a72ce5e428fdfdab6fd410d03073747f33c2767 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Wed, 12 Oct 2022 00:34:38 +0300 Subject: [PATCH] send bytes stats --- content/posts/2022/get_send_server_bytes.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 content/posts/2022/get_send_server_bytes.md diff --git a/content/posts/2022/get_send_server_bytes.md b/content/posts/2022/get_send_server_bytes.md new file mode 100644 index 0000000..64e904c --- /dev/null +++ b/content/posts/2022/get_send_server_bytes.md @@ -0,0 +1,21 @@ +--- +title: "Как определить сколько сервер передал байтов в месяц" +date: 2022-10-12T00:30:14+03:00 +draft: false +tags: [linux, tips] +--- + +## Реально? + +Если сами не озаботились сбором и хранением то «не реал» +[[1]](https://www.linux.org.ru/forum/admin/16813249?cid=16813276). + +## Решение + +Статистику, как и бэкапы, необходимо собирать до того, как они пригодятся. + +Можно выполнить `cat /proc/net/dev`, а потом ещё раз через месяц. +Либо так: +```sh +cat /sys/class/net//statistics/tx_bytes +```