Running sm_xml for export

The XML exporter command parameters table describes four export-specific parameters associated with the
sm_xml
utility.
XML exporter command parameters
Parameter
Description
Optional flag
Options:
--server=<name>
Name of the
from which you are retrieving repository information. By default, this
name is INCHARGE.
-s
--broker=<location>
Alternate location of the
VMware Smart Assurance
broker. Must be typed as
host:port.
The default is the broker specified for the
at installation.
-b
Commands:
export --xmlfile=<output-xmlfile> <asl-script>
Export an XML document using the XML export ASL script named <asl-script>. By default, the XML is written to standard output.
Optionally, the XML can be written to a file if you specify: --xmlfile=<output-xmlfile>.
-x <output-xmlfile>
Command arguments:
output=<xmlfile>
Name of the resulting XML file (and qualified path to save the file). Optionally, you can choose not to define a directory and filename and the resulting XML will be displayed in standard output.
-x
<asl-script>
The ASL rule script used to export the
VMware Smart Assurance
topology. The adapter will look for the ASL script in BASEDIR/local/rules/xml-if first. If it is not found there, it will locate it in BASEDIR/rules/xml-if.
N/A
The resulting XML is passed through a validating parser. If the document is noncompliant with the ICIM/XML DTD, an error will appear and the program will exit with a nonzero exit status. When an error occurs, the XML is still written to standard output.
For example, to generate an XML file called InChargeApplications.xml containing information from a
called INCHARGE, with an ASL Export script called xml-export-Applications.asl, use the following command:
t
sm_xml --server=<
INCHARGE
> export --xmlfile=InChargeApplications.xml xml-export-Applications.asl
s