From: Dmitry Samoyloff <dsamoyloff@mail.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] Connect time
Date: Wed Oct 31 08:12:01 2001
Message-ID: <E15ynjh-0004NT-00@smtp1.port.ru> (raw)
In-Reply-To: <20011031064920.A469@monster>
[-- Attachment #1: Type: text/plain, Size: 783 bytes --]
31 Октябрь 2001 06:49, Pankratov Artem wrote:
> Делал ли кто скрипт котрый при отключении от inet'a
> (используется модемный dialup) записывает сообщение pppd:
> Connect time ??.?? для последующего анализа, если нет помогите
> интересной ссылкой на эту тему.
Вот мой скрипт на perl. Он заглядывает в логи и выводит
статистику подключений по дням и в сумме. Для вычленения
соединений с определенным провайдером, нужно задать в переменной
$check_dns DNS провайдера. $first_month и $first_day задают от
какого дня считать. Запускать под root'ом (чтобы к логам доступ
был).
Если скрипт кривой -- please не пинайте, я в perl не эксперт. По
крайней мере у меня он работает отлично ;-))
--
С уважением, Дмитрий Самойлов
http://linuxgames.hut.ru
http://ksenomorph.sourceforge.net
[-- Attachment #2: inetstat --]
[-- Type: application/x-perl, Size: 2197 bytes --]
next prev parent reply other threads:[~2001-10-31 8:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-31 6:46 Pankratov Artem
2001-10-31 7:22 ` Russu V.F.
2001-10-31 8:12 ` Dmitry Samoyloff [this message]
2001-11-01 18:13 ` Michael Shigorin
2001-11-01 18:36 ` Vyt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E15ynjh-0004NT-00@smtp1.port.ru \
--to=dsamoyloff@mail.ru \
--cc=mandrake-russian@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git