Symptom
Uploading customised WilyHostAgentTemplate.xml file fails with error:
Failed to store custom resource: WilyHostAgentTemplate.xml (detail: The resource
'tc~smd~agent~application~wilyhost|WilyHostAgentTemplate.xml' does not conform
to the rules specified by the 'WilyHost.xsd'schema.)
In the Default trace (not in the Diagnostics Agent UI) of the Diagnostics Agent:
{0}#1#com.sap.smd.server.manager.SMDCheckException: The resource 'tc~smd~agent~application~wilyhost|WilyHostAgentTemplate.xml' does not conform to the rules specified by the 'WilyHost.xsd' schema.
Caused by: org.xml.sax.SAXParseException: Validation error: line: 189; col: 12; @{}:name : Node is declared to be with simple type. It's value 'CIMmetrics' does not match to any of the enumeration facets.
Environment
- SAP Solution Manager 7.1
- SAP Solution Manager 7.2
Cause
- When uploading the WilyHostAgentTemplate.xml it is validated against the schema WilyHost.xsd before its stored in the SMD repository and published to agents
- The WilyHost.xsd was customised and the customisation prevents the change
- There is a mistake in the modified WilyHostAgentTemplate.xml
Resolution
Please note that the blow solution will remove the customisation of the WilyHost.xsd on a global level. Make sure to save the customised WilyHost.xsd if you want to keep it
- Logon to Solution Manager
- Navigate to Agent Administration -> Application Configuration
- In the left tree select com.sap.smd.agent.application.wilyhost
- Select the Scope Global
- Click "Edit"
- Remove the customisation
- Now the modified WilyHostAgentTemplate.xml should upload to the Diagnostics Agent
- Save
- Restart the Diagnostics Agent
Keywords
KBA , SV-SMG-DIA-WLY-HST , Host Adapter , Problem
Product
Attachments
metric.limit.per.action.png |