Home > AS/400 Tips > iSeries programmer tips > Connect the dots: Get your iSeries servers talking to one another
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES PROGRAMMER TIPS

Connect the dots: Get your iSeries servers talking to one another


Andrew Borts
02.09.2005
Rating: -4.66- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


More Information

So, you have two iSeries or AS/400 servers (or more) and you need to transfer boatloads of information between the two systems. We have these cool-looking tape drives, but good luck separating your operator from one of those expensive cartridges to transfer programs and data to the second iSeries. Normally the iSeries servers are within a network -- usually a DARN FAST ONE -- so who needs a tape when you can transfer information in seconds between your two systems. It's probably faster then it normally takes to simply format the tape.

Here's how we approach this problem:

  1. Create a save file SOMEPLACE
  2. Save your stuff to the save file
  3. FTP (as long as this server is on) the file to the second iSeries using a Binary Transfer
  4. Restore your stuff

Wow, that sounds like a lot of work. What if I told you since OS/400 Version 3.1 we've had some FREE tools built in to the 400 that do EXACTLY THAT? Where are those tools? In the Opti-Connect product.

Unfortunately, IBM doesn't make the installation of free tools that easy. Here's what you need to do:

Make sure the two servers are communicating using SNA methodologies. WAIT -- we're communicating using TCP/IP. What do we do? First, Anynet support NEEDS to be functioning.

What you need to do is gather information, so perform a DSPNETA (type DSPNETA and ENTER on a command line) on your SOURCE iSeries.

Now do the SAME thing on the corresponding iSeries.

Then perform the following:
CFGTCP[enter] Option 10 ("Work with TCP/IP host table entries") [ENTER]

Now add the following entry to the Host Table for the REMOTE system.

Host Name = Remote Host Name
RMTNETID = Remote Network ID
So -- that would look like this:

Create one on the server you're CURRENTLY SIGNED ON TO pointing at the REMOTE server.

The SNA.IBM.COM is required for the Anynet connection. (This is hard coded. DON'T GET CREATIVE!)

Next, create a Controller for ANYNET…CRTCTLAPPC and hit Enter.

THIS WILL GO ON BOTH SYSTEMS -- EXACTLY THE SAME AS THIS

Now the fun bits:

Type WRKCFGL and hit Enter.

Then

The REMOTE location stuff is FROM THE REMOTE DSPNETA. To verify if this is functioning properly, do the following:

Vary ON the APPC controller you've created

VRYCFG CFGOBJ(ANYNET01) CFGTYPE(*CTL) STATUS(*ON)

and verify that it's on.

NETSTAT option 3, look for APPCove -- or Port 397.

OK, Anynet is there. Now what?

WRKMODD QSOCCT (mode for Object Connect) and hit Enter.

Then perform the following command:

ADDCMNE SBSD(QCM) DEV(*ALL) DFTUSR(QUSER) MODE (QSOCCT)

Make sure the QCMN Subsystem is started, then Start the mode description for Object Connect.

STRMOD RMTLOCNAME(target) MODE(QSOCCT) LCLLOCNAME(*NETATR) RMTNETID(*NETATR)

Where TARGET name = the name of the target system

Are you exhausted? When you're done you'll get the following commands:

SAVRST -- IFS Save & Restore onto the remote system
SAVRSTOBJ -- Save Restore Objects
SAVRSTLIB -- Save Restore Library
SAVRSTCFG -- Save Restore Configuration
SAVRSTDLO -- Save Restore Document Library Objects
SAVRSTCHG -- Save Restore CHANGED Objects…

It's cool and lazy!

-----------------------------------------
About the author: Andrew Borts is webmaster at United Auto Insurance Group in North Miami, Fla. He is often a frequent speaker at COMMON and is past president of The Southern National Users Group, an iSeries-AS/400 user group based in Deerfield Beach, Fla.


Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
iSeries programmer tips
Enhancing RPG with external SQL stored procedures
Tracking data changes on IBM i with triggers
Introduction to SQLRPGLE on IBM i: Making a report
Implementing a browser interface in COBOL: Displaying database fields
Taking advantage of CL advancements, starting with V5R3
TAATOOL: Useful tools for programmers on IBM i
Implementing a browser interface in COBOL: Creating your graphic Web page
Implementing a browser interface in COBOL: Getting started
Making the most of RPG data handling on IBM i
Groovy programming on IBM i

Remote Access to iSeries
Tracking remote access users on System i
Controlling remote access on your IBM i
Remove character limits from domain or users on RMTUSER
Use a virtual directory to move a .bmp file from the IFS to a remote server to run a software package
Displaying an image from the AS/400 on a PC, troubleshooting
Running a job on the iSeries after it has been transferred to a PC
SQL7008 error in iSeries Access and journals
Telnet connection repeatedly closes
Users unable to sign off of AS/400
How to: Transfer unlimited data to Excel from AS/400
Remote Access to iSeries Research

Past Releases
iSeries i5/OS: Top 10 Q&As
iSeries i5/OS: Top 10 Q&As
Error message within the printer file
How often are message queues cleared?
Embedding SQL into RPG LE programs
In search of a table that shows system & O/S release compatibility
V5R3 view disk IOA cache battery expiration
New option within the WRKSYSACT command
See the users with *change or *all authority
Copy a spoolfile (report) into the IFS as a .txt file

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
AS/400  (Search400.com)
i5/OS  (Search400.com)
iSeries  (Search400.com)
OS/400  (Search400.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



iSeries Security - Security Tools, Physical Security and System Security
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts