- Monitor TCP stats (cwnd, ssthresh, etc)
- Compile a kernel with "options TCPDEBUG" in the config file
- Run an application with a socket in debug mode (socket option SO_DEBUG)
- Run trpt
to process the debug info saved by the kernel.
- Instead of using trpt, you can set "options TCPCONSDEBUG" to dump the
debugging info to the console, where you can look at it with dmesg or in
/var/log/messages.
- Reboot from hang or kernel panic
- Ctrl-Alt-Esc -- the console BREAK sequence
- call boot(0) (From the FreeBSD Handbook, pp. 192, 221-222)
- Recompile kernel
cd /usr/src/sys/i386/conf
cp GENERIC MYKERNEL
/usr/sbin/config MYKERNEL
cd ../../compile/MYKERNEL
make
- Debug the kernel
- plug serial cable into port 1 on both machines
- add user to group "dialer"
- compile debug kernel, strip -x debug
- have a good kernel (modified) AND a debug kernel on machine
- look @ FreeBSD handbook (22.4)
- Mount bennett on tyagi
bennett> edit /etc/exports
/usr -maproot=0 [...] tyagi137
/usr -ro buzzard
bennett> kill -1 <mountd proc id> // reset mountd
tyagi> mkdir /bennett // create dir for mount
tyagi> mount -t nfs -o rw bennett:/usr /bennett
// put this in mount.local if this should happen always
- Run tcpdump
tcpdump -i <interface> -s <bytes to capture> -w <output file>
[src/dst] host <hostname>