Cisco Cisco Configuration Engine 3.5 Entwickleranleitung

Seite von 344
9-9
Cisco Configuration Engine Software Development Kit API Reference and Programmer Guide 3.5
OL-17661-02
Chapter 9      DTDs for Cisco IOS Devices
Event Gateway Communications
Sample XML for a Sync-complete Message
<config-success>
    <identifier>sdoeventtest</identifier>
    <config-id>sdo-3660-1</config-id>
</config-success>
DTD for a Sync-failure Message
<!ELEMENT config-failure (identifier, config-id, error-info)>
<!ELEMENT error-info (line-number?, error-message)> 
<!ELEMENT identifier (#PCDATA)> 
<!ELEMENT config-id (#PCDATA)> 
<!ELEMENT line-number (#PCDATA)> 
<!ELEMENT error-message (#PCDATA)>
Sample XML for a Sync-failure Message
<config-failure>
    <identifier>sdoeventtes</identifier>
    <config-id>sdo-3660-1</config-id>
    <error-info>
        <line-number>2</line-number>
        <error-message>Line number = 2, Error = 2</error-message>
    </error-info>
</config-failure>
DTD for a Sync-warning Message
<!ELEMENT config-warning (identifier, config-id, warning-message)>
<!ELEMENT identifier (#PCDATA)> 
<!ELEMENT config-id (#PCDATA)> 
<!ELEMENT warning-message (#PCDATA)> 
Table 9-8
XML Elements for ‘sync-complete’ Message
XML Elements
Description
config-failure
The root tag for the failure event
error-info
A container tag that holds the line number tag and error message tag.
identifier
This is a string that uniquely identifies this message within the system. 
It will be set to match the identifier set in the load event.
config-id
This tag identifies the config ID of the device that the cli is to be applied 
to. The value will match the ID that has been configured on the device 
using the cns id command.
Line-number
The number of the line in the config sent to the device that has failed.
error-message
The error message generated when applying the config failed.
Table 9-9
XML Elements for ‘sync-w2arning’ Message
XML Elements
Description
config-warning
The root tag for the warning event
identifier
This is a string that uniquely identifies this message within the system. 
It will be set to match the identifier set in the load event.