Sun Management Center Change Manager 1.0 Administration Guide

How to Update Managed Hosts (Command Line)


Note -

First use the Change Manager to perform an initial installation before using the Solaris Live Upgrade feature on a managed host. The initial installation creates two boot environments .


  1. Determine which managed hosts you want to update.

    For example, update the /web-server/host1 and /web-server/host2 managed hosts.

  2. Modify the shared profiles and host properties to reflect the configuration of the managed hosts to update.

  3. Update the specified managed hosts.


    $ changemgr update [ -u username ] [ -p file ] [ -d domain ] \
    [ -x operation ] topopath ...
    -x operation

    Specify the action to take after the update completes. If operation is reboot, then activate the newly installed software stack and reboot. If operation is halt, then activate the newly installed software stack and halt. The default operation is to reboot.

    topopath

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

    For descriptions of the other options, see How to Add Managed Hosts (Command Line).

Example-Updating Managed Hosts

Suzi updates the /web-server/host1 and /web-server/host2 managed hosts. When the update completes, the managed hosts are rebooted to run the newly updated boot environment.


$ changemgr update /web-server/host1 /web-server/host2

Example-Updating Managed Hosts and Halting the Managed Hosts When the Update Completes

Suzi updates the /web-server/host1 and /web-server/host2 managed hosts. When the update completes, the managed hosts are set up to run the newly updated boot environment. Then, the managed hosts are halted.


$ changemgr update -x halt /web-server/host1 \
/web-server/host2