Networker

[Networker] NSR admin & regular expressions

2009-08-25 00:06:47
Subject: [Networker] NSR admin & regular expressions
From: lance <networker-forum AT BACKUPCENTRAL DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 25 Aug 2009 00:01:16 -0400
lance wrote:
> vi test.sh
> #!/bin/sh
> 
> set ml = (ews1 ews2 ews5 ..)  # Client Host name
> foreach test($ml)
> nsradmin -i-<<!
> print type:NSR:client;
> name:$test;
> !
> end
> 
> :wq!  ==> save file
> chmod +x test.sh
> 
> 
> # ./test.sh |grep "client OS"




sorry i missed..


# mminfo -a -r "client" |sort -u > output.txt

#vi test.sh
#!/bin/csh
    foreach f (`cat output.txt`)
    nsradmin -i-<<!
        show name;save set;group;shedule;client; OS type;CPUs
        print type:NSR client;
        name: $f;
   !
   end





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