[Contents] [Prev] [Next] [Index] [Report an Error]


<junoscript>

Usage

<!-- when emitted by a client application -->
<junoscript version="version" [hostname="hostname"] [release="release"]>
    <rpc>
        <!-- all tag elements generated by a client application -->
    </rpc>
</junoscript>

<!-- when emitted by the JUNOScript server -->
<junoscript version="version" hostname="hostname" os="os" release="release">
    xmlns="
namespace-URL" xmlns:xnm="namespace-URL"
    xmlns:junos="
namespace-URL"
    <rpc-reply>
        <!-- all tag elements generated by the JUNOScript server -->
    </rpc-reply>
</junoscript>

Description

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.

Attributes

hostname—Names the machine on which the tag element's originator is running.

os—Specifies the operating system of the machine named by the hostname attribute.

release—Identifies the software release being run by the tag element's originator. Software modules always set this attribute, but client applications do not have to.

version—(Required) 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 JUNOScript 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 6.1R1 for the initial release of version 6.1.

xmlns:xnm—Names the XML namespace for the JUNOScript tag elements enclosed by the <junoscript> tag element that have the xnm: prefix on their names. 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.

See Also

<rpc>, <rpc-reply>


[Contents] [Prev] [Next] [Index] [Report an Error]