Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20019

SQL Help on Interfaces

$
0
0

I am trying to write an SQL query to show all my interfaces that have a status of down or warning.

The following works:

SELECT        InterfaceID, StatusLED, FullName, Status

FROM            Interfaces

WHERE        (Status = '2') OR   (Status = '3')

 

But, I want it to exclude a node based on the condition of a second node.

e.g.

Node Names:     NodeA is Up.          (This is a primary link)

                           NodeB is Down.     (This is a secondary link that fails over if the primary link goes down)

 

If NodeA is UP exclude NodeB from the Query.

 

Any suggestions ?
Thanks,

Richard


Viewing all articles
Browse latest Browse all 20019

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>