Friday, March 9, 2012

[OpsMgr 2007] Powershell Script to list Number of active SDK connections per user

I've already post a short word on this :  >>>>>>>>>> HERE <<<<<<<<<<

And here is a smal improvment that count the number of connection by connected users :)

Replace My.Server.FullName by your RMS fullname.
  1. # Connect your environment
  2. add-pssnapin "Microsoft.EnterpriseManagement.OperationsManager.Client";
  3. set-location "OperationsManagerMonitoring::";
  4. new-managementGroupConnection -ConnectionString:My.Server.FullName;
  5. set-location My.Server.FullName;
  6. # Get the connected users
  7. $SDKUsers = Get-ManagementGroupConnection | foreach-object {$_.ManagementGroup.getConnectedUserNames()} | sort
  8. $SDKNumberConnections = $SDKUsers | measure-object
  9. # number of active connections
  10. $SDKNumberConnections.count
  11. # count active connections per users
  12. $hash =@{}
  13. $SDKUsers | % {$hash[$_] = $hash[$_] + 1 }
  14. $Result = $hash.getenumerator() | ? { $_.value -gt 0 }
  15. $Result | sort value -DESC

 The result will be a table with the user account and the number of actives connections :


This can be a very usefull information to be able to investigate who is connecting the SCOM environment and why why have too much active connection.
Having too much SDK connection make the environment very slow.

This posting is provided "AS IS" with no warranties.

[OpsMgr 2007] Find out which users have a console connection with OpsMgr 2007

Find out which users have a console connection with OpsMgr | Info Support

Usefull link to have the Powershell command line to know the number of actual SDK connection and the list of user that have a connection.

List users that have a SDK connection
  • Get-ManagementGroupConnection | foreach-object {$_.ManagementGroup.getConnectedUserNames()}
 Give number of current SDK connections
  • Get-ManagementGroupConnection | foreach-object {$_.ManagementGroup.getConnectedUserNames()} | measure-object

This posting is provided "AS IS" with no warranties.

Wednesday, March 7, 2012

[SQL & SCOM] List all Manual Reset Monitors

Here is a short SQL script to use to retrieve the Name of each Manual Reset Monitor. The aim was to identify these monitors in the connector.

  1. Select Monitor.MonitorName, MNTSName
  2. From [OperationsManager].[dbo].[MonitorTypeState] MTS
  3. Inner join OperationsManager.dbo.MonitorType MT With (NOLOCK) on MT.MonitorTypeId = MTS. MonitorTypeId
  4. Inner join Monitor with (NOLOCK) on Monitor. MonitorTypeId = MT. MonitorTypeId
  5. Where MNTSName like '%ManualReset%'
Result should be like :


MonitorNameMNTSName
Microsoft.Windows.Server.2000.OperatingSystem.ServerServiceConfigurationManualResetEventRaised
Microsoft.Windows.Server.2003.OperatingSystem.ServerServiceConfigurationManualResetEventRaised
Microsoft.Windows.Server.2008.OperatingSystem.ServerServiceConfigurationManualResetEventRaised

This posting is provided "AS IS" with no warranties.

Monday, March 5, 2012

I Love System Center Wallpaper new version in High Resolution

I Love System Center Wallpaper

New version, System Center Wallpaper. High Resolution (3840 x 2160), and in 11 Colors.







This posting is provided "AS IS" with no warranties.

Friday, March 2, 2012

[OpsMgr 2007 & 2012] System Center Monitoring Pack for System Center 2012 Configuration Manager - Release Candidate

Version:5.0.7705.0                    Date Published:2/29/2012
Language:English



File Name



Size     
ConfigMgr_MPGuide.docx127 KB       Download
ConfigMgr_MPGuide_Appendix.docx142 KB       Download
System Center Monitoring Pack for Configuration Manager.msi993 KB       Download




Overview
This is the release of the Monitoring Pack for Microsoft System Center 2012 Configuration Manager RC2. This monitoring pack helps administrators manage and administer Configuration Manager servers, computers, databases, services, disks, applications, or any other kind of object that requires monitoring.

Feature Summary
This release of monitoring pack delivers improved capabilities for Configuration Manager monitoring, including the following:
  • Monitoring the availability status of all server roles
  • Monitoring the health status of key services
  • Monitoring SQL replication health status
  • Collecting and monitoring performance counters from Configuration Manager servers
  • A topology diagram of the Configuration Manager site hierarchy
  • Reports showing the availability status and performance of Configuration Manager servers

Release History
  • 2/29/2012 - RC2 Release, version 5.0.7705.0

System requirements

Supported Operating Systems: Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2008 R2 SP1, Windows Server 2008 Service Pack 2

  • Other Software:
    • System Center Operations Manager 2007 R2 or later
    • System Center 2012 Configuration Manager RC

Instructions


  1. Click the Download button on this page to start the download
  2. Do one of the following:
    • To start the installation immediately, click Run.
    • To save the download to your computer for installation at a later time, click Save.
    • To cancel the installation, click Cancel.

This posting is provided "AS IS" with no warranties.

Thursday, March 1, 2012

[OpsMgr 2007] How to create a Two-State PowerShell Script Monitor using the Authoring Console

Here is a blog that has been very very usefull for me to develop some MPs. Thanks to Stefan Koell


As always be careful with the samples provided in the different links.
Always use a test environment first to try those examples!
Will only work with OpsMgr 2007 R2 !



This posting is provided "AS IS" with no warranties.