How to enable debug mode for rad_db?
You can enable the debug info by adding line "set -x" inside the rad_db script.
(1) First, make a backup of rad_db in $TBSM_HOME/bin.
(2) Next is to add "set -x" in functions that you're interested to see the debug info within the rad_db.
Example, if you want to debug the resetdb function invoked from rad_db, then you can add the "set -x" into the resetdb functional block as shown below:
A command of rad_db setupinit was executed and snippet from the outputs showing debug info would be:
| + echo Initialising the RAD database for the first time ...
Initialising the RAD database for the first time ...
+ touch /opt/IBM/tivoli/tbsm/log/RAD_db.log
+ [ 0 = 0 ]
+ eval chmod a+rw /opt/IBM/tivoli/tbsm/log/RAD_db.log 1>>/opt/IBM/tivoli/tbsm/log/RAD_db.log 2>&1
+ chmod a+rw /opt/IBM/tivoli/tbsm/log/RAD_db.log
Do not forget to disable the debug info back by removing the "set -x" after all the troubleshooting / analysis has been done.