nsping on solaris

From: George.Robinson@VerizonWireless.com
Date: Mon Jan 05 2004 - 06:40:32 EST


          Hi all. In the xBSD world, the nsping program has been around for
some time. It's simple, but useful and the source can be found at
ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/nsping.tar.gz
<ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/nsping.tar.gz> . Here's the
description from the man page:
 
"Nsping uses DNS queries to monitor reachability and operation of
name-servers, as well as the latency of DNS queries. It does this by sending
random recursive DNS queries to the nameserver (avoiding the effects of DNS
caching) and measuring the amount of time between the sending of the query
and the receipt of the response packet."
 
          I use it often at home, but now I am trying to use it on Solaris
at work. To compile it on Solaris, in the Makefile, comment out CFLAGS and
LIBS and add in the lines shown below the Solaris comments. As you may
discover, it compiles cleanly and quickly. It will give you a warning
message critical of system V (Solaris) systems. Despite the clean compile,
it doesn't seem to work for me on Solaris 8 or 9, with gcc 2 or 3. It would
seem the likely culprit would be the snprintf() call (which should be fine
in the newer Solaris distributions), but after trying some hacks, I have to
admit I don't have as much practice in C as I once had.
          I am hoping someone might also find this useful to use on Solaris
and will test it out. Perhaps it compiles fine for you and the problem is
between my chair and the keyboard. ;) However, I'm sure someone on here
might remember how to fix this problem. I thank you in advance for your
advice and look forward to any feedback.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:46 EDT