Is it possible to running one time script for all Child Instances of Discovered Instances SCOM

shaikso 1 Reputation point
2021-08-12T11:48:30.79+00:00

Suppose I have Class B instances Hosted by Class A. Where I am running a discovery for A Target to Appliance.

Where I have 10 instances Class A.
Here my second discovery for Class B runs by Targeting Class A. So here script will run 10 times. Can apply any cookdown here where as i can run script one time for class B instances.

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,421 questions
{count} votes

2 answers

Sort by: Most helpful
  1. CyrAz 5,181 Reputation points
    2021-08-15T20:07:14.887+00:00

    It is possible to use cookdown with discoveries, but it's really hard to tell you more without seeing the actual script or even better the full MP code

    1 person found this answer helpful.

  2. Ali Burak Genç 21 Reputation points
    2021-09-22T14:01:04.887+00:00

    Hi @shaikso , I have written an MP for VROPS integration and I use following approach where I could discover all instances of a class running a script only once a day.

    A Watcher Class -> Cluster Class -> HostSystem Class (ESX) -> Datastore etc

    All classes are hosted by previous class and has relationship set. All of the class discoveries are targeted to Watcher Class.
    This way all the scripts run on the same windows server set as watcher and all of the instances of a class can be discovered at once.

    Of course VROPS API makes things easy for this approach but I believe you might also be using such an API if you are working with an appliance.

    Regards
    Ali