Netgate SG-1000 microFirewall

Author Topic: See pppoe uptime from CLI?  (Read 88 times)

0 Members and 1 Guest are viewing this topic.

Offline muppet

  • Newbie
  • *
  • Posts: 24
  • Karma: +1/-0
  • I'm a Muppet
    • View Profile
    • Tim H
See pppoe uptime from CLI?
« on: February 01, 2018, 04:35:48 pm »
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

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 21571
  • Karma: +1471/-26
    • View Profile
Re: See pppoe uptime from CLI?
« Reply #1 on: February 12, 2018, 02:26:00 pm »
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
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline muppet

  • Newbie
  • *
  • Posts: 24
  • Karma: +1/-0
  • I'm a Muppet
    • View Profile
    • Tim H
Re: See pppoe uptime from CLI?
« Reply #2 on: February 12, 2018, 02:27:09 pm »
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.