Jul 02 2009
Access Windows, Unix and AS400 from AS400
Windows
Windows shares can be mounted on /QNTC filesystem. Create a folder is all needs to be done.
MKDIR '/QNTC/MY_SERVER'
Walk through remote directory:
WRKLNK '/QNTC/MY_SERVER'
IP address can also be used in place of the server name:
mkdir '/QNTC/IPADDR' wrklnk '/QNTC/IPADDR'
Note: Pay attention to Windows rights. It doesn’t seem to be fully compatible.
Active Directory can also be a problem in some cases.
AS400 and the Windows machine are supposed to be in the same WORKGROUP but it seems to work fine if they’re not
Unix
AS400 appropriate directory is /QOpenSys.
Export the shared folder with NFS (Network FileSystem) from the AIX server (or any Unix system that supports NFS). It has to be mountable by root.
MKDIR '/mnt/mountpoint' MOUNT TYPE(*NFS) MFS('SERVER_IP:/mydir') MNTOVRDIR('/mnt/mountpoint') WRKLNK /mnt/mountpoint
AS400
Same story again with /QFileSrv.400
I couldn’t make it work with the IP address. I had to create a static entry, the mountpoint next:
ADDTCPHTE INTNETADR('Remote_AS400_IP') HOSTNAME((AS400_hostname))
(Reachable from menu GO NETWORK -> TCP/IP Administration -> Configure TCP/IP -> Work with
TCP/IP host table entries -> Add) MKDIR '/QFileSvr.400/AS400_hostname'
To make the mount point persistant through IPLs (reboots), add the mkdir command to the startup program (QSTRUP).