ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Degtyaryov <maga@beltel.ru>
To: community@altlinux.ru
Subject: Re: [Comm] pppd qs
Date: Sat, 06 Dec 2003 14:01:32 +0300
Message-ID: <3FD1B70C.5040101@beltel.ru> (raw)
In-Reply-To: <200312052002.09749.kosha@kp.ru>

Korshunov Ilya пишет:
> Вечер добрый всем! 
> 
> Вопрос - как в консоль вывести список дозвонившихся и залогиненых на сервер 
> пользоватлей (их логины) ? 
> w показывает недостаточную информацию :-(
Если пользователи системные, то в w будут логины.
Если нет (пароли в pap-secrets), то брать из переменных ppp.

[maga@back ppp]$ cat ip-up
echo "$PEERNAME connected at $TIME" >> /var/log/ppp/users.log

[maga@back ppp]$ cat ip-down
echo "$PEERNAME was connected $CONNECT_TIME seconds. $BYTES_SENT 
bytes send, $BYTES_RCVD bytes recieved." >> /var/log/ppp/users.log
echo "`date +%s` $PEERNAME $CONNECT_TIME $BYTES_SENT $BYTES_RCVD" >> 
/var/log/ppp/usage.log


Правда, все это правильно перенести в ip-up.local

--
Сергей Дегтярев



      parent reply	other threads:[~2003-12-06 11:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-05 17:02 Korshunov Ilya
2003-12-05 17:13 ` Korshunov Ilya
2003-12-06 11:01 ` Sergey Degtyaryov [this message]

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=3FD1B70C.5040101@beltel.ru \
    --to=maga@beltel.ru \
    --cc=community@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