Sun Management Center Change Manager 1.0 Administration Guide

- Previous: How to Copy Managed Hosts to Another Host Group (Command Line)
- Next: How to Remove Managed Hosts and Host Groups (Command Line)

## How to Move Managed Hosts and Host Groups to Another Host Group (Command Line)

1. Determine which managed hosts and host groups to move and the destination host group.

   For example, move `/web-server/host1` and `/web-server/host2` to the `web-server/ApacheServer` host group.

2. Move the managed hosts and host groups to the other host group.

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

   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-Moving Managed Hosts to Another Host Group

Chris moves the `/web-server/host1` and `/web-server/host2` managed hosts to the `web-server/ApacheServer` host group.

    $ changemgr hostmove /web-server/host1 /web-server/host2 \
    /web-server/ApacheServer

### Example-Moving Host Groups to Another Host Group

Chris moves the `ApacheServer` and `NewServer` host groups to the `web-server` host group.

    $ changemgr hostmove ApacheServer NewServer /web-server

- Previous: How to Copy Managed Hosts to Another Host Group (Command Line)
- Next: How to Remove Managed Hosts and Host Groups (Command Line)

- © 2010, Oracle Corporation and/or its affiliates