Showing uptime of DSL connections

Quick one today. My usual method of determining ADSL connection uptime has been grepping logs for %LINEPROTO-5-UPDOWN:, %DIALER-6, or most commonly Di0 and looking at the latest timestamps. No more! I knew there had to be a nice and clean show *magic-word* command to make it easier, and there is!

Router#sh caller ?
  full       Provide expanded caller information
  interface  Provide information on one interface
  ip         Display IP information
  line       Provide information on one line
  summary    Display total users logged and total ISDN/Analog users
  timeouts   Display session and idle limits and disconnect time
  user       Display information for a particular user
  |          Output modifiers
  <cr>

And the output

Router#sh caller
                                                  Active    Idle
  Line           User               Service       Time      Time
  vty 194        admin             VTY           00:03:45  00:00:00
  Vi2            <unknown phone number> \
                                    PPPoE         5d11h     00:00:04
Router#sh caller full

  User: admin, line vty 194, service VTY
        Active time 00:03:48
  Timeouts:    Limit     Remaining Timer Type
               00:30:00  00:29:59  Idle Exec
  VTY: Line 194, remote 10.250.1.100
  Line: Baud rate (TX/RX) is 9600/9600
  Status: PSI Enabled, Ready, Active, No Exit Banner
  Modem State: Ready

  User: , line Vi2, service PPPoE
        Connected for 5d11h, Idle for 00:00:00
  Timeouts:    Limit     Remaining Timer Type
               -         -         -
  PPP: LCP Open, CHAP (->), IPCP
  Dialer: Connected to <unknown phone number>, inbound
          Type is DIALER PPPOE, group Di0
  IP: Local xxx.xxx.xxx.xxx/32, remote xxx.xxx.xxx.xxx
  Counts: 3523433 packets input, 3912371236 bytes, 4 no buffer
          0 input errors, 0 CRC, 0 frame, 0 overrun
          2624812 packets output, 624201855 bytes, 0 underruns
          0 output errors, 0 collisions, 0 interface resets

About this entry