2008年7月1日 星期二

httping : 針對 HTTP Request 的仿 ping 程式

172.20.1.150 is up and provide http service
# httping -g http://172.20.1.150 -c 5
PING 172.20.1.150:80 (http://172.20.1.150):
connected to 172.20.1.150:80, seq=0 time=12.34 ms
connected to 172.20.1.150:80, seq=1 time=2.27 ms
--- http://172.20.1.150 ping statistics ---
2 connects, 2 ok, 0.00% failed
round-trip min/avg/max = 2.3/7.3/12.3 ms

10.1.1.100 don't provide http service
# httping -g http://10.1.1.100 -c 5
PING 10.1.1.100:80 (http://10.1.1.100):
could not connect (Connection refused)
could not connect (Connection refused)
could not connect (Connection refused)
--- http://10.1.1.100 ping statistics ---
3 connects, 0 ok, 60.00% failed

172.20.5.200 Not Exist
# httping -g http://172.20.5.200 -c 5
PING 172.20.5.200:80 (http://172.20.5.200):
could not connect (Connection refused)
could not connect (Connection refused)
could not connect (Connection refused)
could not connect (Connection refused)
could not connect (Connection refused)
--- http://172.20.5.200 ping statistics ---
5 connects, 0 ok, 100.00% failed
root@test-laptop:/home/prj/tmp/ecos#

httping : 針對 HTTP Request 的仿 ping 程式
http://blog.linux.org.tw/~jserv/archives/002038.html

沒有留言: