I'm not sure if this will address your specific issue, but I can't pass up a
plug opportunity. Quest's Network File Access (NFA) will dynamically
redirect access to the files you specify. If you are attempting to access a
file from box A that actually resides on box B, NFA will automatically
redirect the request, over a socket connection, to box B. This does not
require NS Services and does not incur a user log in on box B. NFA also
incorporates caching algorithms to further enhance access speeds across the
LAN. You also have full read-write access to the data, in accordance with
your existing security parameters.
Please let me know if you would like more information,
Allen Cintron
Quest Software
"Expect a Solution"
949-718-2454 direct
E-Mail [log in to unmask] <mailto:[log in to unmask]>
-----Original Message-----
From: Jim Alton [mailto:[log in to unmask]]
Sent: Monday, May 03, 1999 2:34 PM
To: [log in to unmask]
Subject: Re: Can one redirect FTP "PUT"s and "GET"s on MPE 5.5
You might try the following:
If you have two seperate boxes, have the job stream test the HPSUSAN number
to determine which box it is running from.
If you are running on a single box, perhaps checking for HPACCOUNT will do
the trick.
In either case... a technique often used is to redirect stdin for ftp.
Build two flat files that contain all the ftp commands you need, one for
production and one for test. Let's call them FTPPROD and FTPTEST. Then
your job would look something like....
!IF "!HPSUSAN" = "1920392843" THEN
!RUN FTP.ARPA.SYS;STDIN=FTPPROD.PUB.ACCOUNT
!ELSE
!RUN FTP.ARPA.SYS;STDIN=FTPTEST.PUB.ACCOUNT
!ENDIF
Good Luck,
Jim Alton
eSystem Solutions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions, thoughts, ideas expressed in this message are entirely my own.
Mark Bixby wrote in message ...
>Jeff Brown writes:
>> We use MPE 5.5 and the FTP.ARPA.SYS program. Our site has a domain name
>> server and our FTP "PUT" and "GET" actions connect to a remote host
>> using the domain name (e.g., host1.pnl.gov).
>>
>> On our test system only I would like to redirect the "PUT" and "GET"
>> actions without having to change the hardcoded domain names in batch
>> jobs. I.E., if the batch job transmits a file to host1.pnl.gov I'd like
>> it to actually go to test1.pnl.gov.
>>
>> Is this possible? How hard to accomplish?
>
>Maybe. Easy.
>
>> What would it take? Or where should I look to see how?
>
>Add the IP address for test1.pnl.gov to HOSTS.NET.SYS and give it a name of
>host1.pnl.gov.
>
>Make sure that /etc/hosts exists as a symbolic link pointing to
/SYS/NET/HOSTS.
>
>I know that the BIND/iX resolver routines will first look in /etc/hosts
before
>trying DNS. But I've never tested this with the vanilla HP resolver
routines
>used by FTP.ARPA.SYS (i.e. hpgethostbyname).
>--
>Mark Bixby E-mail: [log in to unmask]
>Coast Community College Dist. Web: http://www.cccd.edu/~markb/
>District Information Services 1370 Adams Ave, Costa Mesa, CA, USA
92626-5429
>Technical Support Voice: +1 714 438-4647
>"You can tune a file system, but you can't tune a fish." - tunefs(1M)
>
|