Archive for December, 2004

Finding BIND failures in OpenLDAP logfiles

When OpenLDAP is configured to log connection information, a RESULT entry is written with the status (e.g., success or failure) of the last BIND: $ grep RESULT openldap.log | head -1 Dec 28 21:05:01 winnie slapd[7101]: [ID 217296 local4.debug] conn=25 op=0 RESULT tag=97 err=0 text= The “err=” string contains zero if the BIND was successful, […]

Measuring Website Page Load Times

I was curious to see how long it would take to load “index.html” from my web server, so I created http-ping.pl to measure the time it took to retrieve a webpage from my web server: $ http-ping.pl -s prefetch.net -p 80 -d 2 Querying HTTP server prefetch.net:80 every 2 seconds (Ctrl-C to stop): Mon Nov […]

Selectively tracing Solaris system calls

I was debugging an I/O problem last week, and needed to see how an application was using a UFS file system on a Solaris 9 server. Solaris comes with the “truss” utility, which can be used to trace library and system calls. When truss is invoked with the “-t” option, only the system calls passed […]