Networker

[Networker] Update clients with nsradmin using wildcard

2009-09-01 04:12:17
Subject: [Networker] Update clients with nsradmin using wildcard
From: lance <networker-forum AT BACKUPCENTRAL DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 1 Sep 2009 04:08:00 -0400
johannes wrote:
> Hi.
> 
> I need to update a bunch of clients with the remote access parameter. I 
> faile to see how I can use wildcard to help me with this. 
> 
> I need to upodate the remote access field on all clients with certain dns 
> siffix in their name. All clients have FQDN as their name. So I need to 
> update client1.domain.com....client20.domain.com and use domain.com as a 
> wildcard.
> 
> Is this possible with nsradmin?
> 



you have to make saveset file

vi saveset.txt

/u1/test,
/u2/test1,
/u3/test


vi test.sh 
#!/bin/sh 

set ml = (ews1 ews2 ews5 ..) # Client Host name 
foreach test($ml) 
nsradmin -i-<<! 
print type:NSR:client; 
name:$test; 
group:"TEST GROUP"
update save set :`/usr/bin/cat  saveset.txt`
! 
end 



group and saveset => variable possible


^^ Good luck

+----------------------------------------------------------------------
|This was sent by jaeyong.lee AT hynix DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

<Prev in Thread] Current Thread [Next in Thread>
  • [Networker] Update clients with nsradmin using wildcard, lance <=