Sun Management Center Change Manager 1.0 Administration Guide

How to Modify Managed Host Properties (Command Line)

For the list of properties, see Chapter 10, Creating Shared Profiles and Host Properties (Reference).

  1. Determine the managed host's properties that you want to modify.

    For example, modify the properties of the web-server/ApacheServer/host2 managed host.

  2. Modify the property values of the managed host.


    $ changemgr hostset [ -u username ] [ -p file ] [ -d domain ] \
    [ -s name=value ] ... [ -s name ] ... topopath ...
    -s name=value

    Specify one or more name-value pairs. name is the property name, and value is the property value. Supply this option for each property value you want to set. If value is blank, then the property is assigned an empty value.

    -s name

    Specify one or more property names to delete, where name is the property name. Supply this option for each property you want to delete.

    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-Modifying a Managed Host Property

Chris modifies the Description property of the web-server/ApacheServer/host2 managed host.


$ changemgr hostset -s Description="Apache Web Server: host2" \
/web-server/ApacheServer/host2

Example-Modifying Managed Host Properties

Chris modifies the Description and base_config_target_arch properties for web-server/ApacheServer/host2.


$ changemgr hostset -s Description="Apache Web Server: host2" \
-s base_config_target_arch=sun4u /web-server/ApacheServer/host2

Example-Deleting a Managed Host Property

Chris deletes the Description property of the web-server/ApacheServer/host2 managed host.


$ changemgr hostset -s Description /web-server/ApacheServer/host2

Example-Recursively Setting Host Group Properties

Chris recursively sets the Description property of the contents of the web-server host group.


$ changemgr hostset -R -s Description="Web Server managed host" /web-server