Windows operating systems

Changing the host name for a server running on Windows

To change the host name of a Tivoli® Storage Manager server running on a Windows system, back up the database, stop the server, edit the DB2® configuration file, and restart the server.

Procedure

Use the following steps to change a host name when the Tivoli Storage Manager server is installed.

  1. Back up the Tivoli Storage Manager database.
  2. Stop the Tivoli Storage Manager server.
  3. Change the startup service of the Tivoli Storage Manager server to manual startup:
    1. In the Windows Services Management Console, select TSM Server service.
    2. Right-click the service and click Properties.
    3. In the Startup Type field, select Manual.
  4. Issue the following commands from the DB2 command prompt window to update the DB2SYSTEM registry variable, turn off extended security, and verify the settings:
    db2set -g DB2SYSTEM=new_host_name 
    db2set -g DB2_EXTSECURITY=NO
    db2set -all 
    Tip: The DB2_EXTSECURITY parameter is reset to YES when you restart the system.
  5. Check for the presence of the db2nodes.cfg file. Depending on your version of Windows, the db2nodes.cfg file might be in one of the following directories:
    • Windows 2008 or later:

      C:\ProgramData\IBM\DB2\DB2TSM1\<DB2 Instance name>

    • Other versions of Windows:

      C:\Documents and Settings\All Users\Application Data\IBM\DB2\DB2TSM1\<DB2 Instance name>

    Tip: The db2nodes.cfg file is a hidden file. Ensure that you show all files by going to Windows Explorer and selecting Tools > Folder Options and specifying to view hidden files.

    If the db2nodes.cfg file does not exist on your system, proceed to the next step. If the file does exist, issue the following command to update the host name:

    db2nchg /n:0 /i:<instance> /h:<new host name>
  6. Change the Windows host name, as described in the documentation for the Windows system that you are using.
  7. Restart the server.
  8. Update the security settings by running the following command:
     db2extsec -a new_host_name\DB2ADMNS -u new_host_name\DB2USERS
  9. Start the Tivoli Storage Manager server.
  10. Reset the startup service for Tivoli Storage Manager server to be automatic:
    1. In the Windows Services Management Console, select TSM Server service.
    2. Right-click the service and click Properties.
    3. In the Startup Type field, select Automatic.