Skip to main content

Hello:

   Hopefully this isnt a repeat as i couldn’t find the answer on here so I wanted to post it.  im trying to match against “tags” within  the application, and everything I am tying, regarding the ‘where matches” command is used, isnt working.  This is in the regular inventory so i have the statement “foreach device in network.devices” list as well above where i think the match line should go.  I can it list the tags, just not match/filter on tags.

Try this…


foreach tag in device.tagNames

where tag == "MYTAG"


Well if i didnt over thing that one...thank you kindly as it worked.


NP.  Don’t forget that there are some wonderful examples in the right side Data Model examples.  Use the search bar at the top.  Although in this case, the “where” is the key.  
Keep the questions coming.  Others lean by asking as well.  


Reply