HP3000-L Archives

July 1999, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Doug Werth <[log in to unmask]>
Reply To:
Doug Werth <[log in to unmask]>
Date:
Thu, 8 Jul 1999 11:17:59 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (68 lines)
Scott,

Try running your IP addresses through the following command file. This will
give you a concise list of which IP addresses were reachable and which ones
were not.

:print PINGTEST
parm IPAddr="192.1.1.1"
setvar InvVid,chr(27) + "&dB"
purge pingout,temp >$null
if finfo("PINGOUT","EXISTS") = false
   build pingout;rec=-80,,f,ascii
endif
file pingout,old;dev=disc
ping.net.sys "!IPAddr,3,64" >*PINGOUT
grep.hpbin.sys "'100 % packet loss' PINGOUT" >$null
if cjcw = 0 then
   echo !InvVId!IPAddr not found
else
   echo !IPAddr is a good address.
endif

:print HOSTSP
pingtest ###.238.110.8
pingtest ###.234.73.40
pingtest ###.234.73.17
pingtest ###.234.73.60
pingtest ###.1.1.1
pingtest ###.234.73.61


Here are the results:
:xeq HOSTSP
###.238.110.8 is a good address.
###.234.73.40 is a good address.
###.234.73.17 is a good address.
###.234.73.60 is a good address.
###.1.1.1 not found
###.234.73.61 is a good address.

HTH.

Doug.

Doug Werth [log in to unmask]                  Beechglen Development Inc.
Director of Technical Support Services                   Cincinnati, Ohio
Voice: (513) 922-0509                                 Fax: (513) 347-2834




On Wed, 7 Jul 1999 19:46:46 -0700, SCOTT LINDHOLM <[log in to unmask]>
wrote:

>Hello listers,
>
>I am trying to test the IP addresses in my HOSTS.NET.SYS file.  I wrote
>a command file which reads the HOSTS file, pings the address and writes
>the address to an error file.  I am looking for a way to determine if
>the ping was successful.  I thought there would be a variable which
>would tell me but I cannot find one.  Does anybody know of one?  Is
>there an easier way?  Please reply to my personal email address.
>
>Thanks,
>
>Scott Lindholm
>

ATOM RSS1 RSS2