For the list of properties, see Chapter 10, Creating Shared Profiles and Host Properties (Reference).
Determine the managed host's properties that you want to modify.
For example, modify the properties of the web-server/ApacheServer/host2 managed host.
Modify the property values of the managed host.
$ changemgr hostset [ -u username ] [ -p file ] [ -d domain ] \ [ -s name=value ] ... [ -s name ] ... topopath ... |
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.
Specify one or more property names to delete, where name is the property name. Supply this option for each property you want to delete.
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).
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 |
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 |
Chris deletes the Description property of the web-server/ApacheServer/host2 managed host.
$ changemgr hostset -s Description /web-server/ApacheServer/host2 |
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 |