To modify managed host properties, see How to Modify Managed Host Properties (Command Line).
Determine which managed host's properties to view.
For example, view the properties of web-server/ApacheServer/host1.
View the properties of the managed host.
$ changemgr hosts [ -u username ] [ -p file ] [ -d domain ] \ [ -l ] [ -g ] [ -R ] [ -o format ] [ topopath ... ] |
Presents detailed information about the specified managed hosts and host groups in tabular form.
Presents information about the host group itself, rather than about the host group's contents.
Describes all the host group's descendents.
format is a blank-separated list or comma-separated list of property names. If you separate the property names with spaces, make sure that you surround the list of property names with quotes. The specified property values are displayed in a name-value format. If format is specified as all, then all properties are displayed. The output is suitable for programmatic parsing.
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 views the value of the Description property of web-server/ApacheServer/host1.
$ changemgr hosts -o Description /web-server/ApacheServer/host1 |
Chris views the values of the Description and AgentPort properties of web-server/ApacheServer/host1.
$ changemgr hosts -o Description,AgentPort /web-server/ApacheServer/host1 |
Chris views the values of all the properties of web-server/ApacheServer/host1.
$ changemgr hosts -o all /web-server/ApacheServer/host1 |