GoTerpsGo has asked for the wisdom of the Perl Monks concerning the following question:

I was just informed by my users that not only do they want to use a script that captures content coming from a Cisco router's serial port, they want to be able to still issue commands via the same port. Now my initial script uses Win32::SerialPort but then they can't access that port via a terminal app when the script is running. Does anyone know how I could go about writing a serial port sniffer? Thx.

Replies are listed 'Best First'.
Re: Creating a serial port sniffer
by GrandFather (Saint) on Jun 13, 2007 at 21:24 UTC

    Unless you want to write a kernel mode filter driver to insert into the serial port's driver stack, you can't do it. Such a driver you can not write in Perl btw.

    A better solution is to combine the logging and management (terminal app replacement) applications into one.


    DWIM is Perl's answer to Gödel