Re: ppp connection speed
On 21 Jul 1998 john@dhh.gt.org wrote:
> Add 'REPORT CONNECT' to your chatscript and call chat with
> '-r /etc/ppp/report' and the 'CONNECT' string reported by your modem will
> appear in /etc/ppp/report. Add 'X4' to your modem init string and it will
> report the connect speed.
I tried this and it didn't exactly work. Could you tell me what I've done
wrong?
The chatscript, report file and part of ppp.log are below.
Thanks,
Patrick
chatscript
-----
/usr/sbin/chat -v -r /home/patricko/speed \
TIMEOUT 60 \
ABORT '\nBUSY\r' \
ABORT '\nNO CARRIER\r' \
ABORT '\nNO DIALTONE\r' \
ABORT '\nRINGING\r\n\r\nRINGING\r' \
'' ATDT$1 \
CONNECT '' \
REPORT CONNECT \
ogin:--ogin: $ACCOUNT \
assword: $PASSWORD
#
-----
/home/patricko/speed
-----
Opening "/home/patricko/speed"...
Closing "/home/patricko/speed".
-----
/var/log/ppp.log shows that the modem is reporting the connect speed
-----
Aug 6 09:27:40 server2 chat[5567]: send (ATDT316-0123^M)
Aug 6 09:27:40 server2 chat[5567]: expect (CONNECT)
Aug 6 09:27:40 server2 chat[5567]: ^M
Aug 6 09:27:59 server2 chat[5567]: ^M
Aug 6 09:27:59 server2 chat[5567]: CONNECT -- got it
Aug 6 09:27:59 server2 chat[5567]: send (^M)
Aug 6 09:27:59 server2 chat[5567]: report (CONNECT)
Aug 6 09:27:59 server2 chat[5567]: expect (ogin:)
Aug 6 09:27:59 server2 chat[5567]: 24000^M
Aug 6 09:28:01 server2 chat[5567]: Visit the City of Salem and Marion
County H
Aug 6 09:28:01 server2 chat[5567]: ^M
Aug 6 09:28:01 server2 chat[5567]: ^M
Aug 6 09:28:01 server2 chat[5567]: Salem-6 (line 137) login: -- got it
----
--
Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
Reply to: