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

Re: How do we programmatically discover the non-interface properties [in Orion] and enable them

$
0
0

We use something like this SQL Query to programmatically turn off pollers we do not want to use.  We flag devices to apply this script against based on their membership in a group that uses a dynamic query.  You could use this to do the opposite I think.  However, if the node/pollers have not been discovered yet then you will have to work with the discovered nodes.  I am just beginning to look at the schema for the discovery tables, so if you have gain insights into how they work, please post.  thanks


UPDATE Pollers SET Enabled = 0

WHERE (NetObjectType = 'N') AND

(PollerType LIKE '%Routing%'

OR PollerType LIKE '%Topology%'

OR PollerType LIKE '%VRFRouting%')

AND (Enabled = 1)

AND

(EXISTS (SELECT S.EntityID

FROM [ContainerMemberSnapshots] S

JOIN [Containers] C ON S.ContainerID = C.ContainerID

WHERE S.EntityDisplayName = 'Node' AND C.IsDeleted = '0' AND S.ContainerID = '8'))

AND

(NetObjectID IN (SELECT S.EntityID

FROM [ContainerMemberSnapshots] S

JOIN [Containers] C ON S.ContainerID = C.ContainerID

WHERE S.EntityDisplayName = 'Node' AND C.IsDeleted = '0' AND S.ContainerID = '8'))

 


Viewing all articles
Browse latest Browse all 20490

Trending Articles



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