Sun Management Center Change Manager 1.0 Administration Guide

- Previous: How to View File or Folder Properties (Command Line)
- Next: Chapter 9 Maintaining the Change Manager Topology (Tasks)

## How to Modify File or Folder Properties (Command Line)

1. Determine which file or folder properties you want to modify.

   - File - For example, modify the properties of the `web-server/ApacheServer/ApacheWebServer.flar` file.

   - Folder - For example, modify the properties of the `web-server/ApacheServer` folder.

2. To modify the properties, supply the property names and values.

       $ changemgr fileset [ -u username ] [ -p file ] [ -s name=value ]  ... \
       [ -s name ] ... relfilepath ...

   `-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.

   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-Modifying File Properties

Suzi modifies the `Description` property of the `web-server/ApacheServer/ApacheWebServer.flar` file.

    $ changemgr fileset -s Description="Apache Web Server archive" \
    /web-server/ApacheServer/ApacheWebServer.flar

### Example-Deleting a File Property

Suzi deletes the `Description` property of the `web-server/ApacheServer/ApacheWebServer.flar` file.

    $ changemgr fileset -s Description \
    /web-server/ApacheServer/ApacheWebServer.flar

### Example-Deleting File Properties

Suzi deletes the `Description` property and the `Name` property from the `web-server/ApacheServer/ApacheWebServer.flar` file.

    $ changemgr fileset -s Description -s Name \
    /web-server/ApacheServer/ApacheWebServer.flar

### Example-Deleting a File Property From One or More Files

Suzi deletes the `Description` property from the `web-server/ApacheServer/ApacheWebServer.flar` file and the `web-server/ApacheServer/ApacheWebServer.txt` file.

    $ changemgr fileset -s Description \
    /web-server/ApacheServer/ApacheWebServer.flar \
    /web-server/ApacheServer/ApacheWebServer.txt

### Example-Recursively Setting Folder Properties

Suzi recursively sets the `Description` property of the contents of the `web-server/Apache Server` folder.

    $ changemgr fileset -R \
    -s Description="File related to the Apache Web Server" \
    /web-server/ApacheServer

### Example-Modifying Folder Properties

Suzi modifies the `Description` property of the `web-server/Apache Server` folder.

    $ changemgr fileset \
    -s Description="Folder to hold Apache Web Server files" \
    /web-server/ApacheServer

- Previous: How to View File or Folder Properties (Command Line)
- Next: Chapter 9 Maintaining the Change Manager Topology (Tasks)

- © 2010, Oracle Corporation and/or its affiliates