nv-l
[Top] [All Lists]

Re: nvUtil help

To: nv-l@lists.tivoli.com
Subject: Re: nvUtil help
From: "Ray Westphal" <westphal@accessus.net>
Date: Mon, 03 Dec 2001 14:42:00 -0600
You are correct. I copied from an example of another nvUtil
script and left the "!". Sorry!

I did write an nvUtil command that does check if the
ObjectID is one of 17 different values. If there is a
simpler method, let me know. This does work. Here it is:

/usr/OV/bin/nvUtil e \
"((('SNMP sysObjectID'='1.3.6.1.4.1.9.1.13') || \
('SNMP sysObjectID'='1.3.6.1.4.1.9.1.17') || \
('SNMP sysObjectID'='1.3.6.1.4.1.9.1.18') || \
('SNMP sysObjectID'='1.3.6.1.4.1.9.1.110') || \
('SNMP sysObjectID'='1.3.6.1.4.1.9.1.113') || \
('SNMP sysObjectID'='1.3.6.1.4.1.9.1.114') || \
('SNMP sysObjectID'='1.3.6.1.4.1.9.1.122') || \
('SNMP sysObjectID'='1.3.6.1.4.1.9.1.26') || \
('SNMP sysObjectID'='1.3.6.1.4.1.9.1.27') || \
('SNMP sysObjectID'='1.3.6.1.4.1.9.1.28') || \
('SNMP sysObjectID'='1.3.6.1.4.1.9.1.185') || \
('SNMP sysObjectID'='1.3.6.1.4.1.9.1.186') || \
('SNMP sysObjectID'='1.3.6.1.4.1.9.1.187') || \
('SNMP sysObjectID'='1.3.6.1.4.1.9.1.201') || \
('SNMP sysObjectID'='1.3.6.1.4.1.9.1.208') || \
('SNMP sysObjectID'='1.3.6.1.4.1.9.1.209')) && \
(('IP Status'='Critical') || \
('IP Status'='Marginal')) && \
('isNode'=True))" "%IP Hostname%" > /tmp/txt

 

On Mon, 3 Dec 2001 13:52:30 -0600
 "Stephen Hochstetler" <shochste@us.ibm.com> wrote:
> ray,
> 
> will this work?   Why the '!' in front of the
> sysObjectID?   The "||"
> should be an "or".
> 
> /usr/OV/bin/nvUtil e "('isNode'=True) && (('IP
> Status'='Critical') || \
>      ('IP Status'='Marginal') ) && !(('SNMP
> sysObjectID'~'1.3.6.1.4.1.17')
> || \
>          ('SNMP sysObjectID'~'1.3.6.1.4.1.18'))" "%IP
> Hostname%" \
>          > /tmp/frame
> 
> Kind regards,
> Stephen Hochstetler              shochste@us.ibm.com
> International Technical Support Organization  - Austin
> Office - 512-436-8564                      FAX -
> 512-436-8701
> 
> ITSO redbooks at  http://www.redbooks.ibm.com
> 
> _________________________________________________________________________
> NV-L List information and Archives:


<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web