Sun Management Center Change Manager 1.0 Administration Guide

How to Import Audit Rules Files to the Change Manager Repository (Command Line)

The audit rules file is used to build manifests and audit managed hosts.

The time required to import a file to the Change Manager repository depends on the size of the file and the speed of the network.

  1. Determine where the audit rules file exists and where to store it.

    For example, copy the audit rules file from /net/test1/home/suzi/usr-only.brul to the web-server folder.

  2. Import an audit rules file to the Change Manager repository by using one of these changemgr import commands.

    • The following command line imports one file at a time. You can also use this command line to rename the file.


      $ changemgr import [ -u username ] [ -p file ] filepath[.type] \
      relfilepath.type
      
    • The following command line imports several files to a folder simultaneously.


      $ changemgr import [ -u  username ] [ -p file ]  filepath.type ... \
      reldirpath
      
    -u username

    Specify the user name to authenticate. If this option is not specified, the user is the current UNIX user.

    -p file

    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.

    filepath

    Specifies an absolute or relative path to a file. This file path is not within the Change Manager repository.

    reldirpath

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

    relfilepath

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

    .type

    Specifies the file name suffix that represents the file type. An audit rules file uses the .brul suffix.

    Choose a name that indicates the type of audit specified by the audit rules file. Use the .brul suffix. For example, create an audit rules file named usr-only.brul, which indicates that only files from /usr are cataloged.

Example-Importing an Audit Rules File to the Change Manager Repository

Suzi copies the audit rules file called /net/test1/home/suzi/usr-only.brul to the web-server folder of the repository. She renames the file to be usr_only.brul.


$ changemgr import /net/test1/home/suzi/usr-only.brul \
/web-server/usr_only.brul

Example-Importing Audit Rules Files to the Change Manager Repository

Suzi copies the audit rules files called /net/test1/home/suzi/usr-only.brul and /net/test1/home/suzi/opt-only.brul to the / folder of the repository.


$ changemgr import /net/test1/home/suzi/usr-only.brul \
/net/test1/home/suzi/opt-only.brul /