HP3000-L Archives

January 2007, Week 4

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:
Donna Hofmeister <[log in to unmask]>
Reply To:
Date:
Thu, 25 Jan 2007 09:16:20 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (118 lines)
fwiw, there are/should be several 'nslookup's to pick from.  a listfile of [log in to unmask] revealed 3 on my system.  if you have bind installed, you'll find one there as well.

you might want to take a look at this script.  we had a similar situation where we wanted to be sure what we were about to ftp to was actually alive.  the variabled 'answered_ping' needs to be checked after the script is run:

parm addr=?
if "!addr" = "?" or dwns("!addr") = "help"
  echo
  echo ![basename(hpfile)] [node name|ip address]
  echo                   req.
  echo This script will ping the provided network-attached device
  echo and return the CI boolean variable ANSWERED_PING.
  echo
  return
endif
setvar _pt_addr               "!addr"
if not numeric(word(_pt_addr,"."))
  mylookup !_pt_addr
  if bound (ml_ip2)
    setvar _pt_addr2          ml_ip2
  else
    setvar pt_err "ERROR: Couldn't convert !_pt_addr to an ip address"
    echo !pt_err
    escape 99
  endif
else
  setvar _pt_addr2            _pt_addr
endif
file pingout=po!hppin,old;dev=disc
if not finfo("*PINGOUT","EXISTS")
  build po!hppin;rec=-1,,b,ascii
endif
continue
larsping.net.sys "!_pt_addr2,3,64" > *pingout
setvar answered_ping          true
grep.hpbin.sys "' 0 % packet loss' PO!HPPIN" >$null
if cjcw <> 0
  setvar answered_ping        false
  echo ********************
  print *pingout;page=0
  echo ********************
endif
deletevar _pt@
reset pingout
purge po!hppin

a couple of notes...  if you want 'mylookup', please let me know privately.  it's a wrapper for nslookup.  larsping (gee, where'd we get *that* name :-) is the special version of ping available on jazz that doesn't require any special capabilities to use.       - d

---- 
Donna Hofmeister, HP-CSA Sr. System Programmer
dgarverick -at- longs -dot- com
925-210-6631 Longs Drug Stores

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


----- Original Message ----
From: "Johnson, Tracy" <[log in to unmask]>
To: [log in to unmask]
Sent: Wednesday, January 24, 2007 12:09:29 PM
Subject: Re: [HP3000-L] Checking for FTP Success


A gentlman directed me to run nslookup.hpdce.sys.

Then I can use a domain name and convert it to IP before processing it
with Ping.

Tracy Johnson
Measurement Specialties, Inc. 

BT







NNNN


> -----Original Message-----
> From: Greg Stigers [mailto:[log in to unmask]] On Behalf 
> Of Greg Stigers
> Sent: Wednesday, January 24, 2007 2:54 PM
> To: Johnson, Tracy; [log in to unmask]
> Subject: Re: Checking for FTP Success
> 
> 
> I remember doing this, but don't remember how I did it. But 
> it should be 
> easy enough to work out. Use ERRCLEAR, then ping an address 
> that will not 
> reply. Then SHOWJCW and SHOWVAR @[log in to unmask]
> 
> If that doesn't do it, then RUN PING.NET.SYS with appropriate 
> info strings, 
> and send its output to a temp file ;STDOUT=, I think. 
> Evaluate the temp file 
> as you see fit.
> 
> Greg Stigers 
> 
> 

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *


 
____________________________________________________________________________________
We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2