1 of 1 people found this helpful
There is no automatic way to create a component. Before running a Compliance Job against a server, you must run a Discovery Job against that server to create a component.
The Discovery Job only need to be run once against the target, and if any future modifications to the Component Template are made, you can still use original component.
You can have Discovery and Compliance Job wrapped into a Batch Job to make this easier (and more automated)
Ok you answered to my question
so I just need to run a Discovery Job, putting as target a dynamic Smartgroup (for example the rules AgentIsAlive TRUE), so the Components are created.
After that, i create a Component SmartGroup and put it as Target of my Compliance Job, do you agree ?
For Discovery Job - yes.
For Component Job - yes, BUT you can also use the same Target Smart Group that you used for Discovery.
basically, for Component Job the target can either be a "target" or "component", but if it's a "target", then the prerequisite is that there is a component for the target. Here's another way of showing:
Compiance Job against Component -> RUNNING
Compliance Job against Target -> (if Target has Component then RUNNING else Job FAILS)
you can mention conditions in Discovery Job also e.g ??TARGET.OS?? = "Windows" Which discover only windows components .