VMware Smart Assurance provides the sm_edit utility to ensure that modified files are always saved to the appropriate local area and that original copies of the files remain unchanged.

To invoke the sm_edit utility from the command line, go to the BASEDIR/smarts/bin directory and specify the path and the name of the file (relative to the BASEDIR/smarts directory) that you want to edit. For example,

sm_edit conf/voip/voip.conf

opens a local copy of the voip.conf file in BASEDIR/smarts/local/conf/voip (or an original copy of the voip.conf file in BASEDIR/smarts/conf/voip if no local copy exists) in a text editor and saves the modified version of the file to the BASEDIR/smarts/local/conf/voip directory.

You can use the sm_edit utility to edit any text file (configuration file, rule set file, tool script, template) in the BASEDIR/smarts (or BASEDIR/smarts/local) directory. Because sm_edit assumes a starting point of BASEDIR/smarts, you specify the path and the name of the text file beginning with the directory name (conf, rules, script) under the BASEDIR/smarts directory.

The VMware Smart Assurance System Administration Guide provides additional information about the sm_edit utility.

Note:

Original versions of files may be changed or updated as part of an VMware Smart Assurance software upgrade. However, files located in the BASEDIR/smarts/local directory are retained during an upgrade.