Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Automation Scripting User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

close() Function (SLAX and XSLT)

date_range 13-Jan-21

Namespaces

content_copy zoom_out_map
http://xml.juniper.net/junos/commit-scripts/1.0

SLAX Syntax

content_copy zoom_out_map
var $results = jcs:close(connection);

XSLT Syntax

content_copy zoom_out_map
<xsl:variable name="results" select="jcs:close(connection)"/>

Description

Close a previously opened connection handle.

Parameters

connection

Connection handle generated by a call to the jcs:open() function.

Usage Examples

The following example closes the connection handle $connection, which was originally generated by a call to the jcs:open() function:

content_copy zoom_out_map
var $connection = jcs:open();
...
var $result = jcs:close($connection);

Release Information

Function introduced in Junos OS Release 9.3.

footer-navigation