nv-l

RE: [nv-l] DNS or hosts file resolution

2004-10-28 17:47:32
Subject: RE: [nv-l] DNS or hosts file resolution
From: "Evans, Bill" <Bill.Evans AT hq.doe DOT gov>
To: "'nv-l AT lists.us.ibm DOT com'" <nv-l AT lists.us.ibm DOT com>
Date: Thu, 28 Oct 2004 17:46:21 -0400

A slight extension to Jane's suggestion which, by the way, works perfectly. Cut and paste this to a shell script (or a single line) and you can avoid the typing.  The command will add the rule where the SmartSet editor won't allow cut and paste.  (Subject for a customer requirement). 

nvUtil a NotInDNS "Hosts not in DNS"  \
 "('IP Hostname' ~ '[1-9]{1,3}\.[1-9]{1,3}\.[1-9]{1,3}\.[1-9]{1,3}')"

PS, it even displayed the entries where I manually changed the label displayed on the icons. 

Bill Evans
Tivoli NetView Support for DOE
301-903-0057

-----Original Message-----
From: owner-nv-l AT lists.us.ibm DOT com [mailto:owner-nv-l AT lists.us.ibm DOT com] On Behalf Of Jane Curry

Incidentally, I normally setup a non-DNS SmartSet that catches any hosts
that NetView finds that isn't in the DNS.  If you have dome the 5-day
NetView class, you will have seen this.  It's a horrible regular
_expression_ to type correctly but you basically create a SmartSet of
nodes whose hostname field is an IP address.  The _expression_ you want is
(I hope):
  ~   ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$