HP3000-L Archives

May 2000, 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:
"Simonsen, Larry" <[log in to unmask]>
Reply To:
Simonsen, Larry
Date:
Fri, 12 May 2000 10:49:54 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (83 lines)
Donna I have this kind of a script, command file.  However the use of
nettool requires NA (network administrator capability) and this fails for
many users.  It would be nice to be able to ping like my pc does.

-------------------------------------------------
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:   Donna Garverick [mailto:[log in to unmask]]
Sent:   Friday, May 12, 2000 10:47 AM
To:     Simonsen, Larry
Subject:        Re: ping

"Simonsen, Larry" wrote:

> I am trying to ping by name not ip address.  This requires DNS lookup to
be
> active.  The ping by name works fine within the nettool.net.sys but not
the
> ping.net.sys tool.  Is there any other tool which may not require 'NA'
> capabilities?

try this....it's a command file (duh).  it still uses ping.net, so you'll
need
'na' capability.

parm node="" packets=5 pktsize=128
if "!node" = "" or "!node" = "?" then
   setvar _filename word("!hpfile",".")
   echo
   echo Syntax:
   echo
   echo !_filename !<Nodename_or_Address!> [# of packets] &
        [packet size (bytes)]
   echo                               (default: 5)     &
        (default: 128)
   echo
   echo Examples:
   echo
   echo !_filename hewey 3 256             sends 3 packets of 256 bytes each
   echo !_filename 10.60.240.11            sends 5 packets of 128 bytes each
   echo !_filename mork.from.org 20 64     sends 20 packets of 64 bytes each
   echo
   deletevar _filename
   return
endif
 if not numeric(word("!node",".")) then
   #
   # This is a node name. We'll use NETTOOL.NET.SYS and assume the
   # system is using sort of name resolution service, like external
   # DNS or a HOSTS file.
   #
   # Build a temp file to use as input to NETTOOL, in case the
   # node name is not resolved.
   echo quit >pinginpt
   nettool.net.sys 'ping;size !pktsize;number !packets;&
     ping !node;quit' <pinginpt
   echo
else
   #
   # This is a numeric IP address, hopefully a valid one.
   # We'll use PING.NET.SYS because it's quicker and easier.
   #
   echo
   if !packets > 10
     echo *** Type Ctrl+Y to stop ***
   endif
   run ping.net.sys;info="!node, !packets, !pktsize"
endif


--
Donna Garverick     Sr. System Programmer
925-210-6631        [log in to unmask]

>>>MY opinions, not Longs Drug Stores'<<<

ATOM RSS1 RSS2