mgetty/tools/mid ttySxwhere ttySx is the tty with a connected modem. or:
mgetty/tools/mid -M emailaddresse ttySxThe result wil be mailed to emailadresse.
testing for modem on /dev/ttyS1 with 38400 bps...
>>> ATI ATI 2864 OK >>> ATI0 ATI0 2864 OK >>> ATI1 ATI1 46700 E2864 V 1.09 OK >>> ATI2 ATI2 ZyXEL MODEMS LINK STATUS REPORT Chars Sent 0 Chars Received 0 Octets Sent 0 Octets Received 0 Blocks Sent 0 Blocks Received 0 Blocks Resent 0 Max Outstanding 0 Max Block Size 128 Retrains Requested 0 Link Duration 0 Retrains Granted 0 FRN Requested 0 FRN Granted 0 FCS Errors 0 Round Trip Delay 21 Xmitter Underrun 0 Receiver Overrun 0 Last Speed/Protocol 21600 Disconnect Reason Local hang up OK >>> ATI3 ATI3 OK >>> ATI4 ATI4 OK >>> ATI5 ATI5 OK >>> ATI6 ATI6 OK >>> ATI7 ATI7 OK >>> ATI8 ATI8 OK >>> ATI9 ATI9 OK >>> ATI10 ATI10 46700 E2864 V 1.09 ERROR >>> ATI11 ATI11 46700 E2864 V 1.09 ERROR >>> ATI12 ATI12 46700 E2864 V 1.09 ERROR >>> ATI13 ATI13 46700 E2864 V 1.09 ERROR >>> ATI14 ATI14 46700 E2864 V 1.09 ERROR >>> ATI15 ATI15 46700 E2864 V 1.09 ERROR >>> AT+FCLASS=? AT+FCLASS=? 0,2,2.0,6,8,Z OK >>> AT+FMFR? AT+FMFR? ZyXEL OK >>> AT+FMDL? AT+FMDL? E2864 V 1.09 OK >>> AT+FREV? AT+FREV? E2864 V 1.09 OK >>> AT+FMI? AT+FMI? ZyXEL OK >>> AT+FMM? AT+FMM? E2864 V 1.09 OK >>> AT+FMR? AT+FMR? E2864 V 1.09 OK