junoscript tag (JUNOScript)hostname attribute (JUNOScript)junoscript tagjunos:key attribute (JUNOScript)junoscript tagos attribute (JUNOScript)junoscript tagrelease attribute (JUNOScript)junoscript tagschemaLocation attribute (JUNOScript)junoscript tagversion attribute (JUNOScript)junoscript tagxmlns attribute (JUNOScript)junoscript tagxmlns:junos attribute (JUNOScript)junoscript tag<!- - emitted by a client application - ->
<junoscript version="version" [hostname="hostname"] [junos:key="key"]
[release="release"]>
<!- - all tag elements generated by the application during the session - ->
</junoscript>
<!- - emitted by the JUNOScript server - ->
<junoscript xmlns="namespace-URL" xmlns:junos="namespace-URL"
schemaLocation="namespace-URL" os="os" release="release”
hostname="hostname" version="version">
<!- - all tag elements generated by the JUNOScript server during the session - ->
</junoscript>
Enclose all tag elements in a JUNOScript session (act as the root tag element for the session). The client application and JUNOScript server each emit this tag element, enclosing all other tag elements that they emit inside it.
hostname—Names the machine on which the tag element’s originator is running.
junos:key—Requests that the JUNOScript server include the junos:key="key" attribute in the opening tag of each tag element that serves as an identifier for a configuration object.
os—Specifies the operating system of the machine named by the hostname attribute.
release—Identifies the JUNOS software release being run by the tag element’s originator. Software modules always set this attribute, but client applications do not have to.
schemaLocation—Specifies the XML namespace for the XML Schema-language representation of the JUNOS configuration hierarchy.
version—(Required for a client application) Specifies the version of the JUNOScript API used for the enclosed set of tag elements.
xmlns—Names 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-code/xnm, where version-code is a string such as 1.1.
xmlns:junos—Names 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 Internet software, such as 9.3R1 for the initial version of JUNOS Release 9.3.
See Emitting the Opening <junoscript> Tag, Parsing the JUNOScriptServer’s Opening <junoscript> Tag, and Requesting an Indicator for Identifiers.