Sun Management Center Change Manager 1.0 Administration Guide

How to View Folder Contents (Command Line)

A folder can contain files and other folders.

To modify folder properties, see How to Modify File or Folder Properties (Command Line).

  1. Determine which folder to view.

    For example, view the contents of the web-server/ApacheServer folder.

  2. View the folder contents.


    $ changemgr files [ -u username ] [ -p file ] [ -l ] [ -d ] [ -R ] \
    [ -o format ] [ relfilepath ... ]
    -l

    Present detailed information in tabular form.

    -d

    Present information about the folder itself, rather than about the folder's contents.

    -R

    Describe all the folder'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.

    relfilepath

    Specifies the path to a file or folder that is relative to the top of the Change Manager repository.

    For descriptions of the other options, see How to Create a Folder (Command Line).

Example-Viewing Contents of the Root of the Repository

Suzi views the contents of the root of the Change Manager repository, which is the root folder.


$ changemgr files

Example-Viewing Folder Contents

Suzi views the contents of the web-server/ApacheServer folder.


$ changemgr files /web-server/ApacheServer

Example-Viewing Information About the Folder

Suzi views the information about the web-server/ApacheServer folder.


$ changemgr files -d /web-server/ApacheServer

Example-Viewing Folder Contents in Table Form

Suzi views the contents of the web-server/ApacheServer folder in table form.


$ changemgr files -l /web-server/ApacheServer

Example-Viewing Folder Contents and Contents of the Folder's Descendents

Suzi views the contents of the web-server/ApacheServer folder and the folder's descendents.


$ changemgr files -R /web-server/ApacheServer

Example-Viewing Folder Contents and Specific Properties

Suzi views the contents of the web-server/ApacheServer folder. She wants to see the values of the Description property and the save property for each object. Note that you can use either format shown.


$ changemgr files -o Description,save /web-server/ApacheServer

$ changemgr files -o "Description save" /web-server/ApacheServer

Example-Viewing Folder Contents and All Properties

Suzi views the contents of the web-server/ApacheServer folder and wants to see the values of all the properties for each object.


$ changemgr files -o all /web-server/ApacheServer

Example-Viewing Detailed Information About the Contents and Properties of a Folder and Its Descendents

Suzi views detailed information in table form about the contents and all properties of the web-server/ApacheServer folder and the folder's descendents.


$ changemgr files -l -R -o all /web-server/ApacheServer