Login    Register    Friday, September 10, 2010      Search  
 Printmonkey Forums
Minimize
 
  Forum  Software  Infoprint Workf...  Customize IPM with a script
Disabled Previous
 
Next Disabled
New Post 10/14/2009 12:22 AM
User is offline Jeff Bolduc
1 posts
No Ranking


Customize IPM with a script 
Modified By Jeff Bolduc  on 10/14/2009 12:24:26 AM)

We are replacing IPM with another software product, but it would be a shame to let all of this good stuff go to waste.  If you are interested in any good health monitoring scripts written in Korn, let me know

Our IPM for AIX software was customized by IBM using the GUI.  By customized, I mean the Actual Destinations (ADs), Logical Destinations (LDs), Queues, etc.  Several years later we wanted to use IPM in a Disaster Recovery exercise.  I was asked to create a copy of the Production server.  I could have used the GUI, but found it difficult to document.  The solution was to create a script to create the ADs, LDs, Queues, etc.

Start by getting the attributes for all of the pd objects in use.  Use the pdls command.  Read th Man page for pdls to get started (man pdls).  Use the -r archive flag to create attributes file you can use with the pdcreate command.
pdls -c queue pwm1ax03:
pdls -c queue -r archive pwm1ax03:Xerox > /files/pd_att/Xerox-q
pdls -c destination pwm1ax03:
pdls -c destination -r archive pwm1ax03:DP135 > /files/pd_att/DP135-ad
pdls -c destination -r archive pwm1ax03:DT6115 > /files/pd_att/DT6115-ad
pdls -c destination -r archive pwm1ax03:lex > /files/pd_att/lex-ad
pdls -c destination -r archive pwm1ax03:std-ld > /files/pd_att/std-ld
pdls -c initial-value-job pwm1ax03:
pdls -c initial-value-job -r archive pwm1ax03:std-ld-dj > /files/pd_att/std-ld-dj
pdls -c initial-value-document pwm1ax03:
pdls -c initial-value-document -r archive pwm1ax03:i2000afp-dd > /files/pd_att/i2000afp-dd
pdls -c auxiliary-sheet pwm1ax03:
pdls -c auxiliary-sheet -r archive pwm1ax03:PICKBIN4 > /files/pd_att/PICKBIN4

Now edit any of the attribute files as neccessary.  Like we will rename DP135 to Ben and DT6115 to Jerry and PICBIN4 to StartSheetBin2
Copy the attribute files to the new server and create 1 script with all of the pdcreate commands

You will find the following script on pwm1axp1/files/scripts/pd_att/PortlandCreateObjects
pdcreate -c queue                                                           $1:Portland-q
pdcreate -c initial-value-document -X /scripts/pd_att/Portland-ld-dd        $1:Portland-ld-dd
pdcreate -c initial-value-job      -X /scripts/pd_att/Portland-ld-dj        $1:Portland-ld-dj
pdcreate -c destination            -X /scripts/pd_att/Portland-ld           $1:Portland-ld
pdcreate -c destination            -X /scripts/pd_att/Portland-ld-HotFolder $1:Portland-ld-HotFolder
pdcreate -c auxiliary-sheet        -X /scripts/pd_att/PortlandBin2-aux      $1:PortlandBin2-aux
pdcreate -c destination            -X /scripts/pd_att/PortlandBen-ad        $1:Ben
pdcreate -c destination            -X /scripts/pd_att/PortlandJerry-ad      $1:Jerry

 
New Post 10/15/2009 12:04 PM
User is offline Mike Gatiss
26 posts
No Ranking




Re: Customize IPM with a script 

 Cheers for the post Jeff, I'd definitely be interested in the health monitoring scripts :-)

Out of curiosity what are you replacing IPM with?

 
Disabled Previous
 
Next Disabled
  Forum  Software  Infoprint Workf...  Customize IPM with a script
    Home Forums Blog About Us
© Copyright 2009 Mike Gatiss    Privacy Statement   
Downloaded from DNNSkins.com