locked
MP edit for every account ( can deploy on any SCOM environment ) RRS feed

  • Question

  • Hi All,

    Its a purely advance one for me i thought ............

    Stoyan sir and all please share your outputs and suggestion here!

    Now my question is, i want to share every monitor availability report from SCOM console and for this what i did just changed the monitor name in Availability RDPL ( just like linked report ) and i got report for that monitor. Once i got this report from console i had saved this to a new MP for reporting and changed the monitor name as earlier.

    But now the problem occurs whenever i have open this report in console it will automatically take date, group like earlier and it opens after loading it.

    So now i just want to edit this MP to remove this date and group portion so one will open this report this will open instantly (empty) and ask for date and group and object.

    Note:- I have saved this report into a new created blank MP.

    Now coming to the code of MP which i want to edit:-

    <?xml version="1.0" encoding="utf-8"?><ManagementPack ContentReadable="true" SchemaVersion="2.0" OriginalSchemaVersion="1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <Manifest>
        <Identity>
          <ID>computer.not.reachable</ID>
          <Version>1.0.0.0</Version>
        </Identity>
        <Name>computer not reachable</Name>
        <References>
          <Reference Alias="SystemCenter">
            <ID>Microsoft.SystemCenter.Library</ID>
            <Version>7.0.8433.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="SystemCenter1">
            <ID>Microsoft.SystemCenter.DataWarehouse.Report.Library</ID>
            <Version>7.1.10226.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
        </References>
      </Manifest>
      <Presentation>
        <Folders>
          <Folder ID="Folder_ef463ebd4e1f457a8cd1ceafd94f3802" Accessibility="Public" ParentFolder="SystemCenter!Microsoft.SystemCenter.Monitoring.ViewFolder.Root" />
        </Folders>
      </Presentation>
      <Reporting>
        <LinkedReports>
          <LinkedReport ID="UICustomReport4165bcadbcd04d368897c101aaf76c63" Accessibility="Internal" Base="SystemCenter1!Microsoft.SystemCenter.DataWarehouse.Report.Availability" Visible="true">
            <ParameterBlock columns="4" xmlns="http://schemas.microsoft.com/mom/reporting/2007/ReportParameterSettings">
              <Controls xmlns="http://schemas.microsoft.com/mom/reporting/2007/ReportParameterSettings">
                <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.ComboBox">
                  <ReportParameters>
                    <ReportParameter name="DataAggregation">
                      <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.DataAggregation</Prompt>
                    </ReportParameter>
                  </ReportParameters>
                </Control>
                <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.MonitoringObjectXmlPicker" columnSpan="2" rowSpan="2">
                  <ReportParameters>
                    <ReportParameter name="ObjectList">
                      <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.ObjectList</Prompt>
                    </ReportParameter>
                    <ReportParameter name="ManagementGroupId" binding="GroupList" />
                  </ReportParameters>
                </Control>
                <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.CheckedListBox" rowSpan="2">
                  <ReportParameters>
                    <ReportParameter name="DownTime">
                      <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.AvailabilityDownTime</Prompt>
                    </ReportParameter>
                  </ReportParameters>
                </Control>
                <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.BusinessRelativeDateTimePicker">
                  <ReportParameters>
                    <ReportParameter name="TimeZone" binding="TimeZone">
                      <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.TimeZone</Prompt>
                    </ReportParameter>
                    <ReportParameter name="TimeZoneName" binding="TimeZoneName" />
                    <ReportParameter name="StartDate_BaseType" binding="StartDate_BaseType" />
                    <ReportParameter name="StartDate_BaseValue" binding="StartDate_BaseValue">
                      <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.StartDateTime</Prompt>
                    </ReportParameter>
                    <ReportParameter name="StartDate_OffsetType" binding="StartDate_OffsetType" />
                    <ReportParameter name="StartDate_OffsetValue" binding="StartDate_OffsetValue" />
                    <ReportParameter name="EndDate_BaseType" binding="EndDate_BaseType" />
                    <ReportParameter name="EndDate_BaseValue" binding="EndDate_BaseValue">
                      <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.EndDateTime</Prompt>
                    </ReportParameter>
                    <ReportParameter name="EndDate_OffsetType" binding="EndDate_OffsetType" />
                    <ReportParameter name="EndDate_OffsetValue" binding="EndDate_OffsetValue" />
                    <ReportParameter name="TimeType" binding="TimeType" />
                    <ReportParameter name="TimeWeekMap" binding="TimeWeekMap" />
                  </ReportParameters>
                </Control>
              </Controls>
            </ParameterBlock>
            <Parameters>
              <Parameter Name="DownTime">
                <Value>5</Value>
              </Parameter>
              <Parameter Name="ManagementGroupId">
                <Value>911ef5d8-cd40-328b-467e-2c6ac7148193</Value>
              </Parameter>
              <Parameter Name="DataAggregation">
                <Value>1</Value>
              </Parameter>
              <Parameter Name="StartDate_BaseType">
                <Value>Fixed</Value>
              </Parameter>
              <Parameter Name="StartDate_BaseValue">
                <Value>2018-03-01T18:41:00</Value>
              </Parameter>
              <Parameter Name="StartDate_OffsetType">
                <Value>None</Value>
              </Parameter>
              <Parameter Name="StartDate_OffsetValue">
                <Value>0</Value>
              </Parameter>
              <Parameter Name="EndDate_BaseType">
                <Value>Today</Value>
              </Parameter>
              <Parameter Name="EndDate_BaseValue">
                <Value>2018-03-12T18:41:00</Value>
              </Parameter>
              <Parameter Name="EndDate_OffsetType">
                <Value>None</Value>
              </Parameter>
              <Parameter Name="EndDate_OffsetValue">
                <Value>0</Value>
              </Parameter>
              <Parameter Name="TimeType">
                <Value>Regular</Value>
              </Parameter>
              <Parameter Name="TimeWeekMap">
                <Value>Monday</Value>
                <Value>Tuesday</Value>
                <Value>Wednesday</Value>
                <Value>Thursday</Value>
                <Value>Friday</Value>
              </Parameter>
              <Parameter Name="TimeZone">
                <Value>A8FDFFFF00000000C4FFFFFF0000040000000100030000000000000000000A00000001000200000000000000|AUS Eastern Standard Time</Value>
              </Parameter>
              <Parameter Name="TimeZoneName">
                <Value>(UTC+10:00) Canberra, Melbourne, Sydney</Value>
              </Parameter>
              <Parameter Name="MonitorName">
                <Value>Microsoft.SystemCenter.HealthService.ComputerDown</Value>
              </Parameter>
              <Parameter Name="Interactive">
                <Value>False</Value>
              </Parameter>
              <Parameter Name="ObjectList">
                <Value>&lt;Data&gt;&lt;Objects&gt;&lt;Object Use="Containment"&gt;130&lt;/Object&gt;&lt;/Objects&gt;&lt;/Data&gt;</Value>
              </Parameter>
            </Parameters>
          </LinkedReport>
        </LinkedReports>
      </Reporting>
      <LanguagePacks>
        <LanguagePack ID="ENU" IsDefault="false">
          <DisplayStrings>
            <DisplayString ElementID="computer.not.reachable">
              <Name>computer not reachable</Name>
            </DisplayString>
            <DisplayString ElementID="Folder_ef463ebd4e1f457a8cd1ceafd94f3802">
              <Name>computer not reachable</Name>
            </DisplayString>
            <DisplayString ElementID="UICustomReport4165bcadbcd04d368897c101aaf76c63">
              <Name>Computer Not Reachable</Name>
              <Description>Computer Not Reachable for exact downtime of windows computer
    created by Gourav</Description>
            </DisplayString>
          </DisplayStrings>
        </LanguagePack>
      </LanguagePacks>
    </ManagementPack>

    And this is the MP code after my editing but i haven't tested so just want to confirm how many % i have right editing :P

    <?xml version="1.0" encoding="utf-8"?><ManagementPack ContentReadable="true" SchemaVersion="2.0" OriginalSchemaVersion="1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <Manifest>
        <Identity>
          <ID>computer.not.reachable</ID>
          <Version>1.0.0.0</Version>
        </Identity>
        <Name>computer not reachable</Name>
        <References>
          <Reference Alias="SystemCenter">
            <ID>Microsoft.SystemCenter.Library</ID>
            <Version>7.0.8433.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="SystemCenter1">
            <ID>Microsoft.SystemCenter.DataWarehouse.Report.Library</ID>
            <Version>7.1.10226.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
        </References>
      </Manifest>
      <Presentation>
        <Folders>
          <Folder ID="Folder_ef463ebd4e1f457a8cd1ceafd94f3802" Accessibility="Public" ParentFolder="SystemCenter!Microsoft.SystemCenter.Monitoring.ViewFolder.Root" />
        </Folders>
      </Presentation>
      <Reporting>
        <LinkedReports>
          <LinkedReport ID="UICustomReport4165bcadbcd04d368897c101aaf76c63" Accessibility="Internal" Base="SystemCenter1!Microsoft.SystemCenter.DataWarehouse.Report.Availability" Visible="true">
            <ParameterBlock columns="4" xmlns="http://schemas.microsoft.com/mom/reporting/2007/ReportParameterSettings">
              <Controls xmlns="http://schemas.microsoft.com/mom/reporting/2007/ReportParameterSettings">
                <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.ComboBox">
                  <ReportParameters>
                    <ReportParameter name="DataAggregation">
                      <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.DataAggregation</Prompt>
                    </ReportParameter>
                  </ReportParameters>
                </Control>
                <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.MonitoringObjectXmlPicker" columnSpan="2" rowSpan="2">
                  <ReportParameters>
                    <ReportParameter name="ObjectList">
                      <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.ObjectList</Prompt>
                    </ReportParameter>
                    <ReportParameter name="ManagementGroupId" binding="GroupList" />
                  </ReportParameters>
                </Control>
                <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.CheckedListBox" rowSpan="2">
                  <ReportParameters>
                    <ReportParameter name="DownTime">
                      <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.AvailabilityDownTime</Prompt>
                    </ReportParameter>
                  </ReportParameters>
                </Control>
                <Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.BusinessRelativeDateTimePicker">
                  <ReportParameters>
                    <ReportParameter name="TimeZone" binding="TimeZone">
                      <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.TimeZone</Prompt>
                    </ReportParameter>
                    <ReportParameter name="TimeZoneName" binding="TimeZoneName" />
                    <ReportParameter name="StartDate_BaseType" binding="StartDate_BaseType" />
                    <ReportParameter name="StartDate_BaseValue" binding="StartDate_BaseValue">
                      <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.StartDateTime</Prompt>
                    </ReportParameter>
                    <ReportParameter name="StartDate_OffsetType" binding="StartDate_OffsetType" />
                    <ReportParameter name="StartDate_OffsetValue" binding="StartDate_OffsetValue" />
                    <ReportParameter name="EndDate_BaseType" binding="EndDate_BaseType" />
                    <ReportParameter name="EndDate_BaseValue" binding="EndDate_BaseValue">
                      <Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.EndDateTime</Prompt>
                    </ReportParameter>
                    <ReportParameter name="EndDate_OffsetType" binding="EndDate_OffsetType" />
                    <ReportParameter name="EndDate_OffsetValue" binding="EndDate_OffsetValue" />
                    <ReportParameter name="TimeType" binding="TimeType" />
                    <ReportParameter name="TimeWeekMap" binding="TimeWeekMap" />
                  </ReportParameters>
                </Control>
              </Controls>
            </ParameterBlock>
            <Parameters>
               <Parameter Name="MonitorName">
                <Value>Microsoft.SystemCenter.HealthService.ComputerDown</Value>
              </Parameter>
            </Parameters>
          </LinkedReport>
        </LinkedReports>
      </Reporting>
      <LanguagePacks>
        <LanguagePack ID="ENU" IsDefault="false">
          <DisplayStrings>
            <DisplayString ElementID="computer.not.reachable">
              <Name>computer not reachable</Name>
            </DisplayString>
            <DisplayString ElementID="Folder_ef463ebd4e1f457a8cd1ceafd94f3802">
              <Name>computer not reachable</Name>
            </DisplayString>
            <DisplayString ElementID="UICustomReport4165bcadbcd04d368897c101aaf76c63">
              <Name>Computer Not Reachable</Name>
              <Description>Computer Not Reachable for exact downtime of windows computer
    created by Gourav</Description>
            </DisplayString>
          </DisplayStrings>
        </LanguagePack>
      </LanguagePacks>
    </ManagementPack>

    Please share your feedback on my editing and tell me the right editing, and what i missed.
    And it would be great if one can explain editing since i am learning MP writing and editing.

    Many thanks in advance for all the help :) 


    Cheers, Gourav Please remember to mark the replies as answers if it helped.


    • Edited by GouravIN Wednesday, May 2, 2018 3:09 PM
    Wednesday, May 2, 2018 3:06 PM

All replies

  • Please help to get this done in right way!

    Cheers, Gourav Please remember to mark the replies as answers if it helped.

    Monday, May 7, 2018 9:11 AM
  • Hi Gourav,

    Maybe it's just me but I don't really understand your question here..

    Maybe elaborate a little?

    Cheers


    Sam (Please take a moment to "Vote as Helpful" and/or "Mark as Answer" wherever applicable. Thanks!)

    Monday, May 7, 2018 11:39 AM
  • Yeah Sam,

    What i did here created a report and saved into a MP. And when i have saved this report into a MP till the time all was good but now when i am opening this report again by going into reporting tab it will start opening and loading with same date, time and group which i have selected during saving this report. 

    So now  i have exported MP ( coz this only contains this report ) and XML has all the date, time and group added so i want to remove them. Because i want whenever anyone will open this report it will open a blank and ask for everything like all reports. 

    If still you have concern please write back Sir! or you can try this by yours this is really interesting. :) 


    Cheers, Gourav Please remember to mark the replies as answers if it helped.

    Monday, May 7, 2018 12:22 PM
  • Of course it'll take the time automatically that you've written in the xml :)

    Shouldn't be much difficult of a task though, have you tried comparing this xml with other normal ones?

    Cheers


    Sam (Please take a moment to "Vote as Helpful" and/or "Mark as Answer" wherever applicable. Thanks!)

    Monday, May 7, 2018 2:22 PM
  • Yes Sam, i have done that ( removal of date tag in XML ) you can check both of the XML. But want to confirm 

    was my editing is good enough. And what more tags i need to remove for removing the group and object.

    My main concern is here, if you/anyone tell which tags i need to remove from XML.


    Cheers, Gourav Please remember to mark the replies as answers if it helped.


    • Edited by GouravIN Tuesday, May 8, 2018 7:05 AM
    Tuesday, May 8, 2018 7:04 AM