[SOLVED] Access Gateway Status from Shell
-
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.
-
[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
-
@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?
-
I don't but I imagine it's whatever rate dpinger updates the data.
-
@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?
-
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.