Wednesday, July 08, 2009

opsMgr Web Console Mobile ReportViewer error

I would have expected this to be up somewhere already but I couldn’t find it when I wanted to get my mobile site working.  I went the URL http://webconsoleURL:51908/mobile.  But I was greeted w/ the following error:

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Source Error:

 

Line 23:     <httpHandlers>

Line 24:       <add path="ChartAxd.axd" verb="*" type="Dundas.Charting.WebControl.ChartHttpHandler" validate="false" />

Line 25:       <add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

Line 26:     </httpHandlers>

Line 27:     <httpModules>


Source File: C:\Program Files\System Center Operations Manager 2007\Web Console\web.config    Line: 25

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' could not be loaded.

 

After a bit of searching, and turning on tracing, I found it was looking in the <WEB CONSOLE ROOT>\mobile\bin directory for the dlls Microsoft.ReportViewer.Common.dll and Microsoft.ReportViewer.WebForms.dll but they weren’t there.  I copied them from <WEB CONSOLE ROOT>\bin to <WEB CONSOLE ROOT>\mobile\bin and reloaded the page.  Voila!

Thursday, July 02, 2009

opsmgr maintenance mode reporting update

Figures… roughly 15 seconds after posting OpsMgr Maintenance Mode report, I found a better way to get my collection of “inMaintenanceMode” objects.  I wouldn’t call this script ‘light’ by any means but at least I query more directly.

 

param (

      $RootMS,

      $filename

      )

 

#Initializing the Ops Mgr 2007 Powershell provider

add-pssnapin "Microsoft.EnterpriseManagement.OperationsManager.Client" -ErrorVariable errSnapin;

set-location "OperationsManagerMonitoring::" -ErrorVariable errSnapin;

new-managementGroupConnection -ConnectionString:$rootMS -ErrorVariable errSnapin;

set-location $rootMS -ErrorVariable errSnapin;

 

#create my array for output

 

$colOut = New-Object System.Collections.ArrayList

 

#set query criteria and get collection of objects in Maintenance

$criteria = new-object Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectGenericCriteria("InMaintenanceMode=1")

$objectsInMM = (Get-ManagementGroupConnection).ManagementGroup.GetPartialMonitoringObjects($criteria)

 

 

#loop to populate the array

foreach ($mm in $objectsInMM) {

      $MWin = $mm.getmaintenancewindow()

     

      #create an object to hold our variables

      $out = "" | select Name,Path,DisplayName,FullName,StartTime,ScheduledEndTime, Reason, Comments, User, LastModified

      $out.Name = $mm.name

      $out.Path = $mm.Path

      $out.DisplayName = $mm.Displayname

      $out.FullName = $mm.Fullname

      $out.Starttime = $Mwin.Starttime

      $out.ScheduledEndTime = $MWin.ScheduledEndTime

      $out.Reason = $MWin.Reason

      $out.Comments = $MWin.Comments

      $out.User = $Mwin.User

      $out.LastModified = $Mwin.LastModified

     

      #add to our array

      $colOut.Add($out)

}

 

#change providers for file work

C:

#spit to csv

$colOut | Export-Csv $filename

Check this out!

Check this out, my mother has started a new blog, Intersections over at Astrology for Business. Please take a second to check it out.
http://astro4business.com/

OpsMgr Maintenance Mode report

Updated version: http://cornasdf.blogspot.com/2009/07/opsmgr-maintenance-mode-reporting.html

I needed to report on all items in maintenance mode.  On the web were entries like this one, but that was focused on the computer and agent level, whereas we had lower level objects that were in maintenance mode.  I ended up writing this script.  I still have cleanup to do in my env to make it operational but the basic logic is here.

 

One thing to note is that each of these items seems to come up 6 or 7 times.  Not sure why at this point but the report is good enough for our purposes and I have other things to do.  B)

 

Enjoy!

 

#give me all the objects we are monitoring

$colAll = get-monitoringclass | get-monitoringobject

 

#select out only the ones that are in maintenance mode

$colMM = $colAll | where {$_.inmaintenancemode -eq $true}

 

#create my array for output

$colOut = New-Object System.Collections.ArrayList

 

#loop to populate the array

foreach ($mm in $colMM) {

      $MWin = $mm | get-maintenancewindow

     

      #create an object to hold our variables

      $out = "" | select FullName,UniquePathName,StartTime,ScheduledEndTime, Reason, Comments, User, LastModified

      $out.FullName = $mm.Fullname

      $out.UniquepathName = $mm.UniquePathName

      $out.Starttime = $Mwin.Starttime

      $out.ScheduledEndTime = $MWin.ScheduledEndTime

      $out.Reason = $MWin.Reason

      $out.Comments = $MWin.Comments

      $out.User = $Mwin.User

      $out.LastModified = $Mwin.LastModified

     

      #add to our array

      $colOut.Add($out)

}

 

#spit to csv

$colOut | Export-Csv C:\MaintenanceModeReport.csv

 

analytics