Return a status for ping - Printable Version +- iPXE discussion forum (https://forum.ipxe.org) +-- Forum: iPXE user forums (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: Return a status for ping (/showthread.php?tid=7492) |
Return a status for ping - cyr-ius - 2014-10-12 12:22 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 ? Thank. RE: Return a status for ping - robinsmidsrod - 2014-12-03 15:02 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/1c34ca70d199ceee9d663986e377b7f74c826d0c |