[Networker] NSR admin & regular expressions
2009-08-24 07:31:07
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
>
>
> #!/bin/csh
>
> 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"[/quote]
+----------------------------------------------------------------------
|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
|
|
|