Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scripting Legato 7.x to disable a group using nsradmin

Status
Not open for further replies.

Greenli

Technical User
Mar 11, 2002
9
US
I am having a hard time with getting a script created that will disable a group using nsradmin. We are running on a Windows 2000 AS, Legato 7.x.

Currently we have different clients that fail during full backups and I would like a way to disable the group so that when a client fails within a particular group I can disable the group so I can then run a restart on it. This is important because we run full backups on the weekends and if the group doesn't get disabled, then the next day it will run a SKIP and we will not be able to pick it up again. Any help would be appreciated. Thanks.
 
1 retry attempted and RPC error: Unable to send. These errors occur on different servers each weekend and I have troubleshoot the servers, etc without being able to completly backup all servers without problems. Since we backup so many servers, I just need a script that will help me automate the process a little. Right now I have a monitoring tool looking to see if a group fails with any unsuccessful savesets and it sends me a page. This lets me know to disable the group so I can go back and do a restart. If I can get a script that will disable a group then I can automate that and just remote in on Sunday and do restarts on any groups.
 
Honestly, you have to care about two issues:
- writing the workaround script
- solving the network related problems which you obviously have.

On the first task i can help you:
- create a file (disable_groups) which contains the following lines for EACH group:
. type: NSR group; name: group_name
update autostart: Disabled
- then modify your script and add this line:
nsradmin -i \path_name\disable_groups
That's it.

Don't forget the second step - the script is just an intermediate solution.
 
When I try the script that you sent me I get this error:

unknown command: type:
Legal commands are:
bind [query]
create attrlist
delete [query]
etc. you get the idea.

I am running under a Windows 2000 AS environment. Any ideas?
 
I just have verified my script on Windows. It will run as described, if you slightly modify the command. Use:

nsradmin -i "d:\path_name\disable_groups"


But the problem is in your input file - you obviously forgot the "." at the beginning of line 1. As a consequence, nsradmin thinks that "type" is a command but in fact "." is the command.
 
Yep...figured out that I left off the .

It is now working as I want. Thanks for your help.
 
My pleasure.

Once again - you did not solve the problem yet. Do not underestimate network related problems - NetWorker is a very good tool to discover these issues, even if they have not shown at all so far.

I can not be more specific but in general the major issues are NIC setup and name resolution.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top