The sm_edit
utility
As part of the
VMware Smart Assurance
deployment and configuration process, you need to
modify certain files. User modifiable files include configuration files, rule
set files, templates, and files (such as seed files and security configuration
files) that contain encrypted passwords. Original versions of these files are
installed into appropriate subdirectories under the
BASEDIR
/smarts/
directory. Examples follow:
Examples
- The original versions of theGlobal Managerconfiguration files on UNIX are installed to /opt/InCharge/SAM/smarts/conf/ics
- Original versions of files should not be altered. If a file requires modification, it must be stored as a local copy of the file inBASEDIR/smarts/local or one of its subdirectories. For example:Examples
- A modified dxa-sam.conf file on UNIX should be saved to /opt/InCharge/SAM/smarts/local/conf/ics
- VMware Smart Assurancesoftware is designed to first search for user modifiable files inBASEDIR/smarts/local or one of its subdirectories. If a modified version of a file is not found in the local area, the software then searches appropriate nonlocal directories.To facilitate proper file editing, provides thesm_editutility with every product. When used to modify an original version of a file, this utility automatically creates a local copy of the file and places it in the appropriate location underBASEDIR/smarts/local. This ensures that the original version of the file remains unchanged. You can invokesm_editfrom the command line.To invoke thesm_editutility from the command line, specify the path and the name of the file to edit underBASEDIR/smarts. If multiple products are running on the same host, invokesm_editfrom the bin directory of the product with the files to edit.ExampleTo edit the configuration file for theGlobal Manager, invoke thesm_editutility as follows:# /opt/InCharge/SAM/smarts/bin>sm_edit conf/ics/dxa-sam.confIn this example, thesm_editutility automatically creates a local copy of the dxa-sam.conf file in the /opt/InCharge/SAM/smarts/local/conf/ics directory and opens the file in a text editor. If a local version of the file already exists, thesm_editutility opens the local version in a text editor. In addition,sm_editcreates any necessary subdirectories.The provides additional information about thesm_editutility.