Date: Wed, 23 Jan 2008 16:50:22 -0500 From: Yousif Hassan <yousif@alumni.jmu.edu> To: freebsd-net@freebsd.org Subject: network interface monitoring? Message-ID: <1201125022.2106.67.camel@localhost>
next in thread | raw e-mail | index | archive | help
Net-gurus: I hope this is the right list to write to regarding this question (feel free to redirect me to ports@ if that sounds more appropriate). I'm looking for a facility to automatically detect network interface carrier state changes (a network cable gets plugged/unplugged; a laptop's wireless button gets turned on/off; etc.) and then to run a user script on it. The use case, fairly obvious I guess, is to execute ifconfig and/or DHCP commands upon carrier detection; this will make my laptop that much more useful. ;) NetBSD has ifwatchd - which seems perfectly designed for this use case: http://www.freebsd.org/cgi/man.cgi?query=ifwatchd&apropos=0&sektion=0&manpath=NetBSD+4.0 ifwatchd has not been ported to FreeBSD - does FreeBSD have anything similar? I can't imagine I'm the first to ask this question; it seems almost everyone with a laptop would want this. Thanks for your time/attention...! (please CC me as I am not subscribed here) --Yousif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1201125022.2106.67.camel>