Sunday, 24 August 2014

IBM Installation Manager - Installing BPM iFixes via a FOR loop

Following on from an earlier post: -


here's an updated script to install iFixes for IBM BPM Advanced 8.5.5: -

cd /tmp/Repository/BPM/Fixes
for i in *; do /opt/IBM/InstallationManager/eclipse/tools/imcl install $i -repositories ./$i -installationDirectory /opt/IBM/WebSphere/AppServer; done

Installed 8.5.5.0-WS-BPM-IFJR49684_8.5.5000.20140612_1045 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.5.0-WS-BPM-IFJR49990_8.5.5000.20140707_1329 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.5.0-WS-BPM-IFJR50028_8.5.5000.20140710_1331 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.5.0-WS-BPM-IFJR50050_8.5.5000.20140725_1611 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.5.0-WS-BPM-IFJR50353_8.5.5000.20140702_1334 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.5.0-WS-BPM-IFJR50358_8.5.5000.20140722_1504 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.5.0-WS-BPM-IFJR50405_8.5.5000.20140721_1502 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.5.0-WS-BPM-IFJR50414_8.5.5000.20140709_1353 to the /opt/IBM/WebSphere/AppServer directory.

which builds on the earlier unpacking script: -

cd /tmp/Repository/BPM/Fixes
for i in /root/SWGRepo/BPM/Fixes/*.zip; do unzip $i -d `echo $i | sed 's/\/root\/SWGRepo\/BPM\/Fixes\///g' | sed 's/.zip//g'`; done

I could, of course, have chosen to install the iFixes at the same time as the binaries, but there's always going to be a requirement to install iFixes AFTER the product is built.

IBM Installation Manager - Looking at What We've Got To Install

See What's Available to Install - Binaries

/tmp/Repository/BPM/Product/IM64/tools/imcl listAvailablePackages -repositories /tmp/Repository/WAS/Product/Supplements,/tmp/Repository/WAS/Fixes/Supplements,/tmp/Repository/BPM/Product/repository/repos_64bit

com.ibm.websphere.APPCLIENT.v85_8.5.0.20120501_1108
com.ibm.websphere.IHS.v85_8.5.0.20120501_1108
com.ibm.websphere.PLG.v85_8.5.0.20120501_1108
com.ibm.websphere.PLUGCLIENT.v85_8.5.0.20120501_1108
com.ibm.websphere.WCT.v85_8.5.0.20120501_1108
com.ibm.websphere.APPCLIENT.v85_8.5.5002.20140408_1947
com.ibm.websphere.APPCLIENTILAN.v85_8.5.5002.20140408_1947
com.ibm.websphere.IHS.v85_8.5.5002.20140408_1947
com.ibm.websphere.IHSILAN.v85_8.5.5002.20140408_1947
com.ibm.websphere.PLG.v85_8.5.5002.20140408_1947
com.ibm.websphere.PLGILAN.v85_8.5.5002.20140408_1947
com.ibm.websphere.PLUGCLIENT.v85_8.5.5002.20140408_1947
com.ibm.websphere.PLUGCLIENTILAN.v85_8.5.5002.20140408_1947
com.ibm.bpm.ADV.v85_8.5.5000.20140604_1130
com.ibm.websphere.ND.v85_8.5.5002.20140408_1947
com.ibm.ws.DB2EXP.linuxia64_10.1.1.20140530_0055


See What's Available to Install - iFixes

cd /tmp/Repository/BPM/Fixes
for i in 8.5.5.0*; do /tmp/Repository/BPM/Product/IM64/tools/imcl listAvailableFixes com.ibm.bpm.ADV.v85_8.5.5000.20140604_1130 -repositories $i; done


8.5.5.0-WS-BPM-IFJR49684_8.5.5000.20140612_1045
8.5.5.0-WS-BPM-IFJR49990_8.5.5000.20140707_1329
8.5.5.0-WS-BPM-IFJR50028_8.5.5000.20140710_1331
8.5.5.0-WS-BPM-IFJR50050_8.5.5000.20140725_1611
8.5.5.0-WS-BPM-IFJR50353_8.5.5000.20140702_1334
8.5.5.0-WS-BPM-IFJR50358_8.5.5000.20140722_1504
8.5.5.0-WS-BPM-IFJR50405_8.5.5000.20140721_1502
8.5.5.0-WS-BPMPCPD-IFPD50405_8.5.5000.20140721_1505
8.5.5.0-WS-BPM-IFJR50414_8.5.5000.20140709_1353
8.5.5.0-WS-BPM-IFJR50439_8.5.5000.20140714_1524
8.5.5.0-WS-BPM-IFJR50444_8.5.5000.20140721_1322
8.5.5.0-WS-BPM-IFJR50462_8.5.5000.20140612_1431
8.5.5.0-WS-BPM-IFJR50487_8.5.5000.20140716_0823
8.5.5.0-WS-BPM-IFJR50512_8.5.5000.20140623_1322
8.5.5.0-WS-BPM-IFJR50538_8.5.5000.20140703_1217
8.5.5.0-WS-BPM-IFJR50542_8.5.5000.20140815_1443
8.5.5.0-WS-BPM-IFJR50580_8.5.5000.20140722_2200
8.5.5.0-WS-BPM-IFJR50591_8.5.5000.20140711_0941
8.5.5.0-WS-BPM-IFJR50616_8.5.5000.20140716_1128
8.5.5.0-WS-BPMPCPD-IFPD50616_8.5.5000.20140716_1132
8.5.5.0-WS-BPM-IFJR50653_8.5.5000.20140714_1355
8.5.5.0-WS-BPM-IFJR50760_8.5.5000.20140716_0834
8.5.5.0-WS-BPM-IFJR50819_8.5.5000.20140725_1115
8.5.5.0-WS-BPM-IFJR50863_8.5.5000.20140807_1303
8.5.5.0-WS-BPM-IFJR51033_8.5.5000.20140818_2348
8.5.5.0-WS-BPMPCPD-IFJR50589_8.5.5000.20140801_1610


IBM BPM 8.5.5 - Unpacking the Repository

So I'm scripting up an IBM Business Process Manager Advanced 8.5.5 installation, and needed to unpack the products, including IBM HTTP Server and the WebSphere Plugin: -

mkdir /tmp/Repository
mkdir /tmp/Repository/BPM/
mkdir /tmp/Repository/BPM/Product
cd /tmp/Repository/BPM/Product
for i in /root/SWGRepo/BPM/Product/*.tar.gz; do tar xvzf $i; done

mkdir /tmp/Repository/BPM/Fixes
cd /tmp/Repository/BPM/Fixes
for i in /root/SWGRepo/BPM/Fixes/*.zip; do unzip $i -d `echo $i | sed 's/\/root\/SWGRepo\/BPM\/Fixes\///g' | sed 's/.zip//g'`; done

mkdir /tmp/Repository/WAS
mkdir /tmp/Repository/WAS/Product
mkdir /tmp/Repository/WAS/Product/Supplements
cd /tmp/Repository/WAS/Product/Supplements
for i in /root/SWGRepo/WAS/Product/Supplements/*.zip; do unzip $i; done

mkdir /tmp/Repository/WAS/Fixes/Supplements
cd /tmp/Repository/WAS/Fixes/Supplements
for i in /root/SWGRepo/WAS/Fixes/Supplements/*.zip; do unzip $i; done


As you can tell, I love my FOR loops :-)

CRIMA1161E ERROR: Failed to find required installation files.

I've seen this a few times before: -

ERROR: Failed to find required installation files.

  CRIMA1161E ERROR:   Failed to find required installation files.

  Explanation: Installation Manager did not find required installation files from the repository.An issue has occurred with the package that cannot be resolved by Installation Manager.

  User Action: If the repository files were transferred from a different location before the installation, verify that the files were not altered during the transfer operation. Copy the repository files to a different location and install from that location.  If the repository files were not transferred note the package name and version number and contact customer support.

    CRIMC1020E ERROR:     plug-in com.ibm.was.ihs.moreinfo.v85_8.5.0.20120118_0100 not found

      ERROR:       'plug-in com.ibm.was.ihs.moreinfo.v85_8.5.0.20120118_0100' does not exist in /tmp/Repository/BPM/Product/IM64 (at /tmp/Repository/BPM/Product/IM64/plugins/com.ibm.was.ihs.moreinfo.v85_8.5.0.20120118_0100.jar).

      ERROR:       'plug-in com.ibm.was.ihs.moreinfo.v85_8.5.0.20120118_0100' not found.

      ERROR:       'plug-in com.ibm.was.ihs.moreinfo.v85_8.5.0.20120118_0100' not found in /tmp/Repository/WAS/Fixes/Supplements.


This time, the solution was easy - there was a typo in my response file.

I had written this: -

<repository location='/tmp/Repository/WAS/Product/Supplement'/>

when I actually meant to write this: -

<repository location='/tmp/Repository/WAS/Product/Supplements'/>

Easy when you know how :-)

Thursday, 21 August 2014

Using the IBM Integration Bus EmailInput node in your ESB

This from my ISSW colleague, Alasdhair Buchanan: -

Starting with WebSphere Message Broker V7, the EmailInput node has enabled you to provide input to a message flow via an e-mail, and the functionality remains the same in IBM Integration Bus V9. This article provides a simple example with the e-mail consisting of either text or a single attachment, and describes possible issues when you are processing more complex e-mail messages. It also shows you how to configure IBM Integration Bus to use the EmailInput node.

Wednesday, 20 August 2014

OS X Mavericks: Using Apple's hidden Wi-Fi Diagnostics tool

From Jonny Evans at Computerworld: -


A really useful article on using the Wireless Diagnostics tool, built into Mac OS X.


Weirdness with DNS

So I've not yet got the bottom of this one, but I do have a work-around.

I'm trying to register my Linux box with our internal Red Hat Network server, using the rhn_register command.

Whilst trying to validate that I could connect to the server, I tried this command: -

--2014-08-20 13:34:18--  https://rhn.linux.ibm.com/pub/bootstrap/bootstrap.sh
Resolving rhn.linux.ibm.com... failed: Temporary failure in name resolution.
wget: unable to resolve host address "rhn.linux.ibm.com"


or: -


--2014-08-20 13:37:41--  https://rhn.linux.ibm.com/pub/bootstrap/bootstrap.sh
Resolving rhn.linux.ibm.com... failed: Temporary failure in name resolution.
wget: unable to resolve host address "rhn.linux.ibm.com"


However, I was able to ping the box: -


PING rhn.linux.ibm.com (9.37.253.136) 56(84) bytes of data.
64 bytes from 9.37.253.136: icmp_seq=1 ttl=128 time=589 ms
64 bytes from 9.37.253.136: icmp_seq=2 ttl=128 time=544 ms
^C
--- rhn.linux.ibm.com ping statistics ---
3 packets transmitted, 2 received, 33% packet loss, time 2175ms
rtt min/avg/max/mdev = 544.718/567.256/589.795/22.551 ms


from both the Linux guest and the Mac host: -


PING ftp3.linux.ibm.com (9.37.253.130): 56 data bytes
64 bytes from 9.37.253.130: icmp_seq=0 ttl=48 time=562.601 ms
64 bytes from 9.37.253.130: icmp_seq=1 ttl=48 time=789.634 ms
^C
--- ftp3.linux.ibm.com ping statistics ---
3 packets transmitted, 2 packets received, 33.3% packet loss
round-trip min/avg/max/stddev = 562.601/676.118/789.634/113.516 ms


Interestingly, whilst the Mac host is using my home broadband router as a DNS server: -

cat /etc/resolv.conf

#
# Mac OS X Notice
#
# This file is not used by the host name and address resolution
# or the DNS query routing mechanisms used by most processes on
# this Mac OS X system.
#
# This file is automatically generated.
#
domain home
nameserver 192.168.1.254


the Linux guest is using the Mac host: -

cat /etc/resolv.conf

# Generated by NetworkManager
domain localdomain
search localdomain uk.ibm.com
nameserver 192.168.8.2


The solution ?

I added the host to my /etc/hosts file: -

...
9.37.253.136    rhn.linux.ibm.com
...

Now it works .....

Why ?

I do not know.

I'm assuming that VMware is somehow blocking things, but I'm not quite sure .....

Note to self - Firefox and local connections

 Whilst trying to hit my NAS from Firefox on my Mac, I kept seeing errors such as:- Unable to connect Firefox can’t establish a connection t...