Sun Management Center Change Manager 1.0.1 Administration Guide

- Previous: How to Modify Managed Host Properties (Command Line)
- Next: How to Modify Host Group Properties (Command Line)

## How to View Host Group Properties (Command Line)

To modify host group properties, see How to Modify Host Group Properties (Command Line).

1. Determine which host group's properties to view.

   For example, view the properties of the `web-server/ApacheServer` host group.

2. View host group properties.

       $ changemgr hosts [ -u username ] [ -p file ] [ -d domain ] \
       [ -l ] [ -g ] [ -R ] [ -o format ] [ topopath ... ]

   `-l`

     Presents detailed information about the specified managed hosts and host groups in tabular form.

   `-g`

     Presents information about the host group itself, rather than about the host group's contents.

   `-R`

     Describes all the host group's descendents.

   `-o` format

     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.

   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—Viewing a Host Group Property

Chris views the value of the `Description` property of `web-server/ApacheServer`.

    $ changemgr hosts -g -o Description /web-server/ApacheServer

### Example—Viewing Host Group Properties

Chris views the values of the `Description` and `Name` properties of `web-server/ApacheServer`.

    $ changemgr hosts -g -o Description,Name /web-server/ApacheServer

### Example—Viewing All Host Group Properties

Chris views the contents of the `web-server/ApacheServer` host group.

    $ changemgr hosts -g -o all /web-server/ApacheServer

- Previous: How to Modify Managed Host Properties (Command Line)
- Next: How to Modify Host Group Properties (Command Line)

- © 2010, Oracle Corporation and/or its affiliates