Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Return a status for ping
2014-10-12, 12:22
Post: #1
Return a status for ping
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.
Find all posts by this user
Quote this message in a reply
2014-12-03, 15:02 (This post was last modified: 2014-12-03 15:04 by robinsmidsrod.)
Post: #2
RE: Return a status for 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
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)