[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pppd log v0.3 Aho



On Sun, 1 Jul 2001, Sebastien Kalt wrote:

> Ehe, mauvaise surprise:
> 
> ustilago% ./ppptime_0.3.awk -f /var/log/messages -m Jun -v -l
>  0       0:00:00        18:21:23        642:21:23
> 26       0:00:00        17:37:25        41:37:25
> 27       0:00:00        21:09:33        21:09:33
> 27       0:00:00        19:22:54        43:22:54
> 28       0:00:00        20:25:49        20:25:49
> 28       0:00:00        21:28:17        21:28:17
> 28       0:00:00        11:55:59        35:55:59
> 29       0:00:00        16:06:55        40:06:55
> 30      16:07:47        16:18:02         0:10:15
> ==      ========        ========        ========
> 30                                       3:38:30
> 
> spent: 3:38:30
> avg time/day (30): 0:07:17
> avg time/connect (9): 0:24:16
> avg connect/day: 0.3
> 
> Avec l'ancienne version j'ai:
> 
> ustilago% temp/ppptime2.awk Jun /var/log/messages
> spent: 0:24:50.
> avg time/day (5): 0:04:58
> avg time/connect (9): 0:02:45
> 
> La ligne de début de connection n'est pas reconnue chez moi, parce que
> je n'ai pas de messages avec 'CONNECT' dans mes logs. 
Voir ma derniere reponse. La modification a deja ete effectuee. Je poste le
script corrige dans un instant. Le bug de changement de mois n'aura toujours
pas ete corrige. 

> Il faudrait peut être que j'active le débogage de pppd.
Pour fonctionner avec une ligne de type 'CONNECT', c'est le debuguage de  chat
que tu dois activer.

<man chat>
       -f <chat file>
              Read the chat script from the chat file. The use of
              this  option  is  mutually  exclusive with the chat
              script parameters. The user must have  read  access
              to  the  file.  Multiple lines are permitted in the
              file. Space or horizontal tab characters should  be
              used to separate the strings.
       ...
       -v     Request that the chat script be executed in a  ver-
              bose  mode. The chat program will then log the exe-
              cution state of the chat script as well as all text
              received from the modem and the output strings sent
              to the modem.  The default is to  log  through  the
              SYSLOG;  the logging method may be altered with the
              -S and -s flags.
</man chat>

Normalement, l'appel a la commande chat effectuee par ppp est definie au sein 
des fichiers se trouvant dans le repertoire /var/ppp/peers.

<example source="/etc/ppp/peers/isp">
	ttyS1 115200 nocrtscts
	connect '/usr/sbin/chat -v -f /etc/ppp/chat-isp'
#                               ^^
	noauth
</example> 

--
Life is hard but the root password helps.
		-- Anonymous

Gregoire Welraeds
<gregoire (at) welraeds (dot) be>




Reply to: