xnm:error (Junos XML)
Usage
<xnm:error xmlns="namespace-URL" xmlns:xnm="namespace-URL"> <parse/> <source-daemon>module-name</source-daemon> <filename>filename</filename> <line-number>line-number</line-number> <column>column-number</column> <token>input-token-id</token> <edit-path>edit-path-name</edit-path> <statement>statement-string</statement> <message>error-string</message> <re-name>re-name-string</re-name> <database-status-information>user</database-status-information> <reason>reason-string</reason> </xnm:error>
Description
Indicate that the commit script has detected an error in the configuration and has caused the commit operation to fail. The child tag elements described in the Contents section detail the nature of the error.
Attributes
xmlns |
Names the XML namespace for the contents of the tag
element. The value is a URL of the form |
xmlns:xnm |
Names the XML namespace for child tag elements that
have the |
Contents
<column> |
Identifies the element that caused the error by specifying
its position as the number of characters after the first character
in the line specified by the |
<database-status-information> |
Provides information about the users currently editing the configuration. |
<edit-path> |
Specifies the command-line interface (CLI) configuration mode edit path in effect when the error occurred (provided only during loading of a configuration file). |
<filename> |
Names the configuration file that was being loaded. |
<line-number> |
Specifies the line number where the error occurred
in the configuration file that was being loaded, which is named by
the |
<message> |
Describes the error in a natural-language text string. |
<parse/> |
Indicates that there was a syntactic error in the request submitted by the client application. |
<re-name> |
Names the Routing Engine on which the <source-daemon> is running. |
<reason> |
Describes the reason for the error. |
<source-daemon> |
Names the Junos OS module that was processing the request in which the error occurred. |
<statement> |
Specifies the configuration statement in effect when the problem occurred. |
<token> |
Names the element in the request that caused the error. |
Usage Guidelines
See Generate a Custom Warning, Error, or System Log Message in Commit Scripts.
Release Information
Statement introduced in Junos OS Release 7.4.