[OpenAFS-devel] Suggestion for kdb enhancement

Alf Wachsmann alfw@slac.stanford.edu
Thu, 19 Aug 2004 14:40:57 -0700 (PDT)


While testing some scenarios for kaserver -> heimdal switch we ran
into the need for looking at the /usr/afs/logs/AuthLog.{dir,pag} file
to figure out what was going on.

We found that the current /usr/afsws/etc/kdb program for looking at
these logs is rather awkward and impractical, so I wrote a little
patch which does three things:

- It resolves all IP addresses to names unless the "-numeric"
  parameter is used.
  This is the same behavior as "fs listcells [-numeric]"

- If the "-numeric" parameter is used, IP address will be printed
  in dotted decimal form instead of a 8 digit hex string.

- A new parameter "-long" allows to print all information for all
  entries in the log.
  This is the same info you get for entry XYZ when called with
  "-key XYZ" only you get this for _all_ keys.
  The output is slow if not also called together with "-numeric"

The patch can be found under
	http://rt.central.org/rt/Ticket/Display.html?id=6355

-- Alf.

-----------------------------------------------------------------------
  Alf Wachsmann                       | e-mail: alfw@slac.stanford.edu
  SLAC Computing Service              | Phone:  +1-650-926-4802
  2575 Sand Hill Road, M/S 97         | FAX:    +1-650-926-3329
  Menlo Park, CA 94025, USA           | Office: Bldg. 50/323
-----------------------------------------------------------------------
                http://www.slac.stanford.edu/~alfw (PGP)
-----------------------------------------------------------------------