Archive for June, 2013

If you want to use PowerShell to change the Database Grooming settings in SCOM 2012, you can use the following: (just set the value to how many days you want to keep the data before grooming it out of the database)

# The number of days before grooming resolved alerts
Set-SCOMDatabaseGroomingSetting -AlertDaysToKeep 2
# The number of days before grooming availability history
Set-SCOMDatabaseGroomingSetting -AvailabilityHistoryDaysToKeep 2
# The number of days before grooming event data
Set-SCOMDatabaseGroomingSetting -EventDaysToKeep 1
# The number of days before grooming task history
Set-SCOMDatabaseGroomingSetting -JobStatusDaysToKeep 2
# The number of days before grooming maintenance mode history
Set-SCOMDatabaseGroomingSetting -MaintenanceModeHistoryDaysToKeep 2
# The number of days before grooming monitoring job data
Set-SCOMDatabaseGroomingSetting -MonitoringJobDaysToKeep 2
# The number of days before grooming performance data
Set-SCOMDatabaseGroomingSetting -PerformanceDataDaysToKeep 2
# The number of days before grooming state change data
Set-SCOMDatabaseGroomingSetting -StateChangeEventDaysToKeep 4

# Loading the Old 2007 R2 Provider to finish the configuration of things that cannot be done with the new cmdlets

add-pssnapin “Microsoft.EnterpriseManagement.OperationsManager.Client”
new-managementGroupConnection -ConnectionString:YOURMANAGEMENTSERVERHERE
set-location “OperationsManagerMonitoring::”
Set-DefaultSetting -Name ManagementGroup\PartitioningAndGroomingSettings\PerformanceSignatureDaysToKeep -Value 1
Set-DefaultSetting -Name ManagementGroup\PartitioningAndGrooming\SettingsJobStatusDaysToKeep -Value 1

This cmdlet deletes all class instances for which discovery has been disabled by using an override. All the relationships that involve these class instances are also deleted. This cmdlet replaces the old SCOM 2007 Remove-DisabledMonitoringObject cmdlet.

Remove-SCOMDisabledClassInstance

**WARNING** This operation WILL result in class instances and relationships being permanently deleted.  This operation is irreversible and will likely result in a significant amount of activity in the operational database.  Are you sure you want to do this? [Y/N] 

Started.  This operation may take a very long time to complete.
Completed.  The operations took 0 hours and 0 minutes to complete.

Call me picky, but I like the blue color of the Windows PowerShell console, so I dislike it when the PowerShell Console defaults to black on some systems like a regular old Command Window. So, here’s the color values to use if you want to change it to the more standard blue.

PowerShell Blue Console Color

 

 

 

 

 

 

Just click the Top Left of the PowerShell Console Window and choose “Properties”. On the Colors Tab use these values for the “Screen Background”: Red=1, Green=36 and Blue=86.

PowerShell Colors

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Finally on the same Colors Tab use these values for the “Screen Text”: Red=238, Green=237 and Blue=240.

PowerShell Screen Text

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Click “OK”.

 

SCOM Agent Versions

Categories: SCOM
Comments: No

System Center Operations Manager 2007 RTM: Version 6.0.5000

System Center Operations Manager 2007 SP1: Version 6.0.6278

System Center Operations Manager 2007 R2 RTM: Version 6.1.722.0

System Center Operations Manager 2007 R2 Cumulative Update 1: Build 6.1.7221.13

System Center Operations Manager 2007 R2 Cumulative Update 2 :Build 6.1.7221.15

System Center Operations Manager 2007 R2 Cumulative Update 3 :Build 6.1.7221.49

System Center Operations Manager 2007 R2 Cumulative Update 4: Build 6.1.7221.61

System Center Operations Manager 2007 R2 Cumulative Update 5: Build 6.1.7221.81

System Center Operations Manager 2007 R2 Cumulative Update 6: Build 6.1.7221.99

System Center Operations Manager 2007 R2 Cumulative Update 7: Build 6.1.7221.110

System Center Operations Manager 2012 RTM: Version 7.0.8560.0

System Center Operations Manager 2012 RTM Cumulative Update 1: Build 7.0.8560.1021

System Center Operations Manager 2012 RTM Cumulative Update 2: Build 7.0.8560.1027

System Center Operations Manager 2012 RTM Cumulative Update 3: Build 7.0.8560.1036

System Center Operations Manager 2012 SP1 RTM: Version 7.0.9538