Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alternative to ping [closed]

I want to see if an Amazon EC2 instance is open, but by default Amazon EC2 blocks ping requests. There is a way to do this by changing the security policy of the instance. Excluding that, what would be the closest alternative to "see if a server is responsive" and is light-weight?

Is curl a good option?

like image 637
David542 Avatar asked Apr 11 '13 21:04

David542


1 Answers

If you can ssh to it then it's up. A simple way of checking this with nc is: nc -zv 111.222.333.444 22 (Replace 111.222.333.444 with the ip address of your instance)

like image 184
Lars Hansson Avatar answered Nov 15 '22 21:11

Lars Hansson