Modem Failures

Marc SCHAEFER (schaefer@alphanet.ch)
Mon, 16 Nov 1998 08:36:30 +0100


Robert Canary <rwcanary@ohiocounty.net.alphanet.ch> wrote:
> I was wondering if it is possible to get mgetty to run a certain script
> (0r something) that would be used to get the the sysop's attention when
> a modem continually fails to intitialize, instead of going into a
> relentless circle of intitializations.   Usually when this happens some
> sort of humen intervention is required.

I run a script which checks the size of the mgetty logfile, and if it
gets too big, it warns the sysadm.

This is something like
   SIZE=`ls -l $MGETTY_LOG_FILE | awk '{print $5}'` 

   if [ $SIZE -gt $MAX_SIZE ]; then
      ;
   fi

I find particularly useful to do a rm on that log and kill mgetty, so
that the log doesn't fill the disk :)

This has happened to me especially with the latest multi-MSN mgetty
firmware, but, oh, twice the last eight months, so it's not THAT
bad. At those times, the ZyXEL 2864I had also hung up the
ISDN TA and all the analogic lines and ISDN phones :)

Only a powerdown and up fixed the problem.