On Sat, Jan 30, 2010 at 10:35 AM, Rajagopal Swaminathan <[email protected]> wrote: > Greetings, > > I am trying to log connection timeout of firefox when it is anble > reach a particular site. > > Basically tracking the unavailability from the user perspective. > > I hope I am clear in the requirement > > I tried > > tcpdump -s 0 -A -i eth0 -n -q -tttt '(host 210.212.191.54 and dst port > 80) and tcp[13] == 2' > > which prints boatloads of data which I dont need
Ha ha. This line is quite good. What is tcp[13] == 2? Ok, you are checking for SYN flag. tcpdump is an overloaded utility and you use that cleverly only after substantial experience and networking knowledge. netstat is usually a better friend. But you want to look at outgoing connection requests which netstat may not help you out with. Basically I am sure you understand that if a site is unreachable, and if your Internet connection is alive then the only alternative is for TCP to timeout and applications usually time out at their layers. So firefox might have a timeout to identify connection outage. I want to know what you really mean by "tracking unavailability from a user perspective". The browser tab itself clearly says that the site is down. What more do you need? In fact there are several tcp* utilities in UNIX for looking at outgoing TCP connection requests. You can look at them perhaps. -Girish -- Gayatri Hitech web: http://gayatri-hitech.com SpamCheetah Spam filter: http://spam-cheetah.com _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
