UNIX System Administration Pocket Reference
Additional Notes


back home

reiserfs troubleshoot
=====================
reiserfsck --check
echo $?
if 0 it should be OK
if 1 run reiserfsck --fix-fixable
if 2 run reiserfsck --rebuild-tree
"can't find reiserfs" use reiserfsck --rebuild-sb (SuperBlock)

grub and lilo config + install or remove
========================================
"vi /boot/grub/grub.conf" and launch "grub-install /dev/hda"
"vi /etc/lilo.conf" and launch "lilo"
use "fdisk /mbr" under DOS (to clear the master boot record, remove lilo or grub)


tcpdump and iptrace (AIX)
=========================
with tcpdump (quickly writing filters)
  -n No resolving (numeric) of internet adresses. Use this, unless you have written a good filter with limmited output!
  -i Interface, name as shown in ifconfig.
  -I don't wait until buffer fill-up, imediate output.
  -p don't use promiscuous mode, use it if not needed.
  -q quiet, less output.
with iptrace (detailed traces)
  Options:
    -a exclude arp, -s source host, -d dest. host, -p protocol
  Commands:
    $startsrc -s iptrace -a "-i en1 /tmp/log1.out"
    $stopsrc -s iptrace
    $ipreport -ns /tmp/log1.out > /tmp/log1.formated


dhcplike query's (win32 uses dhcpcmd, how about more generic protocol query's on unux?)
================

unlmoading tapes:
=================
AIX: tctl -f /dev/rmt0 offline
Open UNIX 8 / UnixWare: tapecntl -u /dev/rmt/ctape1 (or other device)
OpenServer 5: tape unload /dev/rStp0 (or other device)


Updated: 27 jan 2003 by W. Van Hooste | TOP