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:
$jnx->request_end_session( ); $jnx->disconnect();
The load_configuration.pl script
invokes the graceful_shutdown
subroutine
instead (for more information, see Handling Error
Conditions).
graceful_shutdown($jnx, $xmlfile, STATE_LOCKED, REPORT_SUCCESS);