Question : Problem: I need to script nsradmin to update clients in legato Networker 7.1

What I am doing now is:
type nsradmin
In nsradmin pasting in:
              . type : NSR client;name:cmsrender01
then paste in again:  
            update  group: Servers
Typeing Y for "yes update"  
Hit enter.

I want to do this for several clients and often.

is there a way to script it ?

something like:
printf ". type : NSR client;name:dcbc0212\n, update  group: Servers\n, Y\n" | nsradmin -i -



Answer : Problem: I need to script nsradmin to update clients in legato Networker 7.1

I figured this one out and figured it was a shame not to document it.  

There is some stuff out there on this but not enough.

It appears that if you want to make a change and run a "script" it asks you to if you want to accept the
change Y / N.  I have not find a way to get around that.

If you create a "change file" it assumes you know what you are doing and does not prompt you.

Example:
 nsradmin -i  mychange.txt

mychange.txt:
. type : NSR client;name:dcbc0212
update  group: Servers

Life is good.  

Random Solutions  
 
programming4us programming4us