Following a previous inquiry whether a SLIP device can be monitored, I
posted another query:
>> I have a SLIP (version 4.0) connection on a dial-up line. I would like to
>> use cron to dial at, say 2 AM, leave the line open for 10 minutes, then shut
>> it down. So far, a piece of cake. However, before I'm shutting down the link
>> I want to make sure that it's not in a middle of a heavy FTP or a long mail
>> transfer. How can I do this?
>>
>> Previous suggestions were:
>> 1. Use tcpdump - the downside is that 'bpf' needs to be installed and on
>> Sun boxes this is possible only if you have kernel sources (with the
>> license, of course).
>> 2. Install cslip-2.1 which contains 'slstats' which shows statistics on the
>> SLIP line action. The downside - I need to install cslip instead of slip
>> (most say it's an improvement, since cslip is faster).
>>
>> Any other suggestions? Thanks in advance.
- Most people suggested doing successive netstats and record the number of
packets still moving until it drops below a threshold you can live with.
- John Lengeling <johnl@microware.com> said to use tcpdump, but to make sure
that rpc.etherd is started first.
- mdl@cypress.com (J. Matt Landrum) said:
I don't know about SLIP, but programs like Morningstar's PPP have
filters that will determine if the line is active and keep the
connection up (or allow it to go down) depending on the type of
packet... user configurable.
My Comments:
1. netstat -i is not reliable -
a) Sometimes it takes forever for it to show the SLIP stats
b) Even when I had heavy ftp and mails, the numbers were inconclusive.
2. I tried tcpdump with rcp.etherd running on both le0 and slip0, but it
showed nothing. It said:
tcpdump: listening on slip0
and it just sat there.
3. I'm not sure I want to put any effort in installing a better SLIP
package, since we're going to upgrade to PPP anyway.
Thanks to:
kevin@uniq.com.au (Kevin Sheehan {Consulting Poster Child})
glenn@uniq.com.au (Glenn Satchell - Uniq Professional Services)
mdl@cypress.com (J. Matt Landrum)
todd@flex.eng.mcmaster.ca (Todd Pfaff)
Patrick O'Callaghan <poc@usb.ve>
Dan Stromberg - OAC-DCS <strombrg@hydra.acs.uci.edu>
kmah@DCS-Systems.COM (Kevin Mah)
John Lengeling <johnl@microware.com>
-- /* ------------------------------------------------------------------- */ /* Amir J. Katz | amir@matis.ingr.COM, amir@dcl-see.co.il */ /* System Specialist | Voice: +972 9-584684 */ /* SEE Technologies Ltd.| Fax: +972 9-543917 */ /* ......... To Boldly Go Where No One Has Hacked Before ............ */
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:07 CDT