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

Re: PPPD : Vitesse de connection ?



Le 2002.07.19 13:22, Nicolas Massé a écrit :
Bonjour,

une petite question : comment savoir à quelle vitesse est connecté pppd ?
(j'ai déja essayé le parametre $3 du script ip-up mais il me dit
invariablement 115200)
J'en aurais bien besoin pour faire des essais de connection (Car la ligne
me
semble exagérément lente)

Merci d'avance !


J'utilise wmppp.app pour me connecter chez mon FAI.
Il utilise un petit script qui scanne les logs pour avoir la vitesse.
Ne pas oublier les options comme expliqué dans le commentaire du script.

Le voici ci-joint:

#!/bin/sh

# this is an example getmodemspeed script
# I add '-r /var/tmp/modem.speed' to the 'connect' line in
# /etc/ppp/peers/provider and a 'REPORT CONNECT' line to
# /etc/chatscripts/provider. From my USR modem I get something like this:
#
# Opening "/var/tmp/modem.speed"...
# chat:  Sep 20 07:34:42 CONNECT nnnnn/ARQ/V32/LAPM/V42BIS
# Closing "/var/tmp/modem.speed".
#
# I'm interested in the "nnnnn" part. The following works for me, but YMMV

grep CONNECT /var/tmp/modem.speed | \
	tail -1 | \
	sed -e 's,^.*CONNECT[[:blank:]]*\([[:digit:]]*\).*$,\1,'

exit 0


--
To UNSUBSCRIBE, email to debian-user-french-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: