nv-l
[Top] [All Lists]

Re: nvUtil help

To: nv-l@lists.tivoli.com
Subject: Re: nvUtil help
From: "Stephen Hochstetler" <shochste@us.ibm.com>
Date: Tue, 4 Dec 2001 10:13:49 -0600
Ray,

impacted performance with the reverse...hummmmm.    Guess I don't bat 1000.

Another idea is concerning the oids.   The ~ is saying that this matches a
regular expression.   So instead of

<!--StartFragment-->/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


I would try this:

<!--StartFragment-->/usr/OV/bin/nvUtil e \
"((('SNMP sysObjectID'
='1\.3\.6\.1\.4\.1\.9\.1\./13|17|18|110|113|114|122|26|27|28|185/') || \
('SNMP sysObjectID'='1\.3\.6\.1\.4\.1\.9\.1\./186|187|201|208|209/') && \
(('IP Status'='Critical') || \
('IP Status'='Marginal')) && \
('isNode'=True))" "%IP Hostname%" > /tmp/txt

note: the "." is a special matching character for regular expressions, so
they need to be escaped with the "\" to make them periods.


Kind regards,
Stephen Hochstetler              shochste@us.ibm.com
International Technical Support Organization  - Austin
Office - 512-436-8564                      FAX - 512-436-8701


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

Archive operated by Skills 1st Ltd

See also: The NetView Web