Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    See pppoe uptime from CLI?

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 488 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User
      last edited by

      Hi,

      On the summary page when I login, I have the Interface tab which shows me my WAN's pppoe uptime.

      I assume this is being pulled from a cli command somehow, but I can't figure out what it might be.

      Can anyone share the CLI magic to display PPPOE uptime?

      Thanks!

      Tim

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        It looks in the PPP log and finds the connect time and then calculates.

        https://github.com/pfsense/pfsense/blob/master/src/etc/inc/pfsense-utils.inc#L1472

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User
          last edited by

          @jimp:

          It looks in the PPP log and finds the connect time and then calculates.

          https://github.com/pfsense/pfsense/blob/master/src/etc/inc/pfsense-utils.inc#L1472

          That's a clever way to do it!
          Thanks for the pointer.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.