IBM Tivoli Provisioning Manager for OS Deployment, Version 7.1.1.16

DB2 on AIX example

About this task

Note: Some paths and parameter values depend on your DB2® installation. Paths and values provided here are only examples.

Procedure

  1. Verify that your AIX® 5.3 kernel is 64-bit enabled:
    bootinfo -K
    If there are no errors, all the prerequisites are met.
  2. Extract the contents of the .tar.gz archive for Tivoli® Provisioning Manager for OS Deployment on AIX in /usr. A directory named tpmfos is created under /usr.
  3. Create a DB2 database. In the remainder of this example, we assume the database is named tpmfosd.
    Note: If you want to support multiple languages when creating the DB2 database, you must specify a UTF-8 compliant code set. When installing the database on Windows with ODBC, set DB2CODEPAGE to 1208: DB2CODEPAGE=1208.
  4. Create two links in /usr/tpmfos for the files db2jcc.jar and db2jcc_license_cu.jar:
    cd /usr/tpmfos
    ln -s /opt/IBM/DB2/V9.1/java/db2jcc.jar db2jcc.jar
    ln -s /opt/IBM/DB2/V9.1/java/db2jcc_license_cu.jar db2jcc_license_cu.jar
  5. From the directory where you have extracted the build of Tivoli Provisioning Manager for OS Deployment, start the Java™ database gateway issuing the following command from a shell prompt:
    java -cp dbgw.jar:db2jcc.jar:db2jcc_license_cu.jar \
    -Djdbc.drivers=com.ibm.db2.jcc.DB2Driver com.rembo.dbgw.Dbgw -d 
  6. In another terminal, verify the database connectivity using:
    telnet localhost 2020 
    use db2://127.0.0.1:50000/tpmfosd,db2inst1,<password>
  7. Stop the dbgw process. If you do not, you will encounter errors when running setup.
  8. Go to the /usr/tpmfos directory.
  9. To install Tivoli Provisioning Manager for OS Deployment, start ./setup in the current directory and follow the setup program instructions. Mandatory parameters specific to using the product with DB2 are CLASSPATH, JDBCDRIVER, and JDBCURL. Default values for these parameters may not fit your particular installation of DB2. Make sure to provide appropriate values to the installer to have a working OS deployment server. In this example, you should use the following values:
    CLASSPATH = /usr/tpmfos/db2jcc.jar:/usr/tpmfos/db2jcc_license_cu.jar
    JDBCDRIVER = com.ibm.db2.jcc.DB2Driver
    JDBCURL = db2://127.0.0.1:50000/tpmfosd


Feedback