[Contents] [Prev] [Next] [Index] [Report an Error]

Locking the Configuration

The main section of the load_configuration.pl script begins by establishing a connection to a JUNOScript server, as described in Establishing the Connection. It then invokes the lock_configuration method to lock the configuration database. In case of error, the script invokes the graceful_shutdown subroutine described in Handling Error Conditions.

     print "Locking configuration database ...\n";
     my $res = $jnx->lock_configuration(????);
     my $err = $res->getFirstError(????);
     if ($err) {
         print "ERROR: $deviceinfo{hostname}: failed to lock configuration. Reason: $err->{message}.\n";
         graceful_shutdown($jnx, $xmlfile, STATE_CONNECTED, REPORT_FAILURE);
     }

[Contents] [Prev] [Next] [Index] [Report an Error]