I need help coming up with a script that sets rescue config and snapshot recovery. Currently have this but it doesn't seem to be working:
ersion 1.1;
ns junos = "http://xml.juniper.net/junos/*/junos";
ns xnm = "http://xml.juniper.net/xnm/1.1/xnm";
ns jcs = "http://xml.juniper.net/junos/commit-scripts/1.0";
import "../import/junos.xsl";
/* Junos Space annotations */
/* @CONTEXT = "/device" */
/* @NAME = "set rescue and recovery" */
/* @DESCRIPTION = "set rescue and recovery" */
/* @ISLOCAL = "true" */
var $local = jcs:open();
match / {
<op-script-results> {
var $command = <command> "request system configuration rescue save";
var $command1 = <command> "request system snapshot recovery";
var $results1 = jcs:execute( $local , $command , $command1 );
copy-of $results1;
var $close-results = jcs:close( $local);
}
}
------------------------------
MARK JOHNS
------------------------------