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.64- (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
Eight steps for creating program documentation using AS/400 utilities
DAYSPAST CLLE program for AS/400: Compares object creation date with today's date
Coloring source lines with COBOL and using a shortcut from within PDM
Date calculation commands for AS/400
There is very little RPG on System i can't do: From RPG nay to RPG yay!
Using SQL on System i to color source code and inline comments
Controlling spool files with APIs
System i document management tips
Selective SPOOLFILE copy to CSV files and e-mail
System i Resume Building 101

Remote Access to iSeries
Users not recognized on iSeries when logged in from Windows 2000
Remote access from behind a SonicWall firewall
Setting up personal communications between iSeries and Windows via the internet
Using remote AS400 commands in a Windows environment
How to view AFP print spools remotely
How to make secure iSeries connections
PC/Windows connectivity: Top 10 expert Q&As
Take control of your iSeries network security -- Part 2
How to use NETSTAT to troubleshoot your iSeries network connections
Options when file names are longer 10 characters
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.

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

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




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