I'm writing this down as I'm going to need it at some point in the future :-)
So here's a Bash script to list the fixes available to me: -
list_fixes.sh
#!/bin/sh
for z in /store/BPM801/Fixes/*.zip
do
echo $z
Done
and one to list more detail about each fix: -
list_fix_detail.sh
#!/bin/sh
for z in /store/BPM801/Fixes/*.zip
do
unzip -c $z repository.xml | grep 'information name=' | sed 's/^.\{25\}//' | sed "s/'.*$//g"
done
and one to expand a list of fixes to a target directory structure: -
unpack_fixes.sh
#!/bin/sh
for z in /store/BPM801/Fixes/*.zip
do
unzip $z -d `echo $z | sed 's/^.\{20\}//' | sed 's/.zip//g'`
done
This is how we'd install a single fix: -
$ /opt/IBM/InstallationManager/eclipse/tools/imcl install 8.0.1.0-WS-BPMPC-IFPD44937 -repositories /tmp/BPM801Fixes/8.0.1.0-WS-BPM-IFJR44937 -installationDirectory /opt/IBM/WebSphere/AppServer/
Installed 8.0.1.0-WS-BPMPC-IFPD44937_8.0.1000.20121203_1006 to the /opt/IBM/WebSphere/AppServer directory.
and here's a script to install a whole bunch of fixes: -
#!/bin/sh
for z in /store/BPM801/Fixes/*.zip
do
echo $z
Done
and one to list more detail about each fix: -
list_fix_detail.sh
#!/bin/sh
for z in /store/BPM801/Fixes/*.zip
do
unzip -c $z repository.xml | grep 'information name=' | sed 's/^.\{25\}//' | sed "s/'.*$//g"
done
and one to expand a list of fixes to a target directory structure: -
unpack_fixes.sh
#!/bin/sh
for z in /store/BPM801/Fixes/*.zip
do
unzip $z -d `echo $z | sed 's/^.\{20\}//' | sed 's/.zip//g'`
done
This is how we'd install a single fix: -
$ /opt/IBM/InstallationManager/eclipse/tools/imcl install 8.0.1.0-WS-BPMPC-IFPD44937 -repositories /tmp/BPM801Fixes/8.0.1.0-WS-BPM-IFJR44937 -installationDirectory /opt/IBM/WebSphere/AppServer/
Installed 8.0.1.0-WS-BPMPC-IFPD44937_8.0.1000.20121203_1006 to the /opt/IBM/WebSphere/AppServer directory.
and here's a script to install a whole bunch of fixes: -
install_fixes.sh
#!/bin/sh
for z in /store/BPM801/Fixes/*.zip
do
/opt/IBM/InstallationManager/eclipse/tools/imcl install `unzip -c $z repository.xml | grep 'information name=' | sed 's/^.\{25\}//' | sed "s/'.*$//g"` -repositories /tmp/BPM801Fixes/`echo $z | sed 's/^.\{20\}//' | sed 's/.zip//g'` -installationDirectory /opt/IBM/WebSphere/AppServer -log ~/$z.txt
done
and here's how we validated what's installed: -
$ /opt/IBM/InstallationManager/eclipse/tools/imcl listInstalledPackages
com.ibm.cic.agent_1.6.0.20120831_1216
com.ibm.websphere.IHS.v80_8.0.5.20121022_1902
com.ibm.bpm.ADV.V80_8.0.1000.20121102_2136
com.ibm.websphere.ND.v80_8.0.5.20121022_1902
8.0.1.0-WS-BPM-IFJR44669_8.0.1000.20121113_1004
8.0.1.0-WS-BPM-IFJR44742_8.0.1000.20121119_1510
8.0.1.0-WS-BPM-IFJR44786_8.0.1000.20121214_1109
8.0.1.0-WS-BPM-IFJR44894_8.0.1000.20121129_1038
8.0.1.0-WS-BPM-IFJR44978_8.0.1000.20121212_1322
8.0.1.0-WS-BPM-IFJR45014_8.0.1000.20121207_1055
8.0.1.0-WS-BPM-IFJR45047_8.0.1000.20121211_1048
8.0.1.0-WS-BPM-IFJR45071_8.0.1000.20121218_1447
8.0.1.0-WS-BPM-IFJR45089_8.0.1000.20130124_1057
8.0.1.0-WS-BPM-IFJR45113_8.0.1000.20121217_2010
8.0.1.0-WS-BPM-IFJR45135_8.0.1000.20130121_1715
8.0.1.0-WS-BPM-IFJR45227_8.0.1000.20130109_1543
8.0.1.0-WS-BPM-IFJR45386_8.0.1000.20130119_0019
8.0.1.0-WS-BPM-IFJR45389_8.0.1000.20130118_0935
8.0.1.0-WS-BPMADV-IFJR45540_8.0.1000.20130131_1111
8.0.1.0-WS-BPMPC-IFJR45179_8.0.1000.20130131_1354
8.0.1.0-WS-BPMPC-IFJR45385_8.0.1000.20130121_1156
8.0.1.0-WS-BPMPC-IFPD44937_8.0.1000.20121203_1006
8.0.1.0-WS-BPMPC-IFPD45014_8.0.1000.20121207_1108
8.0.1.0-WS-BPMPC-IFPD45227_8.0.1000.20130109_1602
8.0.1.0-WS-BSPACE-IFJR44853_8.0.1000.20121127_1628
8.0.1.0-WS-BSPACE-IFJR45108_8.0.1000.20121212_1039
com.ibm.websphere.PLG.v80_8.0.5.20121022_1902
com.ibm.cic.agent_1.6.0.20120831_1216
com.ibm.websphere.IHS.v80_8.0.5.20121022_1902
com.ibm.bpm.ADV.V80_8.0.1000.20121102_2136
com.ibm.websphere.ND.v80_8.0.5.20121022_1902
8.0.1.0-WS-BPM-IFJR44669_8.0.1000.20121113_1004
8.0.1.0-WS-BPM-IFJR44742_8.0.1000.20121119_1510
8.0.1.0-WS-BPM-IFJR44786_8.0.1000.20121214_1109
8.0.1.0-WS-BPM-IFJR44894_8.0.1000.20121129_1038
8.0.1.0-WS-BPM-IFJR44978_8.0.1000.20121212_1322
8.0.1.0-WS-BPM-IFJR45014_8.0.1000.20121207_1055
8.0.1.0-WS-BPM-IFJR45047_8.0.1000.20121211_1048
8.0.1.0-WS-BPM-IFJR45071_8.0.1000.20121218_1447
8.0.1.0-WS-BPM-IFJR45089_8.0.1000.20130124_1057
8.0.1.0-WS-BPM-IFJR45113_8.0.1000.20121217_2010
8.0.1.0-WS-BPM-IFJR45135_8.0.1000.20130121_1715
8.0.1.0-WS-BPM-IFJR45227_8.0.1000.20130109_1543
8.0.1.0-WS-BPM-IFJR45386_8.0.1000.20130119_0019
8.0.1.0-WS-BPM-IFJR45389_8.0.1000.20130118_0935
8.0.1.0-WS-BPMADV-IFJR45540_8.0.1000.20130131_1111
8.0.1.0-WS-BPMPC-IFJR45179_8.0.1000.20130131_1354
8.0.1.0-WS-BPMPC-IFJR45385_8.0.1000.20130121_1156
8.0.1.0-WS-BPMPC-IFPD44937_8.0.1000.20121203_1006
8.0.1.0-WS-BPMPC-IFPD45014_8.0.1000.20121207_1108
8.0.1.0-WS-BPMPC-IFPD45227_8.0.1000.20130109_1602
8.0.1.0-WS-BSPACE-IFJR44853_8.0.1000.20121127_1628
8.0.1.0-WS-BSPACE-IFJR45108_8.0.1000.20121212_1039
com.ibm.websphere.PLG.v80_8.0.5.20121022_1902
No comments:
Post a Comment