13 June, 2011

Building a Shared Media to use with RAFW


These are the steps that need to be done to create a shared media to use with Rational Automation Framework for WebSphere (RAFW).

I'll create the shared media in a Red Hat 5 Server using NFS.
To create this, you'll need to run the following commands:

1. Check nfs-utils is installed or not using
yum list nfs-utils
2. Edit /etc/exports , add dir you want share with network information and permission
(In this example, I'll add the sharedmedia folder and allow read and write access to all the machines with IP addresses between 172.16.0.0 and 172.16.255.255
vi /etc/exports
/sharedmedia 172.16.0.0/255.255.0.0(rw)
3. Restart nfs service
service nfs restart


Then, on the framework server and on target systems, execute the following command:
mount 172.16.92.130:/sharedmedia /sharedmedia

Cheers!

How to extract tar.gz file in Linux

How to open or Untar a "tar.gz" file in Linux or Unix:

Type the following command to extract the file to the current directory:

tar -zxvf yourfile.tar.gz

You can specify a different directory to extract to using -C parameter and a path to the directory as follows:

tar -C /myfolder -zxvf yourfile.tar.gz


Rational Buildforge - Database extension 'ibm_db2' not found error


After successfully started Rational Buildforge, I tried to access to the administration interface, using the URL http://rafw.demo.com, and I got the following error string, instead of the usual login interface:

"Database extension 'ibm_db2' not found."

To solve this, you just need to add the DB2 library folder to the environment variable LD_LIBRARY_PATH and restart the buildforge server. I did that using the following command:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/buildforge/server/apache/lib:/opt/ibm/db2/V9.7/lib32

To include this on Operating System boot, just add the command above in /etc/rc.local file.

Cheers!

09 June, 2011

Installing Rational Automation Framework for WebSphere and Rational Build Forge checklist

This checklist with the installation sequence for Rational Automation Framework for WebSphere (RAFW) and Rational Build Forge was copied from the following link:

https://www-304.ibm.com/support/docview.wss?uid=swg21386782&wv=1


  1. Update IBM Installation Manager:

    Open Installation Manager and select the Update option.

    Note: If you update Installation Manager as a part of installing Rational Build Forge, the RAFW_ENABLED variable is ignored.
  2. Obtain the Rational Build Forge 7.1.1 product installation images:

    At the root directory of the installation media or the downloaded images, locate thereadme.txt file.

    You must follow the instructions in the readme.txt file to create a complete product image:
    1. Download the images to a temp directory.
    2. Locate the ZIP files for your edition of Rational Build Forge.
    3. Download first and second ZIP files to a temp directory.
    4. Unzip the contents of the first ZIP file and second ZIP files to the temp directory.
  3. From the temp directory, open a shell or command prompt. Set theRAFW_ENABLED=yes environment variable for your operating system, for example:

    Windows example:
    ------------------
    C:\temp> set RAFW_ENABLED=yes

    UNIX/Linux example:
    ---------------------
    $ /tmp export RAFW_ENABLED=yes
  4. At the same shell or command prompt, start the launchpad program and Installation Manager, for example:

    Windows example:
    ------------------
    C:\temp>launchpad.exe

    UNIX/Linux example:
    ---------------------
    $ /tmp launcher
  5. When the launchpad program opens, select Rational Build Forge Management Console Installation option to start Installation Manager and install the Rational Build Forge components.
  6. After Rational Build Forge installation completes, in the Rational Automation Framework for WebSphere Information Center, complete the setup detailed in the the Post-installation setup section. 

How to change hostname on a DB2 Server

Hello!

Several times, when I'm building a new demo VMWare server, I realize that I've forgot to specify the VMWare hostname after already installed DB2... In those occasions, the following link, that explains how to change hostname on a DB2 Server is very useful:

https://www-304.ibm.com/support/docview.wss?uid=swg21258834&wv=1

Basically, in my case, since I usually don't have any databases or configurations yet, the following steps are enough:

1) Login as the dasadm user and stop the DB2 Administration Server (DAS):

                 db2admin stop

2) Login as the instance owner and Stop the DB2 instance:

                 db2stop

3) Change the server's hostname.

4) Update the DB2SYSTEM registry variable:db2set -g DB2SYSTEM=<new hostname>

5) In the db2nodes.cfg file (which is in the sqllib db2 folder) change <current hostname> to <new hostname>.

Cheers!

01 June, 2011

Sorting Search Results on Lotus Notes

Hello!
More than one person already told me that in Lotus Notes 8.5 is not possible to sort search results in the inbox.
That's not true, that's only a problem of configuration.
To be able to sort search results, you just need to select the "keep current order" option in the "Sort results by" parameter:


Regards.

Software fails to install due to SELinux

I don't know why but you can find a lot of software that fails to install with SELinux (Security Enhanced Linux) turn it on.

How can we turn it off?

Temporarily:
Just enter the following command as root user:

setenforce 0

Permanently:
Edit, as root, the file:

/etc/selinux/config

You can set the SELINUX line to one of :

SELINUX=enforcing
SELINUX=permissive
SELINUX=disabled


Permissive could be the best choice, but if you want if off completely and set it to disabled, you will also have to update the grub.conf file or the machine will not boot!

Add enforcing=0 as follows to the boot line:

kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet enforcing=0

Regards.

Start Tivoli Directory Server at operating system startup in a Linux environment

To start a TDS server at operating system startup in a Linux environment, just follow this documentation:

http://publib.boulder.ibm.com/infocenter/tivihelp/v2r1/index.jsp?topic=/com.ibm.IBMDS.doc/install177.htm

Regards.

Start DB2 at operating system startup in a Red Hat enviroment

To start a DB2 server at boot in a Red Hat environment, just add the following command to the file /etc/rc.local:

su db2inst1 -lc /home/db2inst1/sqllib/adm/db2start

Regards.

Error while launching IBM HTTP Server

I've been working with WebSphere Application Server in a Red Hat Virtual Machine, and the other day, after restarting the virtual machine, I was not able to launch IBM HTTP Server from the WebSphere Integrated Console.
I tried to start IBM HTTP Server from the command line using the following command:

[root@xxx ~]# /opt/IBM/HTTPServer/bin/httpd -f /opt/IBM/HTTPServer/conf/httpd.conf

And I've got the following error:

./opt/IBM/HTTPServer/bin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory

After checked that the file libaprutil-1.so.0 existed in the /opt/IBM/HTTPServer/lib, I understood that the problem should be that the HTTP Server does not know where to look for the libraries, or, in other words, the LD_LIBRARY_PATH was empty or does not included that directory.
And yeah, actually the variable LD_LIBRARY_PATH was empty, so, I used the command:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/IBM/HTTPServer/lib

and after that the HTTP Server already started as expected!

Now to include this on Operating System boot, just add the command above in /etc/rc.local file.

Regards.

Lotus Connections - How to load existing photos from a LDAP Server

An old but great, and still actual, post from Luis Benitez about how to load existing photos from a LDAP Server into Lotus Connections:
http://www.lbenitez.com/2008/10/how-to-load-existing-photos-into-lotus.html

Luis also included a video that shows how to do it: http://blog.lbenitez.com/LoadPhotosLDAPTDI.swf
Additionally, I would like to summarize the steps that you need to follow:

1. Open the TDI Config Editor
2. File -> Open... profiles-config.xml
3. Go into Assembly Lines
4. Copy the load_photos_from_files assembly line (right-click -> copy)
5. Right-click -> Paste (a copy of the assembly line is created)
6. Rename the new assembly line (1_load_photos_from_files) to load_photos_from_ldap
7. Right-click Feeds and click on Add Connector component...
8. Select the new connector and go to the Config... tab
9. Specify the LDAP URL, username, password, search base, search filter
10. Click on Input Map tab
11. Connect to the data source and then discover the schema
12. Under work attributes add three attributes: $dn (mapped to $dn), uid (mapped to uid) and jpegPhoto (mapped to jpegphoto;binary)
13. Delete the read_entries feed
14. Under Flow, delete get_image
15. Under Flow -> write_entry , make sure PROF_IMAGE is mapped to jpegPhoto (the work attribute you added in step 12).
16. Save the AL
17. Go to the command line
18. Make a copy of load_photos_from_files.bat and save it as load_photos_from_ldap.bat
19. Open load_photos_from_ldap.bat with your favorite text editor
20. Change load_photos_from_files to load_photos_from_ldap
21. Save the batch file
22. Run load_photos_from_ldap
23. Voila!!


Regards.

A truly Hello World!

Welcome!!
This is truly a hello world post... Because it's my first post on my first blog.

This blog will be used to post all the stuff that I think that I may want to remember in the future. This may include technical stuff that I'm always forgetting, as well as, registering the good stuff that happens in my life... But just the good stuff, seriously!

I'll try to do, at least, a post a day... an ambitious goal, I know.

I hope that I enjoy this blog and that you too!
See you soon!!