none
List of objects processed during a previous run of a run profile RRS feed

  • Question

  • Is it possible to retrieve the list of objects processed during a previous run of a run profile using WMI or any other method? I can see the list using the synchronization service manager, but I would like to save it to a file. I don't need the details just the objectID or dn.

    Friday, September 1, 2017 2:42 PM

All replies

  • Celso-

    Yes, you can get this via WMI. Specifically, you'll want to take a look at the MIIS_RunHistory WMI class and the RunDetails() method.


    Thanks,
    Brian

    Consulting | Blog | AD Book

    Friday, September 1, 2017 3:20 PM
    Moderator
  • Hey Brian,

    Following your recommendation I found this very good document put together by Tim Macaulay dated 08/02/2016 which shows a lot of the features available with the MIIS_History WMI class. That document in itself opened my eyes to a lot of data I can definitely use.

    However, I am not seeing any data coming out of the RunDetails() method that includes information about the objects themselves. Am I overlooking something in the output of that method? Do I need to get something from that output and use it somewhere else? If so, what and where? This is the output of the RunDetails() method of the particular run of a MIM MA I was interested in getting the list of objects processed during that run.

    <?xml version="1.0" encoding="utf-16"?>
    <run-history>
     <run-details>
      <ma-id>{4008C8FF-0508-4F1B-8B16-2071932E885A}</ma-id>
      <ma-name>MIMMA</ma-name>
      <run-number>38598</run-number>
      <run-profile-name>DI</run-profile-name>
      <security-id>Domain\Username</security-id>
      <step-details step-number="1" step-id="{F4A15595-53EC-47B4-84BF-EED336DA0140}">
       <start-date>2017-09-01 02:52:02.537</start-date>
       <end-date>2017-09-01 02:52:07.130</end-date>
       <step-result>success</step-result>
       <step-description>
         <step-type type="delta-import">
            <import-subtype>to-cs</import-subtype>
         </step-type>
         <partition>default</partition>

       </step-description>

       <current-export-step-counter>0</current-export-step-counter>

       <last-successful-export-step-counter>0</last-successful-export-step-counter>

       <ma-connection>
       </ma-connection>

       <ma-discovery-errors>
       </ma-discovery-errors>
       <ma-discovery-counters>
       </ma-discovery-counters>
       <synchronization-errors/>
       <mv-retry-errors/>
       <staging-counters>
        <stage-no-change detail="false">0</stage-no-change>
        <stage-add detail="true">146</stage-add>
        <stage-update detail="true">147</stage-update>
        <stage-rename detail="true">0</stage-rename>
        <stage-delete detail="true">0</stage-delete>
        <stage-delete-add detail="true">0</stage-delete-add>
        <stage-failure detail="true">0</stage-failure>
       </staging-counters>
       <inbound-flow-counters>
        <disconnector-filtered detail="true">0</disconnector-filtered>
        <disconnector-joined-no-flow detail="true">0</disconnector-joined-no-flow>
        <disconnector-joined-flow detail="true">0</disconnector-joined-flow>
        <disconnector-joined-remove-mv detail="true">0</disconnector-joined-remove-mv>
        <disconnector-projected-no-flow detail="true">0</disconnector-projected-no-flow>
        <disconnector-projected-flow detail="true">0</disconnector-projected-flow>
        <disconnector-projected-remove-mv detail="true">0</disconnector-projected-remove-mv>
        <disconnector-remains detail="false">0</disconnector-remains>
        <connector-filtered-remove-mv detail="true">0</connector-filtered-remove-mv>
        <connector-filtered-leave-mv detail="true">0</connector-filtered-leave-mv>
        <connector-flow detail="true">0</connector-flow>
        <connector-flow-remove-mv detail="true">0</connector-flow-remove-mv>
        <connector-no-flow detail="true">0</connector-no-flow>
        <connector-delete-remove-mv detail="true">0</connector-delete-remove-mv>
        <connector-delete-leave-mv detail="true">0</connector-delete-leave-mv>
        <connector-delete-add-processed detail="true">0</connector-delete-add-processed>
        <flow-failure detail="true">0</flow-failure>
       </inbound-flow-counters>
       <export-counters>
        <export-add detail="true">0</export-add>
        <export-update detail="true">0</export-update>
        <export-rename detail="true">0</export-rename>
        <export-delete detail="true">0</export-delete>
        <export-delete-add detail="true">0</export-delete-add>
        <export-failure detail="true">0</export-failure>
       </export-counters>
      </step-details>

    </run-details>
    </run-history>

    Celso

    Friday, September 1, 2017 7:52 PM