how do I write a smart label for devices by OU
You can create a Custom Inventory Rule, which will populate each Device with it's OU.
ShellCommandTextReturn(cmd /c whoami /fqdn)
You can then see which OU the user is in.
Then go to Labels > Smart Labels > Choose Action - New Device Label and do the following
Just replace Computers with your OU. You can also do 'is exactly' instead of contains, Then give your label a name and Click Save.
Machines will then be populated into the Smart Label when they check in.
I recommend using LDAP labels for this purpose. On the appliance, click Home, Label Management, LDAP Labels. Click the Need Help link on the right of the screen to open the contextual help menu. Click Add or Edit LDAP labels to view the instructions in the Admin Guide.
Sign up today to participate,
stay informed, earn points and establish a reputation for yourself!