The Change Manager repository is organized as a file manager. You can traverse through nested folders to view folder contents and file properties. You can also create folders and files.
Change Manager objects have properties associated with them. You can change properties for files by using the browser interface. You can change properties for files and folders by using the command-line interface.
The following topics are discussed in this chapter:
Maintaining the Change Manager Repository by Using the Browser Interface (Task Map)
Maintaining the Change Manager Repository by Using the Browser Interface
Maintaining the Change Manager Repository by Using the Command-Line Interface (Task Map)
Maintaining the Change Manager Repository by Using the Command-Line Interface
To perform operations, such as installation, update, and audit, go to the Hosts section. See Chapter 5, Installing Solaris Flash Archives on Managed Hosts (Tasks) and Chapter 6, Auditing Software Configurations (Tasks).
The following table identifies the procedures you need to set up files in the Change Manager repository.
Task |
Description |
For Instructions |
---|---|---|
Access the Files section and folder. |
Access the Files section and the appropriate folder in the Change Manager repository. |
See How to Access the Files Section and Appropriate Folder (Web Browser). |
Create a folder. |
Create a folder in the Change Manager repository. | |
Rename a file or folder. |
Rename a file or folder in the Change Manager repository. | |
Export a file. |
Export a file from the Change Manager repository. |
See How to Export a File From the Change Manager Repository (Web Browser). |
Create a copy of a file. |
Create a copy of a file in the current folder. | |
Move files and folders. |
Move files and folders to another folder in the Change Manager repository. |
See How to Move Files and Folders to Another Folder (Web Browser). |
Delete files and folders. |
Delete files and folders from the Change Manager repository. | |
View folder contents. |
View the contents of a folder. | |
View or modify file properties. |
View or modify the properties of files in the repository. |
This section describes how to use the browser interface to manage the file hierarchy of the Change Manager repository.
Suffixes of file names in the Change Manager repository must reflect the type of file. The suffixes are as follows:
.bmft for manifests
.brul for audit rules files
.cmsp for shared profiles
.flar for Solaris Flash archives
.miniroot for Solaris boot images
.txt for reports
When you use the browser interface to name files in the repository, the appropriate suffix is automatically added to the file name you specify. However, if you specify the appropriate suffix in the file name, the name is used as-is.
For example, if you name a report file cm08.status, then the name of the report stored in the repository automatically becomes cm08.status.txt. If, however, you name the file cm08.status.txt, no .txt suffix is added because it is already the last part of the file name.
When you use the command-line interface to name files in the repository, you must manually specify the suffix that indicates the type of the file.
To learn how to navigate through the browser interface, see Appendix A, Navigating Through the Change Manager Browser Interface (Reference).
Note that the top of the Files section hierarchy is a folder.
To go to the Files section, click the Files tab in the general links area at the top of the page.
The top-level Files page shows a table, which can contain files and folders. The table is a file manager.
Drill down to the appropriate folder.
Click a folder name to go into that folder. Then, view the folder's contents. Continue to click folder names until you reach the folder or file you want.
Note that the top of the Files section hierarchy is a folder.
If you are not already in the appropriate folder, see How to Access the Files Section and Appropriate Folder (Web Browser).
From the File Actions menu, choose New Folder.
Supply a folder name.
For example, create a folder named apache in which to store objects related to the Apache web server.
Click Create to create the folder, return to the parent folder, and see the new folder.
Click Cancel to return to the previous page.
The rename action can be taken on one file or folder at a time.
If you are not already in the appropriate folder, see How to Access the Files Section and Appropriate Folder (Web Browser).
Select the object to rename from the table.
From the File Actions menu, choose Rename.
A page appears that shows the current name of the folder or file.
Supply a new file name or new folder name in the New Name field.
If the name you supply does not include the proper suffix, the application adds the suffix for you.
Click Rename to change the name of the folder or file in the Change Manager repository.
Click Cancel to return to the previous page.
You can use the browser interface to export only one file at a time.
Folders cannot be exported. Only files can be exported.
If you are not already in the appropriate folder, see How to Access the Files Section and Appropriate Folder (Web Browser).
To select the file to export, click the checkbox next to the file name.
From the File Actions menu, choose Export File.
A page appears that shows the name of the file to export.
Supply a path name to the place outside of the repository to copy the file.
Click Export to copy the file outside of the repository.
Click Cancel to return to the previous page.
You can create a copy of a shared profile or an audit rules file only. You can use the browser interface to copy only one file at a time.
The copy of the file must be created in the same folder as the original file. To simulate the creation of a copy of a file in another folder, do the following:
Use the Copy File action to create the copy (described in this section)
Use the Move action to move the copy to another folder (described in the next section)
If you are not already in the appropriate folder, see How to Access the Files Section and Appropriate Folder (Web Browser).
To select the file to copy, click the checkbox next to the file name.
From the File Actions menu, choose Copy File.
A page appears that shows the name of the file to copy.
Supply a file name for the copy.
The copy of the file must be created in the same folder as the original file.
Click Copy to create the copy of the file.
Click Cancel to return to the previous page.
If you are not already in the appropriate folder, see How to Access the Files Section and Appropriate Folder (Web Browser).
To select the files and folders to move, click the checkbox next to the file and folder names.
From the File Actions menu, choose Move.
A page appears that shows the name of the files and folders to move.
Supply a path name to the destination folder in the Change Manager repository.
Click Move to move the files and folders to the other folder.
Click Cancel to return to the previous page.
Folders must be empty before you delete them.
If you are not already in the appropriate folder, see How to Access the Files Section and Appropriate Folder (Web Browser).
To select the files and folders to delete, click the checkbox next to the file and folder names.
From the File Actions menu, choose Delete.
A page appears that shows the names of the files and folders to delete from the repository.
Click Delete to delete the files and folders.
Click Cancel to return to the previous page.
If you are not already in the appropriate folder, see How to Access the Files Section and Appropriate Folder (Web Browser).
A page appears that shows the contents of the folder.
Click Cancel to return to the previous page.
This procedure describes how to use the browser interface to view and modify file properties in the Change Manager repository. The browser interface shows properties and their values on property pages for the object. To view an object's property page, click the name of the object.
If you are not already in the appropriate folder, see How to Access the Files Section and Appropriate Folder (Web Browser).
Click the file name to access the file's property page to do either of the following:
View the file's properties.
The property pages for a manifest and a report are read-only.
Click Cancel to return to the file's parent folder.
Modify the file's property values.
Click Save to save the property value changes and return to the file's parent folder.
Click Cancel to return to the file's parent folder.
The following table identifies the procedures you need to manage files in the Change Manager repository. See the changemgr(1MCM) man page.
Task |
Description |
For Instructions |
---|---|---|
Create a folder. |
Create a folder in the Change Manager repository. | |
Rename a file or folder. |
Rename a file or folder in the Change Manager repository. | |
Export a file. |
Export a file from the Change Manager repository. | |
Move files and folders. |
Move files and folders to another folder in the Change Manager repository. |
See How to Move Files and Folders to Another Folder (Command Line). |
Delete files and folders. |
Delete files and folders from the Change Manager repository. | |
View folder contents. |
View the contents of a folder. | |
View file properties. |
View the properties of files in the repository. | |
Modify file properties. |
Modify the properties of files in the repository. |
This section describes how to use the command-line interface to manage the file hierarchy of the Change Manager repository.
The top of the Files section hierarchy is a folder.
Determine where to create the folder.
For example, create a folder in the web-server folder.
Create and name the folder.
$ changemgr mkdir [ -u username ] [ -p file ] reldirpath ... |
Specify the user name to authenticate. If this option is not specified, the user is the current UNIX user.
file consists of a single line, which contains the password. If file is -, then the user can supply the password as standard input.
If the -p option is not supplied, then the changemgr command prompts the user for his password.
Specifies the path to a folder that is relative to the top of the Change Manager repository.
Choose a meaningful name that indicates the types of files the folder contains. For example, create a folder named apache in which to store objects related to the Apache web server.
Suzi creates the apache folder in the web-server folder.
$ changemgr mkdir -p .pfile /web-server/apache |
The rename action can be taken on one file or folder at a time.
Determine which file or folder to rename.
For example, rename the web-server/apache folder to be web-server/ApacheServer.
Rename the file or folder.
$ changemgr filemove [ -u username ] [ -p file ] old_relfilepath.type \ new_relfilepath.type |
Specifies the path to a file or folder. The path is relative to the top of the Change Manager repository.
Specifies the file name suffix that represents the file type. File type suffixes are as follows:
.flar for archives
.miniroot for boot images
.bmft for manifests
.brul for audit rules files
.txt for reports
.cmsp for shared profiles
Folders do not use a file suffix.
For descriptions of the other options, see How to Create a Folder (Command Line).
Suzi renames the web-server/apache folder to be web-server/ApacheServer.
$ changemgr filemove /web-server/apache \ /web-server/ApacheServer |
Only files, not folders and Solaris boot images, can be exported.
Determine which files to export.
For example, export the /web-server/apache/host1.bmft file to host2:/home/suzi.
Export the files:
Export a single file, relfilepath, from the repository as filepath.
$ changemgr export [ -u username ] [ -p file ] relfilepath filepath |
Export one or more files to the specified folder, dirpath, outside of the repository.
$ changemgr export [ -u username ] [ -p file ] relfilepath ... dirpath |
Specifies an absolute or relative path to a directory. This directory is not within the Change Manager repository.
Specifies an absolute or relative path to a file. This file path is not within the Change Manager repository.
Specifies the path to a file, not including a 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).
Suzi exports the /web-server/apache/host1.bmft file to her home directory, /net/host2/home/suzi.
$ changemgr export /web-server/apache/host1.bmft \ /net/host2/home/suzi/host1.bmft |
Suzi exports the /web-server/apache/host1.bmft file and the /web-server/apache/host2.bmft file to her home directory, /net/host2/home/suzi.
$ changemgr export /web-server/apache/host1.bmft \ /web-server/apache/host2.bmft /net/host2/home/suzi |
Determine which files and folders to move.
For example, move the web-server/host1.bmft file and the web-server/host2.bmft file to the web-server/ApacheServer folder.
Move the files and folders to another folder in the Change Manager repository.
$ changemgr filemove [ -u username ] [ -p file ] relfilepath ... \ reldirpath |
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).
Suzi moves the web-server/host1.bmft file and the web-server/host2.bmft file to the web-server/ApacheServer folder.
$ changemgr filemove /web-server/host1.bmft \ /web-server/host2.bmft /web-server/ApacheServer |
Folders must be empty before you delete them.
Determine which files and folders to delete.
For example, delete the web-server/host1.bmft file, the host2.bmft file, and the web-server/ApacheServer folder.
Delete the files and folders.
$ changemgr delete [ -u username ] [ -p file ] 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).
Suzi deletes the web-server/host1.bmft file, the host2.bmft file, and the web-server/ApacheServer folder.
$ changemgr delete /web-server/host1.bmft \ /web-server/host2.bmft /web-server/ApacheServer |
A folder can contain files and other folders.
To modify folder properties, see How to Modify File or Folder Properties (Command Line).
Determine which folder to view.
For example, view the contents of the web-server/ApacheServer folder.
View the folder contents.
$ changemgr files [ -u username ] [ -p file ] [ -l ] [ -d ] [ -R ] \ [ -o format ] [ relfilepath ... ] |
Present detailed information in tabular form.
Present information about the folder itself, rather than about the folder's contents.
Describe all the folder'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 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).
Suzi views the contents of the root of the Change Manager repository, which is the root folder.
$ changemgr files |
Suzi views the contents of the web-server/ApacheServer folder.
$ changemgr files /web-server/ApacheServer |
Suzi views the information about the web-server/ApacheServer folder.
$ changemgr files -d /web-server/ApacheServer |
Suzi views the contents of the web-server/ApacheServer folder in table form.
$ changemgr files -l /web-server/ApacheServer |
Suzi views the contents of the web-server/ApacheServer folder and the folder's descendents.
$ changemgr files -R /web-server/ApacheServer |
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 |
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 |
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 |
To view file or folder properties, see How to View Folder Contents (Command Line).
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.
To modify the properties, supply the property names and values.
$ changemgr fileset [ -u username ] [ -p file ] [ -s name=value ] ... \ [ -s name ] ... relfilepath ... |
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 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).
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 |
Suzi deletes the Description property of the web-server/ApacheServer/ApacheWebServer.flar file.
$ changemgr fileset -s Description \ /web-server/ApacheServer/ApacheWebServer.flar |
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 |
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 |
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 |
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 |