Networker

[Networker] AW: [Networker] Partially qualified expressions work with nsradmin

2005-10-11 10:57:46
Subject: [Networker] AW: [Networker] Partially qualified expressions work with nsradmin
From: IT-Administration ST <admin.st AT KVBAWUE DOT DE>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 11 Oct 2005 16:46:25 +0200
Thanks alot, Davina.

I tried

   . name: ^st
   show name
   print

and it worked finely.

Well, if nsradmin supports regular expressions, how would you code a query, 
which looks in unix as follows:

"^st[c,e]"

I tried

   . name: ^st[c,e]

but the result was nothing. How far would Networker support regular expressions?


     Freundliche Grüße / Kind regards

   Roman Böhm



 

 >-----Ursprüngliche Nachricht-----
 >Von: Davina Treiber [mailto:Treiber AT hotpop DOT com] 
 >Gesendet: Dienstag, 11. Oktober 2005 12:47
 >An: Legato NetWorker discussion; IT-Administration ST
 >Betreff: Re: [Networker] Partially qualified expressions work 
 >with nsradmin
 >
 >IT-Administration ST wrote:
 >
 >> finally I discovered a way how to tell nsradmin that I want 
 >information about patterns which begin or which contain a 
 >certain string. We use Networker 7.1 as it is co-developed 
 >and distributed by Fujitsu Siemens Computers on Solaris 8.
 >> 
 >> For example I want to know how many networker groups start 
 >between 21.00 and 21.59. Normally you would have to say:
 >> 
 >>    . type:nsr group; start time: "21:00","21:01", "21:02" 
 >[...] "21:59"
 >>    show name
 >>    print
 >> 
 >> Now I discovered that it is possible to say:
 >> 
 >>    . type:nsr group; start time: 21.
 >>    show name
 >>    print
 >> 
 >> If I want information about any ressource that begins with 
 >the string "st" and say:
 >> 
 >>    . name: st.
 >>    show name
 >>    print
 >> 
 >> the result will be
 >> 1) all ressources which names _begin_ with the pattern "st"
 >> 2) all ressources which names _contain_    the pattern "st"
 >> 
 >> If instead you say
 >> 
 >>    . name: .st
 >>    show name
 >>    print
 >> 
 >> you will get the name of any ressource which _ends_ with 
 >the pattern "st"
 >> 
 >> I still didn't find out, how to tell nsradmin, that I want 
 >to get hits of ressources whose names begin with the pattern 
 >but do not contain the pattern in the middle of the string. 
 >
 >nsradmin is matching based on regular expressions as used by 
 >many programs such as grep and sed. To match a string at the 
 >beginning, just use a caret character, and to match a string 
 >at the end use a dollar character.
 >
 >e.g. to match "st" at the beginning of the resource name you can do:
 >
 >show name
 >print name: ^st
 >
 >and to match "st" at the end of the resource name use:
 >
 >show name
 >print name: st$
 >

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
wit 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>