Matt Yong | Using the CWCLI command "export inventory" to retrieve inventory information from the Cisco Prime LMS 4.1, we encountered an issue where the resulting output has an invalid/broken XML syntax. This has cause the XML parser to throw the "Premature end of file" error when attempting to parse the output.
The following is an excerpt from the CWCLI output:
<Cisco_OSElement> <InstanceName>c7600s3223_rp-ADVIPSERVICESK9-M</InstanceName> <OSFamily>c7600s3223_rp</OSFamily> <Version>12.2(33)SRC6</Version> <Description>"Cisco IOS Software, c7600s3223_rp Software (c7600s3223_rp-ADVIPSERVICESK9-M), Version 12.2(33)SRC6, RELEASE SOFTWARE (fc1)</Description> <AdditionalInformation> <AD name = "SysROMVersion" value = """></AD> </AdditionalInformation> </Cisco_OSElement>
The XML output has an unescaped double quotes (") charater as a value in the element of one of the devices retrieved. The entire output is not parsable/usable until the affected devices are removed from the inventory. |
| Please sign in to flag this as inappropriate. |