Communication between the JUNOScript server and
a client application is session-based. The two parties explicitly
establish a connection before exchanging data and close the connection
when they are finished. The following list outlines the basic structure
of a JUNOScript session. For more specific information, see Client Application’s Role in a JUNOScript Session.
The client application establishes a connection to the
JUNOScript server and opens the JUNOScript session.
The JUNOScript server and client application exchange
initialization information, used to determine if they are using compatible
versions of the JUNOS software and the JUNOScript API.
The client application sends one or more requests to the
JUNOScript server and parses its responses.
The client application closes the JUNOScript session and
the connection to the JUNOScript server.