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
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Close the Connection to the NETCONF Server in Perl Client Applications

date_range 15-Jul-21

In NETCONF Perl client applications, you can end the NETCONF session and close the connection to the device by invoking the disconnect method.

Several of the sample scripts included in the NETCONF Perl client distribution invoke the disconnect method in standalone statements. For example:

content_copy zoom_out_map
$jnx->disconnect();

The edit_configuration.pl sample script invokes the graceful_shutdown method, which takes the appropriate actions with regard to the configuration database and then invokes the disconnect method.

content_copy zoom_out_map
graceful_shutdown($jnx, $xmlfile, STATE_LOCKED, REPORT_SUCCESS);
footer-navigation