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

    [SOLVED] Access Gateway Status from Shell

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 2 Posters 777 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.
    • G
      guardian Rebel Alliance
      last edited by guardian

      Is there a way that I can get the info normally under the gateways section of the dashboard from the shell?

      I don't know if I am the only one that finds logging into the WebGUI very slow -- and even slower if there are connectivity issues.

      I can easily ssh in, and I don't find that resource utilization is out of line (maybe 2 on 4 thread machine - and free memory available too). It would be very helpful if I could use SSH from troubleshooting during connectivity issues.

      If you find my post useful, please give it a thumbs up!
      pfSense 2.7.2-RELEASE

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        [2.7.2-RELEASE][admin@t70.stevew.lan]/root: pfSsh.php playback gatewaystatus
        Name      Monitor      Source             Delay   StdDev  Loss  Status  Substatus
        WAN_DHCP  172.21.16.1  172.21.16.226    0.651ms  0.112ms  0.0%  online       none
        

        Steve

        G 1 Reply Last reply Reply Quote 2
        • G
          guardian Rebel Alliance @stephenw10
          last edited by

          @stephenw10 said in Access Gateway Status from Shell:

          [2.7.2-RELEASE][admin@t70.stevew.lan]/root: pfSsh.php playback gatewaystatus
          Name      Monitor      Source             Delay   StdDev  Loss  Status  Substatus
          WAN_DHCP  172.21.16.1  172.21.16.226    0.651ms  0.112ms  0.0%  online       none
          

          Steve

          Thanks @stephenw10 exactly what I am looking for - any idea what the update frequency is?

          If you find my post useful, please give it a thumbs up!
          pfSense 2.7.2-RELEASE

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            I don't but I imagine it's whatever rate dpinger updates the data.

            G 1 Reply Last reply Reply Quote 1
            • G
              guardian Rebel Alliance @stephenw10
              last edited by

              @stephenw10 said in [SOLVED] Access Gateway Status from Shell:

              I don't but I imagine it's whatever rate dpinger updates the data.

              @stephenw10 is there any way to figure this out easily?

              If you find my post useful, please give it a thumbs up!
              pfSense 2.7.2-RELEASE

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Well if we look at how dpinger is called in pfSense, for example

                /usr/local/bin/dpinger -S -r 0 -i WAN_DHCP -B 172.21.16.226 -p /var/run/dpinger_WAN_DHCP~172.21.16.226~172.21.16.1.pid -u /var/run/dpinger_WAN_DHCP~172.21.16.226~172.21.16.1.sock -C /etc/rc.gateway_alarm -d 1 -s 500 -l 2000 -t 60000 -A 1000 -D 500 -L 20 172.21.16.1
                

                And at the man page: https://github.com/dennypage/dpinger

                It appears the values are available on demand (-r 0) whenever it's called.

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