- My View
I've noticed there is an out-of-the-box CI "Personal Computer".
How can I make sure laptops and desktops are not being discovered?
Will they automatically be classified as Personal Computers?
I need to run discovery and I don't want them to be discovered.
How can this be done?
Would appreciate any help.
You have two options. You can either exclude those IPs or you can deactivate the generic 'Windows' classifier. That is the only one that feeds the cmdb_ci_computer table. Long term, the latter option isn't a great idea since you will be limited to only Windows servers. However for your parameters, merely deactivating should work.
Please mark answer as Correct, helpful as appropriate.
Thanks for the quick reply, Sachin.
I can't deactivate Windows classifier, I need it for the servers. I just don't want the desktops and laptops.
Is there any other way? perhaps a way that will avoid create CI's of Personal Computer?
What "servers" are being caught by the generic windows classifier? If you have a windows server say windows 2016 and do not have a classifier for it, best practice is to create one. The generic windows classifier is meant to catch any non-server.
Let me know if this helps.
You have to check which probe and sensor are used to identify this. Then in sensor code you have to exclude those computers and laptops.
Indeed I've come to conclusion that this is the solution.
I've edited the probe Windows Classify and added this WMI query:
This differs between servers and desktops.
The output for desktops is 1, as for Domain controllers is 2 and 3 for servers,
This is according to this Microsoft link: Win32_OperatingSystem class (Windows)
But now I have to edit the same sensor, I'd like to create an if condition: something like this
if (Win32_OperatingSystem.ProductType!=1) then go on with script, or if it's Win32_OperatingSystem.ProductType=1 then break or return.
Not sure at which stage to edit this line!
Could anyone assist?
Need to check will get back to you.