On Wed, 11 Jun 1997, George Bonser wrote: > On Wed, 11 Jun 1997, Timothy Phan wrote: > > > Hi, > > > > Anyone knows how to determine the modem speed after the PPP has > > connected to the ISP? > > You might set the modem to report the link data rate rather than the > serial port rate then tail /var/log/messages and grep for CONNECT after > login. > >
Another way to do this is to use the REPORT option in your chatscript: REPORT CONNECT ABORT BUSY ABORT "NO CARRIER" etc... Then have pppd invokes chat with the -r option + filename (e.g., in /etc/ppp/peers/provider for ppp 2.3b3-2): connect "/usr/sbin/chat -v -f /etc/chatscripts/uw -r /var/log/ppp-speed-uw.log" defaultroute /dev/ttyS1 38400 user mso noauth noproxyarp (all on one line of course). Chat will then write the entire CONNECT line into the file. ************** MICHAEL SCOTT ORR <[EMAIL PROTECTED]> ***************** * * 1405 NE 56th Street, Seattle, WA 98105 USA * English * * * Tel: +1 (206) 522-9627, fax: 328-6209 * Russki * * * Work: [EMAIL PROTECTED] * Esperanto * ***************** (Insert silly quote here) ************************ -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .