Find the IP address and FTP in AS/400 programs

55 pts.
Tags:
AS/400
FTP
IP address
I have dumps of AS/400 programs source code in text file (about 100 programs) and I need to find out where all we are using the servers (FTP command)/IP addresses in those programs. So, I want help in what all commands I should search in the source codes.
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 8  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • pdraebel
    First scan the source code for the Server Name and the Server's IP address. To check for FTP scan FTP and STRTCPFTP commands.
    7,545 pointsBadges:
    report
  • ToddN2000
    Easiest way is what pdraebel said. Just scan the source code looking for "FTP". If the connection is done using a CL / CLLE program you can also scan for RMTSYS.
    131,380 pointsBadges:
    report
  • Rajatgupta
    Thanks pdraebel and Toddn2000 for the reply. I will scan the codes for FTP, STRTCPFTP and RMTSYS. 

    Pdraebel - can you please tell me how can i scan the code for server name and server id address? 
    55 pointsBadges:
    report
  • ToddN2000
    If using PDM, go to source library. put a 25 in the opt then press F13 to fill for all members. Then in the find field type what you want to search for. You can change options to stop for edit, print list, and others.
    131,380 pointsBadges:
    report
  • Rajatgupta
    ToddN2000 - I do not have access to As400, I just have dumps. I need to find out what all servers are mentioned in the source codes. To say, I do not have a single idea on what all server names can be mentioned in the code. 

    this is my job to figure out those programs and server list.
    55 pointsBadges:
    report
  • ToddN2000
    Are all the programs in one dump file? What editor do you plan on using to search? If they are all in one file it may be tough as to determine when the program breaks. Can you provide some more details?
    131,380 pointsBadges:
    report
  • Rajatgupta
    Sure. Everything not in one file. One notepad file having source code for one program you can say. I am using scripts that will search all the files for those particular strings. There are thousands of programs.
    55 pointsBadges:
    report
  • TheRealRaven
    Be aware that you might not find all server names or addresses in the program source. Names/addresses may be held in external objects -- database files, data areas, etc. -- and passed in to the FTP commands in variables. Also, the namjes/addresses may be passed in in the scripts of FTP subcommands that the commands reference.

    Also note that the remote server names might only reference entries in the iSeries server hosts table. Hosts table names might be different from your site's DNS entries.
    34,320 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: