Sun Management Center Change Manager 1.0 Administration Guide

- Previous: How to Create a Host Group (Command Line)
- Next: How to Copy Managed Hosts to Another Host Group (Command Line)

## How to Rename a Managed Host or Host Group (Command Line)

You can rename only one managed host or host group at a time.

Note -

Changing the name of a managed host with the Change Manager only changes how that managed host is labeled in that particular host group.

Changing the name does not change the following:

- How that managed host is labeled in other host groups

- The name by which the managed host is known in the naming service

- The name the managed host calls itself

1. Determine which managed host or host group to rename.

   For example, rename the `web-server/apache` host group to be `web-server/ApacheServer`.

2. Rename the managed host or host group.

       $ changemgr hostmove [ -u username ] [ -p file ] [ -d domain ] \
       old_topopath new_topopath

   topopath

     Specifies the path to a managed host or host group that is relative to the top of the selected administrative domain.

   For descriptions of the other options, see How to Create a Host Group (Command Line).

### Example-Renaming a Managed Host or Host Group

Chris renames the `web-server/apache` host group to be `web-server/ApacheServer`.

    $ changemgr hostmove /web-server/apache \
    /web-server/ApacheServer

- Previous: How to Create a Host Group (Command Line)
- Next: How to Copy Managed Hosts to Another Host Group (Command Line)

- © 2010, Oracle Corporation and/or its affiliates