Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Close the Connection to the Junos XML Protocol Server in Perl Client Applications

In Junos XML protocol Perl client applications, you can end the Junos XML protocol session and close the connection to the device by invoking the request_end_session and disconnect methods. Several of the sample scripts included in the Junos XML protocol Perl client distribution invoke the request_end_session and disconnect methods in standalone statements. For example:

The load_configuration.pl script invokes the graceful_shutdown subroutine instead (for more information, see Handling Error Conditions).