How is Criteria Evaluated in Labels?
Can someone better educate me on how criteria is evaluated in labels on the K1000. Below is an example that I used today but don't understand why it's working this way. As an example, say I'm trying to ensure a system (referred to as TestComputer) is not part of a particular patching schedule. I created a Smart Label called
Exempt Systems (System Name = TestComputer)
I have a device smart label that is a RegEx statement for an IP range. The TestSystem falls into that IP range but when I target the device label in a patch schedule, I don't want the exempted system to show up. I updated my Device Label with my new exemption label as seen below
IP Address matches REGEX <ip range> AND
Label Names != Exempt Systems
When I test this label, I get the expected results. My label contains all systems that fall into that IP range with the exception of the one system that I have exempted. Here's where it gets confusing to me. When I target this device label in a patching schedule, the exempted system shows up along with the rest of the systems.
If I reorder my device label so it's
Label Names != Exempt Systems AND
IP Address matches REGEX <ip range>
Then, my patching schedule reports correctly and the exempted system is NOT present.
So my question is, how come in the testing of the device label (in the first configuration), it evaluates correctly but not when it comes to the patching schedule.
Please feel free to ask me for any clarification if the above written isn't clear.
Thank you all!
3 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
KevinG
3 years ago
If a Smart label is depends on the results of another Smart label you must set the labeling ordering option to make sure that the labels are evaluated in the correct order to get the expected results. Device Smart label criteria is checked and applied to a device at inventory. User Smart labels are applied at login.
Exempt Systems - Smart label that matches machines with IP address in given range
Patching Label - Smart label that matches machines with IP address in a given range but do not have Exempt Systems installed.
Also, I'm assuming that the Exempt Systems IP range is within the Patching Label IP range, is that correct? - chucksteel 9 years ago
Does anyone know if it's possible to add screen images to a post? I don't seem to see where/how to do it - dtobias_keenan 9 years ago