iPXE discussion forum

Full Version: Return a status for ping
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want tested uplink down or up with ping command
but it's not possible because the command is a loop

ping ${netX/gateway} && echo Interface UP || echo Interface Down

Is it possible to add a counter or a timer to ping ?
A commit with the ability you need was committed with dea6a6c about 6 weeks ago. You should be able to do what you need to do if you use a current version of iPXE with the ping command enabled. See http://ipxe.org/cmd/ping for more details. The commit explaining the -c parameter to ping can be found here: https://git.ipxe.org/ipxe.git/commitdiff...f74c826d0c
Reference URL's