Archive for March, 2006

Debugging DTrace

While catching up on the DTrace discussion list tonight, I came across a cool DTrace debugging recommendation from Adam Leventhal. Adam mentioned using the DTRACE_DEBUG flag, which will cause libdtrace to spew tons of debugging data each time dtrace is invoked: $ export DTRACE_DEBUG=1 $ dtrace -n ‘syscall:::entry { @calls[execname] = count(); }’ libdtrace DEBUG: […]

Maximizing IP Filter performance with group statements

Solaris 10 ships with the IP filter firewall package, which is a fast, flexible and verstile firewall engine. IP filter by default will read /etc/ipf/ipf.conf to get the list of rules (e.g., pass in all) to apply to traffic as it traverses the interfaces in a system, and these rules will be applied in a […]

Jarod Jenson coming to Atlanta to talk about DTrace

If you live in the Atlanta, GA area, you might be interested to know that Jarod Jenson will be talking about DTrace April 19th at the Marriott Perimeter Center. The event is being put on by Sun FREE of charge, and will be way better than any training course you could take on the subject […]

Getting around smartmontools linker errors

I posted a blog entry a while back that showed how to setup smartd on a Solaris system. Two individuals left comments indicating that smartmontools wouldn’t build, and one individual (Peter) received the following errors during the build process: gcc -g -O2 -Wall -W -c `test -f ‘os_solaris_ata.s’ || echo ‘./’`os_solaris_ata.s gcc -g -O2 -Wall […]

Viewing dynamic executable dependencies

Large dynamically linked executables can have a LOT of dependencies, which are resolved by the runtime linker when a program is executed. To see which libraries an executable and the executable’s shared dependencies depend on, the ldd utility can be used: $ ldd /usr/sbin/metastat libmeta.so.1 => /lib/libmeta.so.1 libc.so.1 => /lib/libc.so.1 libnsl.so.1 => /lib/libnsl.so.1 libadm.so.1 => […]

Debugging problems with Solaris in.dhcpd vendor options

While attempting to jumpstart my Sun Ultra 10 this week, I encountered the following error: ok boot net:dhcp – install Boot device: /pci@1f,0/pci@1,1/network@1,1:dhcp File and args: – install 38800 panic – boot: Could not mount filesystem. Program terminated The machine was getting a kernel, but for some reason was unable to mount the Solaris miniroot. […]

« Older Entries