# Changing the Client Computer Name Using the Command Line Interface

It is useful to change the hostname and display name of a client computer through the command line when you install the software using a decoupled install with Custom Package, and when you want to change the name of the computer after the computer is registered.

Notes

- The command must be executed locally and cannot be used to change the name of a remote computer.

- For clients that are part of a cluster environment, the name change must be performed from the CommCell Console. See Changing the Client Computer Name.

## Before You Begin

- Review the schedules associated with the client. Client schedules must be recreated after changing the name of a client computer. For information on viewing schedules, see Viewing Job Schedules.

- Verify there are no jobs running for the client.

- If you are changing the name or host name of a proxy client or a client behind a proxy, review the information in Network Considerations for Name Change Operations.

## Procedure

1. Perform the name change on the computer operating system and then verify the following:

   - Verify that the computer is available in the network with the new name. (DNS lookup or other name resolution facilities are appropriately configured to resolve the new name of the computer.)

   - Use ping (or other network connectivity utilities) to verify that the computer with the new name is accessible. Also verify that other computers in the network are accessible to the computer with the new name.

   - Verify that all applications running on the computer, for example, SQL server, Exchange, Server, and Oracle database, function with the new name.

     - To rename a Windows computer that hosts a stand-alone instance of SQL Server, see http://msdn.microsoft.com/en-us/library/ms143799.aspx.

   - To rename a Linux computer that hosts a stand-alone instance of SQL Server, see Renaming a Linux SQL Server Computer.

2. If you are not logged on to the CommServe computer, run the qlogin command.

3. Download the update_client_name_template.xml file to the computer where you will run the command.

4. On the command line, go to software_installation_directory/Base, and then type the following command:

        qoperation execute -af update_client_name_template.xml -entity/clientName '$[old_clientname]' -client/clientEntity/clientName '$[old_clientname]' -entity/newName '$[new_clientname]'

   Optional: To update the client name in the database even if the client is offline, add `updateNameChangeOnlyInDBOnFailure 1`.

   Note

   You can also define parameter values in the update_client_name_template.xml file instead of on the command line. For more information on command line parameters and XML elements, see Command Syntax for XML Commands.

5. To log off the CommServe computer, run the qlogout command.

6. Restart the services on the client. See Restarting a Service for instructions.

   Important

   For clients that contain the File Archiver for Windows/Unix agent, restart the services after the name change. This ensures that stub recalls from these clients function correctly.

## Result

After the services are started, open the CommCell Console. The new name for the computer will be displayed in the CommCell Browser.

×

Loading...