IBM Support

Recreate Missing Registry Files

How To


Summary

A number of issues can be encountered such as the Data Gather scripts failing if the IBM Workload Scheduler Registry files found under /etc/TWS and/or /etc/TWA are missing or incomplete.

The following steps can be used to recreate the Registry files.

Steps

Step 1 - Locate the twaregistry.sh and twsUpdateTWSRegistry.sh scripts
For IWS 9.4.0 both scripts can be found in the directory IWShome/_uninstall/ACTIONTOOLS, whereas for IWS 9.5.0 and later releases, the twaregistry.sh script is found in the directory IWShome/_uninstall/ACTIONTOOLS, while the twsUpdateTWSRegistry.sh script is found in the directory IWShome/tws_tools.
Step 2 - Recreate the TWSRegistry.dat file
Use the twsUpdateTWSRegister.sh script to recreate or update the /etc/TWS/TWSRegistry.dat file using the following syntax:
twsUpdateTWSRegistry.sh IWShome IWSuser component -verbose release false
Where component is one of:
MDM
BKM
DDM
BDM
FTA
LWA
DWC
Take care to select the component that the instance was installed as, which is not necessarily the same as its current function, for example if your current MDM was installed as a Backup MDM as part of a parallel upgrade then promoted to MDM, the component BKM should be specified, not MDM.
The release is entered in the format Major.Minor.Maintenance.FixPack, for instance 9.5.0.03.
For example, to update the /etc/TWS/TWSRegistry.dat file with the details of an IWS 9.5.0 FixPack 03 MDM you would run commands similar to:
# cd /opt/wa/TWS/tws_tools
# ./twsUpdateTWSRegistry.sh /opt/wa/TWS wauser MDM -verbose 9.5.0.03 false
Step 3 - Recreate an /etc/TWA properties file
Use the twregistry.sh script to recreate or update the /etc/TWA properties file using the following syntax for IBM Workload Scheduler 9.4.0:
twaregistry.sh -add IWAhome release IWSuser component
Or for IBM Workload Scheduler 9.5.0 and later, the syntax:
twaregistry.sh -add IWAhome release IWSuser component WLPhome JDBCdrivers IWSwork
Where component and release are as for twsUpdateTWSRegistry.sh above, WLPhome is the path to the directory containing WebSphere Liberty Profile (WLP), JDBCdrivers is the path to the JDBC drivers for the installed database, for example /opt/wa/TWS/jdbcdrivers/db2, and IWSwork is the path to the DATA directory, for example /opt/wa/TWSDATA.
Specify the value "N.A." if the property is not applicable to the current instance, for example if WLP is not installed as part of the instance instead of entering the path to the directory containing WLP specify "N.A.". 
For example, to create a properties file for an IWS 9.5.0 FixPack 03 MDM with a DB2 database, you would run commands similar to:
# cd /opt/wa/TWS/_uninstall/ACTIONTOOLS
# ./twaregistry.sh -add /opt/wa 9.5.0.03 wauser MDM /opt/wa/wlp /opt/wa/TWS/jdbcdrivers/db2 /opt/wa/TWSDATA
Or, for an IWS 9.5.0.06 FTA, you would run commands similar to:
# cd /opt/wa/TWS/_uninstall/ACTIONTOOLS
# ./twaregistry.sh -add /opt/wa 9.5.0.06 wauser FTA N.A. N.A. /opt/wa/TWSDATA

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSGSPN","label":"IBM Workload Scheduler"},"ARM Category":[{"code":"a8m0z000000br2OAAQ","label":"How To"}],"ARM Case Number":"","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"}],"Version":"10.1.0;9.4.0;9.5.0"}]

Product Synonym

iws; tws; maestro; Tivoli workload scheduler

Document Information

Modified date:
09 September 2022

UID

ibm16619357