fhg
Volume 12, Number 9 -- April 11, 2012

What Happened to My QFileSvr.400 Connection?

Published: April 11, 2012

Hey, Joe:

I set up a QFileSvr.400 connection for accessing AS/400 Integrated File Systems (AS/400 IFS) objects on another IBM i machine. I use it several times a month to transfer files. All of a sudden, the connection stopped working and I have no clue why. Do you have any idea what could happened and how I can fix it?

--Bob


As I've written before, I love using QFileSvr.400 for accessing, modifying, and copying or moving files between two IBM i systems (Power i, System i, and iSeries). A QFileSvr.400 link is incredibly easy to set up. All you have to do is run the following Make Directory (MKDIR) command on your local system to set up an AS/400 IFS link to another IBM i system's AS/400 IFS.

MD DIR ('/QFileSvr.400/remote system')

Where remote system equals either the TCP/IP host name of a remote IBM i partition (don't use a TCP/IP address) or the SNA name for another partition (if you're still using SNA).

And this works great for accessing the other system's IFS objects as if they were on your system. There are a few other rules for accessing a remote system through QFileSvr.400 that I wrote about in another tip, but this is pretty much all there is to it.

However, your experience with losing your QFileSvr.400 link is very common. Here's my list of things to check when a QFileSvr.400 link stops working.

First, understand that whenever you IPL an IBM i system, all QFileSvr.400 links to remote systems will automatically disappear. This is because QFileSvr.400 remote system links are considered first-level directories. A first-level directory represents the root (/) of the target AS/400 IFS file system you're trying to access. In the i and i5/OS operating systems, a QFileSvr.400 system link is considered a first-level directory.

The problem with first-level directories is that they are not persistent across IPLs. It seems like they should be, but they aren't. So they disappear after an IPL, which can be a real hassle, particularly if you set up an automated job that connects to a remote system it can no longer reach.

Fortunately, QFileSvr.400 links are easy to recreate after an IPL. All you have to do is perform the following steps:

  1. Run the Make Directory command to reinstall the QFileSvr.400 link to your remote system, so you can use the link again.
  2. Put the Make Directory command you used to create the link into your system startup program, as defined in the Startup Program (QSTRUPPGM) system value. Once the command is in your startup program, the system will recreate your remote system's QFileSvr.400 link each time it IPLs.

So if you IPLed your system since the last time you used this link, performing these steps will probably solve your problem.

If recreating the link doesn't solve your problem, check to see whether the QSERVER subsystem is running. The operating system can only connect to a target QFileSvr.400 link if QSERVER is active. Within QSERVER, the QPWFSERVSO or QPWFSERVSD prestart jobs take control of the QFileSvr.400 connections, so also check to see if these jobs are running in QSERVER.

If QPWFSERVSO or QPWFSERVSD aren't running, they can be restarted by running the following Start Host Server (STRHOSTSVR) command, which starts the host server file server daemons on the system.

STRHOSTSVR SERVER(*FILE)

The last thing to check is whether the remote system name attached to your QFileSvr.400 link is reachable from your system. It could be that the DNS server entry for your remote system was removed or that the remote system's Host Table entry got deleted. Use the following Verify TCP/IP Connection (PING) command to see whether the remote system is reachable.

PING RMTSYS(remote system)

This will tell you whether the system is reachable. If it isn't reachable by ping, it may even be that the remote system isn't currently active.

Between all these checks, hopefully you'll be able to figure out what your connection problem is.

Note: Bob later wrote back to say the QFileSvr.400 link for his remote system disappeared after an IPL. He recreated the link and modified his system startup program to add the link back every time the system was IPLed.

---Joe


Follow Joe Hertvik on His Blog, on Twitter, and on LinkedIn

Check out Joe's blog at joehertvik.com, where he focuses on computer administration and news (especially IBM i); vendor, marketing, and tech writing news and materials; and whatever else he come across.

You can also follow Joe on Twitter @JoeHertvik and on LinkedIn.


Joe Hertvik is the owner of Hertvik Business Services, a service company that provides written marketing content and presentation services for the computer industry, including white papers, case studies, and other marketing material. Email Joe for a free quote for any upcoming projects. He also runs a data center for two companies outside Chicago. Joe is a contributing editor for IT Jungle and has written the Admin Alert column since 2002.


RELATED STORY

Why Can't I Access My Remote System's AS/400 IFS?



                     Post this story to del.icio.us
               Post this story to Digg
    Post this story to Slashdot


Sponsored By
CNX

Don't screen scrape your way to the web...
Give your IBM i a true Web 2.0 Interface!

Valence offers RPG Programmers a genuine Web 2.0 solution
for IBM i, combining simple ILE RPG procedures with a powerful
JavaScript-based framework for the browser.

New Features in just-released Valence 3.1:
Nitro File Editor: View/edit/download IBM i database files, right inside your browser
Nitro App Builder: Create dashboard & query apps fast - no programming required

See video demos of Valence in action
and download the Community Edition for FREE!


Senior Technical Editor: Ted Holt
Technical Editor: Joe Hertvik
Contributing Technical Editors: Edwin Earley, Brian Kelly, Michael Sansoterra
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.

Sponsored Links

Abacus Solutions:  More affordable and flexible alternatives to deliver secondary workloads
PowerTech:  Get PowerTech's PCI Compliance Kit to learn how PCI DSS applies to IBM i servers
COMMON:  Join us at the 2012 Conference & Expo, May 6 - 9 in Anaheim, CA


 

IT Jungle Store Top Book Picks

BACK IN STOCK: Easy Steps to Internet Programming for System i: List Price, $49.95

The iSeries Express Web Implementer's Guide: List Price, $49.95
The iSeries Pocket Database Guide: List Price, $59
The iSeries Pocket SQL Guide: List Price, $59
The iSeries Pocket WebFacing Primer: List Price, $39
Migrating to WebSphere Express for iSeries: List Price, $49
Getting Started with WebSphere Express for iSeries: List Price, $49
The All-Everything Operating System: List Price, $35
The Best Joomla! Tutorial Ever!: List Price, $19.95


 
The Four Hundred
Some Thoughts About IBM's Next Generation Platform

Dell Goes After IBM Mainframe And Midrange Apps

Checking For Cracks In The Technology Foundation

Mad Dog 21/21: Not Weather, Nor Whether But When

Maxava iFoundation Renews Grant Funding For Second Year

Four Hundred Stuff
Connectria Hosting Unveils an IBM i Cloud

Help/Systems Widens the Robot's Reach

ManageEngine Pushes the Systems Management Envelope

Hubspan Sees Growth in Cloud-Based Application Integration

SQL Conference Puts Spotlight on IBM i

Four Hundred Monitor
Four Hundred Monitor's
Full iSeries Events Calendar

System i PTF Guide
April 7, 2012: Volume 14, Number 14

March 24, 2012: Volume 14, Number 12

March 17, 2012: Volume 14, Number 11

March 10, 2012: Volume 14, Number 10

March 3, 2012: Volume 14, Number 9

February 25, 2012: Volume 14, Number 8

TPM at The Register
Red Hat clustered storage goes beta

Amazon's S3 object count kisses 1 trillion

Intel engineer turned chip spy pleads guilty

US job creation stalls in March

Gorging Dell crams Canadian legacy-app rebore outfit into cakehole

Oracle gives away updated Ops Center control freak

Fujitsu wins another big super deal in Japan

Dell guns for IBM mainframes with Clerity gobble

General Dynamics, HP fluff up $249.8m Army cloud

Nvidia: No magic compilers for HPC coprocessors

IBM's DB2 database update does time travel, gets graphic

Citrix champions CloudStack, throws OpenStack under a bus

THIS ISSUE SPONSORED BY:

SEQUEL Software
Help/Systems
CNX


Printer Friendly Version


TABLE OF CONTENTS
Index Advisor, Part 2

Interpreted CL Members, Take 2

What Happened to My QFileSvr.400 Connection?

Four Hundred Guru

BACK ISSUES




 
Subscription Information:
You can unsubscribe, change your email address, or sign up for any of IT Jungle's free e-newsletters through our Web site at http://www.itjungle.com/sub/subscribe.html.

Copyright © 1996-2012 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc., 50 Park Terrace East, Suite 8F, New York, NY 10034

Privacy Statement