Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mercator .netrc

Status
Not open for further replies.

mjnaaktgeboren

Technical User
Jun 22, 2004
21
0
0
US
Is there any way to use .netrc with internal mercator ftp? It pulls as a url, so it appears to go through the http vs the ftp engine.....
 
Don't think so, FTP adapter is pretty generic, to work with as many FTP servers as possible.


BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
So it won't work with netrc then? I would think that if it's generic FTP then it sould look for it, especially since the trace looks like normal ftp. Could it be that it does not get the $HOME environment variable?
 
I would have to see both the FTP command line and the verbose trace. -tv

What version of the product are you using and what FTP server on what platform are you connecting to?

Basically, if you go to the command line and do a simple FTP hostname type FTP, we should be able to do the same unless you use some more complex commands. If you can do the FTP your require from the command line, you can save the session into a command file and run the command file from a batch or shell adapter and then be able to do some FTP options the adapter does not support.



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
merc ver 6.7.1 on hpux 11i
From what I read on netrc you have to be sure $HOME is set.

I modified hostnames/ips/emails for sec reasons, but here is the output from command line, and mercator. It's simply not picking up the .netrc file. I have a default statement for all ftps not in the list that it does not pick up.

Commandline FTP:

mercator:eek:urhost# ftp -tv 100.100.100.100
Connected to 100.100.100.100.
220 ftp.theftpserver.com FTP server ready.
331 Password required for xferacct.
230- NOTICE: This is a private FTP server. AUTHORIZED USERS ONLY!!!
230-
230- All transactions are logged.
230- If you do not like this policy, LOG OFF NOW!
230- ------------
230-
230- If your FTP client crashes or hangs shortly after login please try
230- using a dash (-) as the first character of your password. This will
230- turn off the informational messages that may be confusing your FTP
230- client.
230-
230- If you experience any problems or have suggestions,
230- please contact : xxxxxxxxxxx@xxxxxxx.com
230-
230- You are 3i7e9a5l.ourdomain.com ! It is Thu Jul 15 11:39:07 2004 local ti.
230-
230 User xferacct logged in. Access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>





.netrc
account line for 100.100.100.100
machine 100.100.100.100 login xferacct password xferpass
default login anonymous password ediemailuser@ourdomain.com



ftp trace for 100.100.100.100


Mercator FTP Adapter, Version 6.7(306_1tip_230903)
Copyright © 1998-2000, TSI International Software, DBA Mercator Software
Built for HPUX11 on May 6 2004 at 14:48:38 by rbrooks.
Retry Count is 10. Retry Interval is 5. OnFailure is Rollback.
Fetch Unit is 0. Card Mode is Integral.
Run Started at 09:33:21.947 on 07/15/04.
Options used: trace,verbose,name,url
URL FTP://100.100.100.100/get_CHR_hourly.lis;type=A will be used.
Sockets Client ID 1 enabled.
URL user: 'anonymous'.
URL pass: '**************'.
URL host: '100.100.100.100'.
URL port: '21'.
URL path: 'get_CHR_hourly.lis'.
URL type: 'A'.
Using ftp: protocol.
Server host is '100.100.100.100'.
Using port '21' for the connection.
Connecting to '100.100.100.100'.
Checking user port 21.
Service: 'ftp'.
Port: 21.
Protocol: 'tcp'.
Socket Opened.
Connected.
>220 ftp.theftpserver.com FTP server ready. (S)
<USER anonymous

>530 Anonymous FTP access denied. (F)
<REIN

>502 REIN command not implemented. (F)
<QUIT

>221 Goodbye. (S)
Socket Closed.
Connection closed.
Sockets Client ID 1 disabled.
Attempt #1 failed, will retry after 5 second delay.
Sockets Client ID 1 enabled.
URL user: 'anonymous'.
URL pass: '**************'.
URL host: '100.100.100.100'.
URL port: '21'.
URL path: 'get_CHR_hourly.lis'.
URL type: 'A'.
Using ftp: protocol.
Server host is '100.100.100.100'.
Using port '21' for the connection.
Connecting to '100.100.100.100'.
Checking user port 21.
Service: 'ftp'.
Port: 21.
Protocol: 'tcp'.
Socket Opened.
Connected.
>220 ftp.theftpserver.com FTP server ready. (S)
<USER anonymous

>530 Anonymous FTP access denied. (F)
<REIN

>502 REIN command not implemented. (F)
<QUIT

>221 Goodbye. (S)
Socket Closed.
Connection closed.
Sockets Client ID 1 disabled.
Attempt #2 failed, will retry after 5 second delay.
Sockets Client ID 1 enabled.
URL user: 'anonymous'.
URL pass: '**************'.
URL host: '100.100.100.100'.
URL port: '21'.
URL path: 'get_CHR_hourly.lis'.
URL type: 'A'.
Using ftp: protocol.
Server host is '100.100.100.100'.
Using port '21' for the connection.
Connecting to '100.100.100.100'.
Checking user port 21.
Service: 'ftp'.
Port: 21.
Protocol: 'tcp'.
Socket Opened.
Connected.
>220 ftp.theftpserver.com FTP server ready. (S)
<USER anonymous

>530 Anonymous FTP access denied. (F)
<REIN

>502 REIN command not implemented. (F)
<QUIT

>221 Goodbye. (S)
Socket Closed.
Connection closed.
Sockets Client ID 1 disabled.
Attempt #3 failed, will retry after 5 second delay.
Sockets Client ID 1 enabled.
URL user: 'anonymous'.
URL pass: '**************'.
URL host: '100.100.100.100'.
URL port: '21'.
URL path: 'get_CHR_hourly.lis'.
URL type: 'A'.
Using ftp: protocol.
Server host is '100.100.100.100'.
Using port '21' for the connection.
Connecting to '100.100.100.100'.
Checking user port 21.
Service: 'ftp'.
Port: 21.
Protocol: 'tcp'.
Socket Opened.
Connected.
>220 ftp.theftpserver.com FTP server ready. (S)
<USER anonymous

>530 Anonymous FTP access denied. (F)
<REIN

>502 REIN command not implemented. (F)
<QUIT

>221 Goodbye. (S)
Socket Closed.
Connection closed.
Sockets Client ID 1 disabled.
Attempt #4 failed, will retry after 5 second delay.
Sockets Client ID 1 enabled.
URL user: 'anonymous'.
URL pass: '**************'.
URL host: '100.100.100.100'.
URL port: '21'.
URL path: 'get_CHR_hourly.lis'.
URL type: 'A'.
Using ftp: protocol.
Server host is '100.100.100.100'.
Using port '21' for the connection.
Connecting to '100.100.100.100'.
Checking user port 21.
Service: 'ftp'.
Port: 21.
Protocol: 'tcp'.
Socket Opened.
Connected.
>220 ftp.theftpserver.com FTP server ready. (S)
<USER anonymous

>530 Anonymous FTP access denied. (F)
<REIN

>502 REIN command not implemented. (F)
<QUIT

>221 Goodbye. (S)
Socket Closed.
Connection closed.
Sockets Client ID 1 disabled.
Attempt #5 failed, will retry after 5 second delay.
Sockets Client ID 1 enabled.
URL user: 'anonymous'.
URL pass: '**************'.
URL host: '100.100.100.100'.
URL port: '21'.
URL path: 'get_CHR_hourly.lis'.
URL type: 'A'.
Using ftp: protocol.
Server host is '100.100.100.100'.
Using port '21' for the connection.
Connecting to '100.100.100.100'.
Checking user port 21.
Service: 'ftp'.
Port: 21.
Protocol: 'tcp'.
Socket Opened.
Connected.
>220 ftp.theftpserver.com FTP server ready. (S)
<USER anonymous

>530 Anonymous FTP access denied. (F)
<REIN

>502 REIN command not implemented. (F)
<QUIT

>221 Goodbye. (S)
Socket Closed.
Connection closed.
Sockets Client ID 1 disabled.
Attempt #6 failed, will retry after 5 second delay.
Sockets Client ID 1 enabled.
URL user: 'anonymous'.
URL pass: '**************'.
URL host: '100.100.100.100'.
URL port: '21'.
URL path: 'get_CHR_hourly.lis'.
URL type: 'A'.
Using ftp: protocol.
Server host is '100.100.100.100'.
Using port '21' for the connection.
Connecting to '100.100.100.100'.
Checking user port 21.
Service: 'ftp'.
Port: 21.
Protocol: 'tcp'.
Socket Opened.
Connected.
>220 ftp.theftpserver.com FTP server ready. (S)
<USER anonymous

>530 Anonymous FTP access denied. (F)
<REIN

>502 REIN command not implemented. (F)
<QUIT

>221 Goodbye. (S)
Socket Closed.
Connection closed.
Sockets Client ID 1 disabled.
Attempt #7 failed, will retry after 5 second delay.
Sockets Client ID 1 enabled.
URL user: 'anonymous'.
URL pass: '**************'.
URL host: '100.100.100.100'.
URL port: '21'.
URL path: 'get_CHR_hourly.lis'.
URL type: 'A'.
Using ftp: protocol.
Server host is '100.100.100.100'.
Using port '21' for the connection.
Connecting to '100.100.100.100'.
Checking user port 21.
Service: 'ftp'.
Port: 21.
Protocol: 'tcp'.
Socket Opened.
Connected.
>220 ftp.theftpserver.com FTP server ready. (S)
<USER anonymous

>530 Anonymous FTP access denied. (F)
<REIN

>502 REIN command not implemented. (F)
<QUIT

>221 Goodbye. (S)
Socket Closed.
Connection closed.
Sockets Client ID 1 disabled.
Attempt #8 failed, will retry after 5 second delay.
Sockets Client ID 1 enabled.
URL user: 'anonymous'.
URL pass: '**************'.
URL host: '100.100.100.100'.
URL port: '21'.
URL path: 'get_CHR_hourly.lis'.
URL type: 'A'.
Using ftp: protocol.
Server host is '100.100.100.100'.
Using port '21' for the connection.
Connecting to '100.100.100.100'.
Checking user port 21.
Service: 'ftp'.
Port: 21.
Protocol: 'tcp'.
Socket Opened.
Connected.
>220 ftp.theftpserver.com FTP server ready. (S)
<USER anonymous

>530 Anonymous FTP access denied. (F)
<REIN

>502 REIN command not implemented. (F)
<QUIT

>221 Goodbye. (S)
Socket Closed.
Connection closed.
Sockets Client ID 1 disabled.
Attempt #9 failed, will retry after 5 second delay.
Sockets Client ID 1 enabled.
URL user: 'anonymous'.
URL pass: '**************'.
URL host: '100.100.100.100'.
URL port: '21'.
URL path: 'get_CHR_hourly.lis'.
URL type: 'A'.
Using ftp: protocol.
Server host is '100.100.100.100'.
Using port '21' for the connection.
Connecting to '100.100.100.100'.
Checking user port 21.
Service: 'ftp'.
Port: 21.
Protocol: 'tcp'.
Socket Opened.
Connected.
>220 ftp.theftpserver.com FTP server ready. (S)
<USER anonymous

>530 Anonymous FTP access denied. (F)
<REIN

>502 REIN command not implemented. (F)
<QUIT

>221 Goodbye. (S)
Socket Closed.
Connection closed.
Sockets Client ID 1 disabled.
Attempt #10 failed, no more retries allowed.
Run Terminated at 09:34:16.305 on 07/15/04.

 
I didn't need all the retries :) just one was enough, We don't use anything other than what is being passed into the FTP command line and what seems to be there is the anon. log in. You might want to read in the .netrc file and pass the information to the command line in a RUN map over-ride.
We won't pick up the .netrc information any other way.

BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
It is the anon login, but it's a different password.
Thanks, I will look into the RUN Map override.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top