nv-l

Re: nvUtil help

2001-12-04 14:54:29
Subject: Re: nvUtil help
From: William.Stringfellow AT bankofamerica DOT com
To: nv-l AT lists.tivoli DOT com
Date: Tue, 04 Dec 2001 11:54:29 -0800

Ray,
     The man page implies that the following should work, I just don't know
how it likes the '~' and my lab box is down so I can't try it at the
moment.....

          Bill



/usr/OV/bin/nvUtil e "('isNode'=True) && (('IP Status'='Critical') || ('IP
Status'="Marginal)) && \
 !(('SNMP sysObjectID'~'1.3.6.1.4.1.13') || ('SNMP
sysObjectID'~'1.3.6.1.4.1.17') \
|| ('SNMP sysObjectID'~'1.3.6.1.4.1.18'))" "%IP Hostname%" \
 > /tmp/frame


Subject: nvUtil help

Hello Everyone.

AIX 4.3.3.10 and NetView 6.0.2.

I'm trying to create a list of nodes by Object ID. Actually there are 9
ObjectIDs that I want to collect. And I want a collection of all frame
routers that have a Critical or Marginal status.

Is there is an easy way to combine the following lines:

/usr/OV/bin/nvUtil e "('isNode'=True) && ('IP Status'='Critical') && \
        !(('SNMP sysObjectID'~'1.3.6.1.4.1.17'))" "%IP Hostname%" \
         > /tmp/frame
/usr/OV/bin/nvUtil e "('isNode'=True) && ('IP Status'='Marginal') && \
        !(('SNMP sysObjectID'~'1.3.6.1.4.1.17'))" "%IP Hostname%" \
         >> /tmp/frame
/usr/OV/bin/nvUtil e "('isNode'=True) && ('IP Status'='Critical') && \
        !(('SNMP sysObjectID'~'1.3.6.1.4.1.18'))" "%IP Hostname%" \
         >> /tmp/frame
/usr/OV/bin/nvUtil e "('isNode'=True) && ('IP Status'='Marginal') && \
        !(('SNMP sysObjectID'~'1.3.6.1.4.1.13'))" "%IP Hostname%" \
         > /tmp/frame
/usr/OV/bin/nvUtil e "('isNode'=True) && ('IP Status'='Marginal') && \
        !(('SNMP sysObjectID'~'1.3.6.1.4.1.17'))" "%IP Hostname%" \
         >> /tmp/frame
/usr/OV/bin/nvUtil e "('isNode'=True) && ('IP Status'='Marginal') && \
        !(('SNMP sysObjectID'~'1.3.6.1.4.1.18'))" "%IP Hostname%" \
         >> /tmp/frame

Thanks in advance.

Ray Westphal


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