Modem Negotiated Speed

Gert Doering (gert@greenie.muc.de)
Thu, 16 Jul 1998 09:40:10 +0200


Hi,

Robert W. Canary wrote:
> I need to get the negotiated modem speed of the each dialin line when
> a dialin contection is made, how I do get it *everytime*?

Make sure your modem sends it in the CONNECT string (or in form of the
"CARRIER" string before CONNECT).  Then mgetty will log it, at least in
the mgetty log file and to syslog:

Jul 16 05:42:17 greenie mgetty.test[16056]: data dev=tty5d, pid=16056, caller='89557943', conn='115200/X.75 64000/LAPB', name='', cmd='/usr/lib/uucp/uucico', user='Ueisa'

This format is the ZyXEL response:

  CONNECT <dte speed>/<protocol> <line speed>/<error control>

here:
  CONNECT  115200   / X.75        64000     / LAPB

Other modems will report something like "CONNECT 28800/REL", in which case
the log file will contain "conn='28800/REL'".

> I know this has been talked about before, but for the life of me I
> can't find what the answer was for it.   I have to have what speed the
> modems have negotiated during connection.  I desperately need this as
> to monitor and plot dialin loads on the server, verses modem speeds. 
> It is one of those Research and Development variables that are a *must
> have*.

... which is why it's there, since about 2-3 years now :-)

> To Gert:
> Gert, if I need to alter the code in order to get this, then could you
> point me in the right direction, perhaps with some input as what i
> need to do?

Code changes, how disgusting :-)

gert

-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de