HP3000-L Archives

March 2001, Week 1

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:
John Burke <[log in to unmask]>
Reply To:
John Burke <[log in to unmask]>
Date:
Thu, 1 Mar 2001 07:28:41 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (146 lines)
Larry,

What many of us do is use nslookup (/BIND/PUB/bin/nslookup) combined with
ping in a command file to create a ping by name. nslookup was part of the
bind port and comes with MPE/iX 6.0 and above. I've included my command file
and an example of its use from one of our 3000s. Enjoy,

John Burke

<SASHA: JPB,MGR.SYSADMIN,PUB> THU, MAR  1, 2001  6:17 AM  </SYSADMIN/PUB>
[23]:help ping
USER DEFINED COMMAND FILE:  PING.PUB.SYS

parm IP_or_name,_count=4,_packet_size=32
if "!IP_or_name" = "?" then
  echo
  echo This is the command file pinger.net.sys
  echo
  echo The calling parameter format is:
  echo
  echo   [ip_address_or_name    [, numer_or_packets    [,packet_size]
  echo            ?          ]        c or C       ]
  echo
  echo It is recommeded a symbolic link be created, ping.pub.sys,
  echo which points to this command file; in which case, for example
  echo
  echo ping ?                 <--- yields this display
  echo ping aaa.bbb.ccc.ddd   <--- sends 4 32-byte packets and
  echo                             displays results
  echo ping name                               "
  echo ping {address},c       <--- sends a continuous stream of
  echo                             32-byte packets. ctrl-y interupts
  echo                             and displays statistics
  echo ping {address},5,64    <--- sends 5 64-byte packets and
  echo                             displays results
  echo
  return
endif
if numeric("!_count") then
  setvar _counter,"!_count"
elseif ups("!_count") = "C" then
  setvar _counter,""
else
  setvar _counter,"4"
endif
if numeric(str('!IP_or_name',1,1)) then
  ping.net.sys "!IP_or_name,!_counter,!_packet_size"
  return
endif
purge pingtemp,temp > $null
/BIND/PUB/bin/nslookup !IP_or_name > pingtemp
if finfo("pingtemp","EOF") < 5 then
  purge pingtemp,temp > $null
  return
endif
if finfo("pingtemp","EOF") = 6 then
  print pingtemp;start=5;end=5 > pingtest
else
  print pingtemp;start=6;end=6 > pingtest
endif
input _IP_Address < pingtest
setvar _IP_Address,word(_IP_Address,,2)
purge pingtemp,temp > $null
purge pingtest,temp > $null
echo Pinging: !_IP_Address
ping.net.sys "!_IP_Address,!_counter,!_packet_size"
deletevar _IP_Address
<SASHA: JPB,MGR.SYSADMIN,PUB> THU, MAR  1, 2001  7:20 AM  </SYSADMIN/PUB>
[24]:ping www.shopsmith.com
Pinging: 209.251.22.74

-------- PING/XL (ICMP Echo Requestor) : Version B0600000 --------

PARAMETERS INPUT:
----------------
Remote IP address in hex : $D1FB164A
Number of packets        : 4
Number of data bytes     : 32

---- PING $D1FB164A : 32 byte packet(s), 4 packet(s) ----

32 byte(s) from $D1FB164A : icmp_seq =     1, time =    74 ms
32 byte(s) from $D1FB164A : icmp_seq =     2, time =    62 ms
32 byte(s) from $D1FB164A : icmp_seq =     3, time =    76 ms
32 byte(s) from $D1FB164A : icmp_seq =     4, time =    76 ms

---- $D1FB164A PING Statistics ----

4 packet(s) transmitted, 4 packet(s) received, 0 % packet loss
round trip (ms)  min/avg/max = 62 / 72 / 76


> -----Original Message-----
> From: Simonsen, Larry [mailto:[log in to unmask]]
> Sent: Thursday, March 01, 2001 7:03 AM
> To: [log in to unmask]
> Subject: Re: [HP3000-L] Jazz update
>
>
> The larsping works good.  one nice addition would be to add the name
> reslover. So that DNS lookup could be used.  How had is this to add?
>
> -------------------------------------------------
> Larry Simonsen                Phone: 801-489-2450
> Flowserve Corporation     Fax: 801-491-1750
> PO Box 2200                    http://www.Flowserve.com
> Springville, UT 84663      e-mail: [log in to unmask]
> -------------------------------------------------
> All opinions expressed herein are my own and reflect, in no
> way, those of my
> employer.
>
>  -----Original Message-----
> From:   VANCE,JEFF (HP-Cupertino,ex1) [mailto:[log in to unmask]]
> Sent:   Wednesday, February 28, 2001 7:32 PM
> To:     [log in to unmask]
> Subject:        Jazz update
>
> Hi all,
>
> Mark B. and I have done some work on Jazz recently.  He updated the
> site to comply to HP Corp standards, which is pretty much a pain.
> He also got rid of some very old files.
>
> I converted all worthwhile Ryder archives to tar format.  I also
> converted all known mover archives to tar or tar.Z formats.  If
> you find a Ryder or Mover archive file on Jazz please let me know.
> The mover program is still available on Jazz for an emergency,
> but we ask you to not use it!
>
> I put Lar's newest version (no NA, NM cap required) of ping
> in the "software downloads" section.  See
>    http://jazz.external.hp.com/src/
> and scroll down for ping.
>
> Last, I added a perl script, authored by Guy Paul, HP Boise, that
> provides some nice disk usage information.  See
>    http://jazz.external.hp.com/src/scripts/
> for the perl script and sample output.
>
>
> regards,
>  Jeff Vance, CSY
>
>

ATOM RSS1 RSS2