Results 1 to 4 of 4

Thread: Checking uptime of modem dialup connection

  1. #1
    Associate
    Join Date
    Jul 2001
    Posts
    16

    Checking uptime of modem dialup connection

    Anyone know a good way to check how long a modem connection (or any other network connection I guess) has been up? I suppose if I ran gppp or kppp that would do it, but I'd rather know if theres anything like a procfile that has it or something, because I'm probably going to build a cgi-page with modem stats and the option to redial if its down etc. So any ideas, shoot.

  2. #2

    Re:Checking uptime of modem dialup connection

    One idea would be to get your "ip-up" (poss /etc/ppp/ip-up - in a normal set up is executed when ppp link established) script to record the current time in a file somewhere (and ip-down could overwrite it with the text "down", say).
    There is probably a better way. Maybe ifconfig tells you, but I'm not at a Linux box right now to test that.

  3. #3
    Associate
    Join Date
    Jul 2001
    Posts
    16

    Re:Checking uptime of modem dialup connection

    thats a pretty good idea. One would think that theres simply a /proc file or something somewhere because my windoze xp does it by default . But anyways, if nothing else turns up, I think ip-up will work fine.

  4. #4
    Senior Member
    Join Date
    Sep 2002
    Posts
    421

    Re:Checking uptime of modem dialup connection

    The net monitor in gkrellm can be configured to show the online time of a ppp network connection. I don't really know where it get's that data from. If nothing else the time the connection is established will be recorded in /var/log/messages or /var/log/syslog

Similar Threads

  1. Internal Dialup modem
    By szi.asif in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 09-07-2008, 04:27 PM
  2. Uptime records
    By countach44 in forum General Chat
    Replies: 18
    Last Post: 10-21-2004, 01:39 AM
  3. Post your uptime!
    By Stuart in forum General Chat
    Replies: 11
    Last Post: 06-25-2003, 08:13 PM
  4. howto: share one dialup isp connection
    By Pantheus in forum Linux - Hardware, Networking & Security
    Replies: 6
    Last Post: 04-08-2003, 10:41 PM
  5. uptime -a
    By coltrane in forum General Chat
    Replies: 18
    Last Post: 01-09-2002, 05:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •