tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Mike Hatz <mhatz () raven ! phs ! com>
To: tru64-unix-managers
Subject: fping help under OSF/1 LOOOONNNNGGGG (fwd)
Date: Tue, 04 Apr 1995 22:01:15 +0000	[thread overview]
Message-ID: <96075319106364.tru64-unix-managers.marc@archive.invalid> (raw)

In prep for the upcoming Satan release, the fping utility is required for
that.  The makefile is short so I will post fping's Makefile.  The question
I have is what library call do I need to define?  The program compiled okay
but anytime I run it, all hosts come back as being down and the program
tries to hit 255.255.255.255, when I specify a hostname:

The lib for lsocket won't compile as it is in here.

>fping -eds nox.cs.du.edu
255.255.255.255 is unreachable

        1 hosts
        0 alive
        1 unreachable
        0 unknown addresses

        4 timeouts (waiting for response)
        4 pings sent
        4 pings received

        0 msec (min round trip time)
        0 msec (avg round trip time)
        0 msec (max round trip time)
   10.222 sec (elapsed real time)

It completely ignores the hostname, but runs just fine on the IP address.
It correctly identifies the intended host.

>fping -eds 130.253.192.89
nyx10.cs.du.edu is alive (747 msec)

        1 hosts
        1 alive
        0 unreachable
        0 unknown addresses

        0 timeouts (waiting for response)
        1 pings sent
        1 pings received

      747 msec (min round trip time)
      747 msec (avg round trip time)
      747 msec (max round trip time)
    1.118 sec (elapsed real time)


The man page shows a -d option for DNS but that doesn't help.  
======================================
The makefile:

PROG= fping
OBJS= fping.o
SRC= fping.c
BIN= /usr/local/bin
MAN= /usr/man/manl
MANSRC= fping.man
MANDST= fping.l

#
# Interval is the minimum amount of time between sending a ping packet to 
# any host.
#
# Timeout  is the minimum amount of time between sending a ping packet to
# a particular host.
#
# Retry is the number of ping packets to send to a host before giving up.
#

DEFAULTS= -DDEFAULT_INTERVAL=25  \
          -DDEFAULT_TIMEOUT=2500  \
          -DDEFAULT_RETRY=3
#
# some systems need the following:
#LIBS= -lsocket


all: $(PROG)

$(PROG) : $(OBJS)
        $(CC) $(OBJS) -o $(PROG) $(LIBS)

$(OBJS) : $(SRC)
        $(CC) $(CFLAGS) -c $(DEFAULTS) $(SRC)

# if you don't have install type:
# cp $(PROG) /usr/local/bin
# chown root /usr/local/bin/$(PROG)
# chmod 4555 /usr/local/bin/$(PROG)
# strip      /usr/local/bin/$(PROG)
#

install:
        install -c -m 4555 -o root -s $(PROG) $(BIN)/$(PROG)
        install -c -m 0444 -o root $(MANSRC) $(MAN)/$(MANDST)
clean:
        rm -f a.out core *~  *.o $(PROG)

shar:
        shar README CHANGES fping.c fping.man Makefile README.VMS > fping.shar

             reply	other threads:[~1995-04-04 22:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-04-04 22:01 Mike Hatz [this message]
  -- strict thread matches above, loose matches on Subject: below --
1995-04-05  6:52 fping help under OSF/1 LOOOONNNNGGGG (fwd) Roman Gollent
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox