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. Preview of how the sm_edit utility works previews the operation of the sm_edit utility.
All VMware Smart Assurance products use the same basic installation directory structure that is shown in Figure 7.
To invoke the sm_edit utility, 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,
opens in a text editor either a local copy of the mpls.conf file in BASEDIR/smarts/local/conf/mpls-t or an original copy of the mpls.conf file in BASEDIR/smarts/conf/mpls-t if no local copy exists.
After you modify and save the mpls.conf file, the sm_edit utility saves the modified version of the file to the BASEDIR/smarts/local/conf/mpls-t directory.
You can use the sm_edit utility to edit any text file, not just a configuration file, in the BASEDIR/smarts or BASEDIR/smarts/local directory. Because sm_edit assumes a starting point of BASEDIR/smarts, the text-file path that you specify begins with the directory name (conf, rules, script, and so on) under the BASEDIR/smarts directory.
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.
The VMware Smart Assurance System Administration Guide provides additional information about the sm_edit utility.