MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FTP setup process

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics
View previous topic :: View next topic  
Author Message
sandy
Beginner


Joined: 08 Dec 2005
Posts: 2
Topics: 1

PostPosted: Thu Dec 08, 2005 12:06 pm    Post subject: FTP setup process Reply with quote

I am dealing with requirement that server belongs to other part of company business located in other part of region , send the data to MF shop in term of flat files.

Process at our end looks like we need to create FTP ports at both ends.

1. During this process we are supplying information about dataset name.
Can anybody inform about while doing ftp setup on mf why would it require dataset name.

2. Even after such setup is done, In case of problems how can the sender identify whether access is not possible because of internal network firewall issues or firewall issues at hosting environment.

How can we test such firewall issues?
Back to top
View user's profile Send private message
Ravi
Beginner


Joined: 27 Jun 2005
Posts: 88
Topics: 2

PostPosted: Thu Dec 08, 2005 5:34 pm    Post subject: Reply with quote

1. If you are FTPing to a MF system, then it has to know the destination where it has to be placed. Mainframes needs a dataset name and it has some naming conventions or speficitaions. If the file name being FTPed is like a.txt and after connecting to mainframes directly if we use PUT a.txt then a dataset will be created with the userid you have logged into mainframes and the name of the dataset in Mainframes will be userid.a.txt with default lengths(Can be LRECL=80 or LRECL=133 or something else. Its site specific). So the file has to be created with some specific name so that everyone can access. Generally(ofcourse site specific), the USERID.* files cannot be accessed by other userid. So it has to be a the High level qualifer (HLQ) will be a group identifier.

2. You can identify the FTP return code. When you are receiving or sending data there are few return codes which FTP gives. Like 220, 230, 150 etc..
Code:

220 my.server.com FTP server (Version wu-2.6.2+Sun) ready.
EZA1701I >>> USER myftp
331 Password required for myftp.
EZA1789I PASSWORD:
EZA1701I >>> PASS
230 User myftp logged in.
EZA1460I Command:
EZA1736I put a.txt +
EZA1736I    'HLQ.MLQ.LLQ'  (REPLACE
EZA1701I >>> PORT 1,2,3,4,5,6
200 PORT command successful.
EZA1701I >>> RETR A.TXT
150 Opening ASCII mode data connection for A.TXT (106 bytes).
226 Transfer complete.


Just wanted to know from which server (unix or mf or what)you are trying to FTP to MF server.

They are the FTP Protocal return codes. You can check them 'http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B910/CCONTENTS'.


Hope this helps.
Back to top
View user's profile Send private message
sandy
Beginner


Joined: 08 Dec 2005
Posts: 2
Topics: 1

PostPosted: Fri Dec 09, 2005 10:46 am    Post subject: FTP process Reply with quote

Thanks for the reply.

I am talking about set-up process that takes place prior to one actually successfully does ftp to-from mf.

It will be clear that while dataset names will be required for security purpose so that id's write access can be tied to dataset.

Can anybody give more information on how firewall rules can they be tested. One can ping the ip address associated with mf-box, however how to categorize problems due to internal n/w firewall rules vs problems due to some other factors outside local network.

anybody with networking expertise in this group ??
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Fri Dec 09, 2005 1:29 pm    Post subject: Reply with quote

I'm not clear on what you are looking for, but from an external machine you can always run a port scanner like nmap to see if ports are available. FTP is actually a difficult protocol to set up firewall rules for because several ports need to be opened and you need to configure the server for PASV support to so that the server can specify the port, tell the client and have the client establish a connection to that dynamic port. This is not specific to z/OS, just to FTP in general. Actually, if you are not using secure FTP (encrypted FTP), then talking about FTP and security at the same time is a little pointless since FTP data including passwords are sent in clear text. Look into secure FTP (certificate based FTP supported by z/OS comm server) or another protocol like sftp or scp.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group