As long as a client application holds a lock on the candidate configuration, other applications and users cannot change the candidate. To unlock the candidate configuration, the client application includes the <unlock-configuration/> tag in an <rpc> tag element:
<rpc>
<unlock-configuration/>
</rpc>
To confirm that it has successfully unlocked the configuration, the JUNOScript server returns an opening <rpc-reply> and closing </rpc-reply> tag with nothing between them:
<rpc-reply xmlns:junos="URL">
</rpc-reply>
If the JUNOScript server cannot unlock the configuration, the <rpc-reply> tag element instead encloses an <xnm:error> tag element explaining the reason for the failure.