HP Servicecontrol Manager 3.0 Troubleshooting Guide
Servicecontrol Manager Issues
Syntax Problems In The Definition Files
Chapter 3
38
Syntax Problems In The Definition Files
Symptom Using one of the following commands yields a syntax error for the associated
file.xml
.
mxnode -a -f
file.xml
mxngroup -a -f
file.xml
mxuser -a -f
file.xml
mxrole -a -f
file.xml
mxtool -a -f
file.xml
mxauth -a -f
file.xml
Fix View the syntax for the known good XML entries by using the optional -lf command
format with an mxcommand. For example:
mxauth -lf
NOTE The output from the optional -lf command format includes a guid attribute. It stands
for Global Unique ID, and this attribute is added automatically when the XML file is
added to SCM. Your XML file should not contain this attribute, so ignore it when
comparing the known good entries to your file.
Compare the failing XML file to the known good XML entries. Verify the syntax of the
failing XML file using the following guidelines:
• XML element tags
An XML file consists of elements like:
<element_name>element data</element_name>
or
<element_name>
<child_element_name>child data</child_element_name>
...
</element_name>
Each element must have a start tag and end tag. XML is case-sensitive, so the start
tag and end tag must match exactly. For example, <ElEmEnt></ElEmEnt>.
• Nested elements
Elements must be nested consistently. All child elements must end before the parent
element can end. The section 4 manual pages for the commands: mxauth, mxngroup,
mxnode, mxrole, mxtool, and mxuser provide details on the required element order
of the XML files.
• Element attributes
Some elements may have attributes specified:
<element_name attribute1=“value1” attribute2=“value2”></element_name>
Each attribute must be correctly spelled using the correct case, and each attribute
value must be enclosed in “quotes”.