[Contents]
[Prev]
[Next]
[Index]
[Report an Error]
Parsing the JUNOScriptServer’s Opening <junoscript>
Tag
The server then emits its opening <junoscript> tag, which has the following form (the tag appears on multiple lines
only for legibility):
<junoscript xmlns="namespace-URL" xmlns:junos="namespace-URL" \
schemaLocation="namespace-URL" os="JUNOS" \
release="release-code" hostname="hostname" version="version">
The attributes are as follows:
-
hostname—The name of the routing platform
on which the JUNOScript server is running.
-
os—The operating system of the routing
platform on which the JUNOScript server is running. The value is always JUNOS.
-
release—The identifier for the version
of the JUNOS software from which the JUNOScript server is derived
and that it is designed to understand. It is presumably in use on
the routing platform where the JUNOScript server is running. The value
of the release attribute uses the standard notation for Juniper
Networks software version numbers. For example, the value 9.4R1 represents the initial version of JUNOS Release 9.4.
-
schemaLocation—The XML namespace for the
XML Schema-language representation of the JUNOS configuration hierarchy.
-
version—The version of the JUNOScript API
that the JUNOScript server is using.
-
xmlns—The XML namespace for the tag elements
enclosed by the <junoscript> tag element that do not have
a prefix on their names (that is, the default namespace for JUNOS
XML tag elements). The value is a URL of the form http://xml.juniper.net/xnm/version/xnm, where version is a string such as 1.1.
-
xmlns:junos—The XML namespace for the tag
elements enclosed by the <junoscript> tag element that
have the junos: prefix on their names. The value is a URL
of the form http://xml.juniper.net/junos/release-code/junos, where release-code is
the standard string that represents a release of the JUNOS software.
For example, the value 9.4R1 represents the initial
version of JUNOS Release 9.4.
In the following example of a JUNOScript server’s
opening <junoscript> tag, the version attribute
indicates that the server is using JUNOScript version 1.0, and the hostname attribute indicates that the routing platform’s
name is big-router. The os and release attributes
indicate that the routing platform is running the initial version
of JUNOS Release 9.4. The xmlns and xmlns:xnm attributes indicate that the default namespace for JUNOS XML tag
elements and the namespace for tag elements that have the xnm: prefix is http://xml.juniper.net/xnm/1.1/xnm. The xmlns:junos attribute indicates that the namespace for tag elements that have
the junos: prefix is http://xml.juniper.net/junos/9.4R1/junos. The tag appears on multiple lines only for legibility.
<junoscript xmlns="http://xml.juniper.net/xnm/1.1/xnm"\
xmlns:junos="http://xml.juniper.net/junos/9.4R1/junos" \
schemaLocation="http://xml.juniper.net/junos/9.4R1/junos" os="JUNOS" \
release="9.4R1" hostname="big-router" version="1.0">
[Contents]
[Prev]
[Next]
[Index]
[Report an Error]