Thursday, February 12, 2015

Fastest way to upload iso images to your IBM i

When you plan an upgrade for your IBM i, you need to upload the iso images of the new release  you have downloaded from IBM to your IBM i. The easiest way is to use a network share with Netserver, but the upload of 30 GB over a file share can be very slow. It is much faster to upload the images with FTP. In this tutorial i will show you how this works without the use of additional software:



Start the FTP server with "STRTCPSVR *FTP" on your IBM i if it is not already started.

Create a directory with "CRTDIR" to create a directory where you want to upload your images.

Create Directory IFS

In my example i have chosen "imgclg/V7R1" and the images to upload are stored on the local disk in my windows workstation "e:\v7r1\uploadiso".

Start the Windows FTP command line client  with "FTP System" Be sure to replace "System" with the name of your system ;-)

start FTP client Windows


Login to FTP with your IBM i credentials

Log in to IBM i FTP

Change the file transfer type to binary with the "bin" command.
Enter "prompt" to switch to non interactive mode. This will suppress the question whether you really want to upload for every file.
Change the current directory to your IBM i destination directory "/imgclg/v7r1" with "cd /imgclg/v7r1"
Upload all iso files with "mput e:\v7r1\uploadiso\*.iso"

put files to IBM i

The FTP client will post a status message for every file which was uploaded.

put files to IBM i

After the upload finished you can leave the ftp client with "quit" All images are now in the directory of your IBM i and you can add this images to an image catalog. If you need help have a look at my tutorial "Fill an IBM i image catalog with images with one API call"

On my machine the use of ftp is approximately 10 times faster then the upload using Netserver and a network share.

P.S. If you like this tutorial please share it on your favorite social network.

No comments:

Post a Comment

ad