2 Intern

 • 

724 Posts

September 22nd, 2008 07:00

You can create a script that will call nsradmin and disable/enable the groups you want. Basically, scritp will call "nsradmin -i cmdfile", and the cmdfile will be something like:

print type: NSR group; name: "group_name"
update autostart: Enabled

18 Posts

September 22nd, 2008 08:00

Thanks very much, that is exactly what I want. I am getting an error when I try and run the script.

I get the printout of the group, but then an error when trying to update it.

C:\Legato\nsr\bin>nsradmin -i cmdfile.txt
type: NSR group;
name: Test;
comment: ;
snapshot: False;
autostart: Disabled;
autorestart: Disabled;
start time: "3:33";
last start: ;
last end: ;
interval: "24:00";
restart window: "12:00";
force incremental: Yes;
savegrp parallelism: 0;
client retries: 1;
clones: No;
clone pool: Default Clone;
success threshold: Warning;
options: ;
level: ;
printer: ;
schedule: ;
schedule time: ;
expiration time: ;
inactivity timeout: 30;
File inactivity threshold: 30;
File inactivity alert threshold: 30;
work list: ;
completion: ;
status: idle;
Snapshot Policy: Daily;
Snapshot Pool: Default;
Resource parse error: Unexpected end of input
autostart: Enabled ^
usage: update attrlist



If I remove the the line 'update autostart: Enabled'. Then it will print out the details of the group without any problems. Any ideas on this error?

Thanks again

18 Posts

September 22nd, 2008 09:00

Hi,

All works great now, it just needed a line break in between the 2 lines.

Thanks!!
No Events found!

Top