Difference between revisions of "Image Catalog"

From MidrangeWiki
Jump to: navigation, search
m (+cat Category:Virtual Optical; chg cat alpha sort Category:PTF)
m (some minor readability formatting)
Line 18: Line 18:
  
 
At this point you will need to copy the images to the catalog folder using one of the following methods:  
 
At this point you will need to copy the images to the catalog folder using one of the following methods:  
# If you downloaded the images using the FTP commands sent to you when you ordered your PTF's (online) you will use the following command for each .bin (binary) file in the folder. It will �register� the existing bin file to the image catalog. This will save space by using only one copy of the image (the <code>TOFILE(*FROMFILE)</code> parameter will do this IF the folder referenced in the <code>FROMFILE</code> is the same folder as identified in the DIR parameter in the <code>[[CRTIMGCLG]]</code> command) :<code>[[ADDIMGCLGE]] IMGCLG(PTFCATALOG) FROMFILE('/fixes/TheFtp.binFileNameHere') TOFILE(*FROMFILE) REPLACE(*INSERT)</code>
+
* If you downloaded the images using the FTP commands sent to you when you ordered your PTF's (online) you will use the following command for each .bin (binary) file in the folder.
# If you are copying the CD image to the catalog, use the following command: <code>[[ADDIMGCLGE]] IMGCLG(YourImageCatalogNameHere) FROMDEV(YourOpticalDevice NameHere)</code>
+
**:<code>[[ADDIMGCLGE]] IMGCLG(PTFCATALOG) FROMFILE('/fixes/TheFtp.binFileNameHere') TOFILE(*FROMFILE) REPLACE(*INSERT)</code>
'Load' the image catalog into your virtual drive: <code>[[LODIMGCLG]] IMGCLG(PTFCATALOG) DEV(OPTVRT01)</code>
+
**It will �register� the existing bin file to the image catalog.  
Verify that all is well with the loaded catalog: <code>[[VFYIMGCLG]] IMGCLG(PTFCATALOG) TYPE(*PTF) SORT(*YES)</code>
+
**This will save space by using only one copy of the image  
Work with the contents of the image catalog (if you need to change something � like the order of the images)
+
**(the <code>TOFILE(*FROMFILE)</code> parameter will do this IF the folder referenced in the <code>FROMFILE</code> is the same folder as identified in the DIR parameter in the <code>[[CRTIMGCLG]]</code> command)  
<code>[[WRKIMGCLGE]] PTFCATALOG</code>
+
 
 +
* If you are copying the CD image to the catalog, use the following command:  
 +
**<code>[[ADDIMGCLGE]] IMGCLG(YourImageCatalogNameHere) FROMDEV(YourOpticalDevice NameHere)</code>
 +
**'Load' the image catalog into your virtual drive: <code>[[LODIMGCLG]] IMGCLG(PTFCATALOG) DEV(OPTVRT01)</code>
 +
**Verify that all is well with the loaded catalog: <code>[[VFYIMGCLG]] IMGCLG(PTFCATALOG) TYPE(*PTF) SORT(*YES)</code>
 +
**Work with the contents of the image catalog <code>[[WRKIMGCLGE]] PTFCATALOG</code> (if you need to change something � like the order of the images)
  
 
Run your [[PTF]] option as follows, using the [[Virtual Optical drive]] ...
 
Run your [[PTF]] option as follows, using the [[Virtual Optical drive]] ...
  
# <code>[[GO]] PTF</code>
+
* <code>[[GO]] PTF</code>
# option 8 (Install program temporary fix package)
+
* option 8 (Install program temporary fix package)
 
<pre>
 
<pre>
 
                 Install Options for Program Temporary Fixes  
 
                 Install Options for Program Temporary Fixes  

Revision as of 00:03, 3 June 2008

Building an image catalog on the iSeries (thanks to Rob Berendt at Group Dekko Services, LLC for all the pointers) Create a virtual optical device to be used to �contain� the image catalog (you'll need to do this only once):

CRTDEVOPT DEVD(OPTVRT01) RSRCNAME(*VRT) ONLINE(*YES) TEXT('Virtual optical drive for image catalog')

Make the drive available (after you create it the first time only):

VRYCFG CFGOBJ(OPTVRT01) CFGTYPE(*DEV) STATUS(*ON)

Create the image catalog to copy the images to:

CRTIMGCLG IMGCLG(PTFCATALOG) DIR('/fixes') TEXT('PTF image catalog')

Note: You have to either create the directory first OR use the CRTDIR(*YES) option when you create the image catalog.

At this point you will need to copy the images to the catalog folder using one of the following methods:

  • If you downloaded the images using the FTP commands sent to you when you ordered your PTF's (online) you will use the following command for each .bin (binary) file in the folder.
    • ADDIMGCLGE IMGCLG(PTFCATALOG) FROMFILE('/fixes/TheFtp.binFileNameHere') TOFILE(*FROMFILE) REPLACE(*INSERT)
    • It will �register� the existing bin file to the image catalog.
    • This will save space by using only one copy of the image
    • (the TOFILE(*FROMFILE) parameter will do this IF the folder referenced in the FROMFILE is the same folder as identified in the DIR parameter in the CRTIMGCLG command)
  • If you are copying the CD image to the catalog, use the following command:
    • ADDIMGCLGE IMGCLG(YourImageCatalogNameHere) FROMDEV(YourOpticalDevice NameHere)
    • 'Load' the image catalog into your virtual drive: LODIMGCLG IMGCLG(PTFCATALOG) DEV(OPTVRT01)
    • Verify that all is well with the loaded catalog: VFYIMGCLG IMGCLG(PTFCATALOG) TYPE(*PTF) SORT(*YES)
    • Work with the contents of the image catalog WRKIMGCLGE PTFCATALOG (if you need to change something � like the order of the images)

Run your PTF option as follows, using the Virtual Optical drive ...

  • GO PTF
  • option 8 (Install program temporary fix package)
                 Install Options for Program Temporary Fixes 
                                                         System:   GDI 

Type choices, press Enter.

 
  Device  . . . . . . . . .   OPTVRT01     Name, *SERVICE 
 
  Automatic IPL . . . . . .   N            Y=Yes 
                                           N=No

You can load as many image catalogs as you want (as space permits) so that you could create a series of image catalogs for sequential loading as follows: Create the directories for the image catalog:

md '/fixes' 
md '/fixes/cume' 
md '/fixes/SF99529' 
md '/fixes/SF99269'

Create the image catalogs:

CRTIMGCLG IMGCLG(CUME) DIR('/fixes/cume') 
CRTIMGCLG IMGCLG(SF99529) DIR('/fixes/SF99529') 
CRTIMGCLG IMGCLG(SF99269) DIR('/fixes/SF99269' ...

Add image catalog entries for each as listed above.

Then you just run multiple ...

  • LODIMGCLG IMGCLG(CUME) DEV(OPTVRT01) OPTION(*LOAD)
  • GO PTF
  • Option 8
  • no ipl
  • LODIMGCLG IMGCLG(CUME) DEV(OPTVRT01) OPTION(*UNLOAD)
  • LODIMGCLG IMGCLG(SF99529) DEV(OPTVRT01) OPTION(*LOAD)
  • GO PTF
  • Option 8
  • no ipl
  • LODIMGCLG IMGCLG(SF99529) DEV(OPTVRT01) OPTION(*UNLOAD)

... And so on.

Categories