Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

End a Junos XML Protocol Session and Close the Connection

date_range 27-Jan-22

In a Junos XML protocol session with a Junos device, when a client application is finished making requests, it ends the session by emitting the <request-end-session/> tag within an <rpc> tag element.

content_copy zoom_out_map
<rpc>
    <request-end-session/>
</rpc>

In response, the Junos XML protocol server emits the <end-session/> tag enclosed in an <rpc-reply> tag element and a closing </junoscript> tag.

content_copy zoom_out_map
<rpc-reply xmlns:junos="URL">
    <end-session/>
</rpc-reply>
</junoscript>

The client application waits to receive this reply before emitting its closing </junoscript> tag.

content_copy zoom_out_map
</junoscript>

The client application can then close the SSH, SSL, or other connection to the Junos XML protocol server device.

external-footer-nav