Tracing the user ID and Password plug-in
If set up correctly, the server can automatically trace the user ID and password plug-in (dsmdb2pw).
To set up automatic tracing for the user ID and password plug-in, complete the following steps:

- Ensure that the server has write authority to the ~/sqllib/db2dump/ directory.
- Add the following text to the ~instance/sqllib/userprofile file:
where filename is a fully qualified path and file name of the trace file, for example ~/sqllib/db2dump/dsmdb2pw.trc.export DB2_DSMDB2PW_TRACEFILE=filename - Restart Db2.
After Db2 restarts, trace output is stored in the specified file and directory.
- To verify that the
DB2_VENDOR_INI db2setis set, run thedb2setcommand. - If the DB2_VENDOR_INI variable is not set, create a configuration file, for
example:
c:\Program Files\Tivoli\TSM\s1\tsmdbmgr.env - Update the configuration file that is listed in the DB2_VENDOR_INI with the
location of the trace file:
DB2_DSMDB2PW_TRACEFILE=c:\Program Files\Tivoli\TSM\s1\sqllib\dsmdb2pw.trc - Set up the trace file by issuing the following command:
for example:db2set -i server_instance DB2_VENDOR_INI=configuration_file_locationdb2set -i s1 DB2_VENDOR_INI=c:\Program Files\Tivoli\TSM\s1\tsmdbmgr.env - Stop the IBM
Storage Protect server and restart it by
issuing the following
commands:
haltdsmserv -k server_instance
After the server restarts, trace output is stored in the specified file and directory.
Tip: You can use the file name and directory of your choice for the name and location of
the trace file.