Command Shell Examples
Useful SQL Queries
Jonathan Almquist on Operations Manager - Site Home - TechNet Blogs
Sign in
Jonathan Almquist on Operations Manager
Search my blog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Tag Cloud
Authoring
Custom Reports
Exchange 2010 MP
Performance Tips
Powershell
Report Datasets
SCOM 2012
TSQL (misc)
Tuning
Options
About
Email Blog Author
RSS for posts
RSS for comments
Atom
OK
Archive
Archives
February 2012
(1)
January 2012
(2)
November 2011
(2)
September 2011
(1)
August 2011
(8)
July 2011
(1)
June 2011
(4)
May 2011
(2)
April 2011
(15)
January 2011
(8)
December 2010
(1)
October 2010
(8)
August 2010
(2)
July 2010
(2)
June 2010
(2)
May 2010
(6)
April 2010
(4)
March 2010
(5)
February 2010
(1)
January 2010
(4)
December 2009
(9)
November 2009
(14)
October 2009
(1)
September 2009
(4)
August 2009
(1)
July 2009
(1)
June 2009
(3)
May 2009
(1)
April 2009
(15)
March 2009
(44)
February 2009
(4)
November 2008
(6)
September 2008
(1)
August 2008
(4)
July 2008
(2)
April 2008
(2)
March 2008
(9)
February 2008
(1)
December 2007
(1)
TechNet Blogs
>
Jonathan Almquist on Operations Manager
Jonathan Almquist on Operations Manager
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Jonathan Almquist on Operations Manager
Return discovered inventory
Posted
over 3 years ago
by
Jonathan Almquist
2
Comments
Just playing around today and thought I’d make this little post on how to return discovered inventory in Command Shell. This one in particular will return all disk sizes discovered, convert to GB and round to the nearest 1. get-MonitoringClass ...
Jonathan Almquist on Operations Manager
How and when is data written (or synchronized) to the Data Warehouse?
Posted
over 3 years ago
by
Jonathan Almquist
4
Comments
Back in the MOM days the data was synchronized to the Data Warehouse by means of DTS jobs. Data would be synchronized from the operational database to the Data Warehouse database on a schedule. Using the scheduled DTS method of synchronizing...
Jonathan Almquist on Operations Manager
Health Service Heartbeat Failure, Diagnostics and Recoveries
Posted
over 3 years ago
by
Jonathan Almquist
9
Comments
I’ve seen plenty of questions come up in the forums and from customers regarding the Health Service Heartbeat Failure monitor, and its associated diagnostics and recoveries. I spent a little time digging further into these workflows and thought...
Jonathan Almquist on Operations Manager
Why are there no alerts coming in?
Posted
over 3 years ago
by
Jonathan Almquist
1
Comments
Every now an then someone will ping me and ask me why they are not seeing any new alerts. My first question is, do you expect an alert for some reason? Sometimes there may be an issue with SCOM. But every now and then we find that SCOM...
Jonathan Almquist on Operations Manager
Group members (DW)
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
/* Return Health Service instances hosting one or more instances contained in system.group */ USE OperationsManagerDW SELECT vManagedEntity.DisplayName AS Computer FROM vManagedEntity INNER JOIN ...
Jonathan Almquist on Operations Manager
All groups (DW)
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Thanks to Daniel Savage for helping with this one. /* Get all groups from Data Warehouse */ USE OperationsManagerDW SELECT DISTINCT DisplayName FROM vManagedEntity WHERE (ManagedEntityTypeRowId IN ...
Jonathan Almquist on Operations Manager
Agents: remove configured management group or uninstall agent using command line
Posted
over 4 years ago
by
Jonathan Almquist
5
Comments
I had a question today about uninstalling an agent using the command line. The options referenced here are great for installing, configuring and modifying an agent and all possible options. Here are some additional notes that may come in handy...
Jonathan Almquist on Operations Manager
Monitor the operations database grooming procedure (v2)
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
UPDATE: Monitoring the operational database grooming procedure is now included in the SCOM management pack since version 6.1.7672.0. I will keep this post up as an example of how to create a monitor based on a script that queries a database. Okay,...
Jonathan Almquist on Operations Manager
Monitor the operations database grooming procedure
Posted
over 4 years ago
by
Jonathan Almquist
1
Comments
UPDATE: Monitoring the operational database grooming procedure is now included in the SCOM management pack since version 6.1.7672.0. I will keep this post up as an example of how to create a monitor based on a script that queries a database. Often...
Jonathan Almquist on Operations Manager
Table size and record count
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
This was initially published by Kevin , and Steve added row count. I just changed the column names and posted it here for easy access to customers I work with. Anytime I engage in a tuning effort or a case where there are database issues,...
Jonathan Almquist on Operations Manager
Command Shell Tab Expansion Delay
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
A few months ago, after re-installing my workstation operating system and getting all my applications and tools loaded, I fire up Operations Manager Command Shell. Since I use the tab expansion function frequently, I noticed immediately that for...
Jonathan Almquist on Operations Manager
Event data, views and grooming
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Every day I have a number of fleeting thoughts that I hope every Operations Manager administrator knows. With all the emerging blogs about Operations Manager over the past year offering up a wealth of knowledge, sometimes I assume the majority of...
Jonathan Almquist on Operations Manager
Groups and related information
Posted
over 4 years ago
by
Jonathan Almquist
1
Comments
Return state of a group foreach($a in get-monitoringobjectgroup){if($a.DisplayName -eq " group name "){$a.HealthState}} Return contained instances of a group and state of each instance foreach ($group in get-monitoringobjectGroup) {if($group...
Jonathan Almquist on Operations Manager
Number of alerts raised per day for last 28 days
Posted
over 4 years ago
by
Jonathan Almquist
2
Comments
/*Number of alerts raised per day for last 28 days.*/ USE OperationsManagerDW SELECT CONVERT(VARCHAR(10), DBCreatedDateTime, 101) AS Date, COUNT(*) AS Alerts FROM Alert.vAlert WHERE (DBCreatedDateTime BETWEEN DATEADD(day, -27, GETDATE()) AND GETDATE...
Jonathan Almquist on Operations Manager
Number of events collected per day for last 28 days
Posted
over 4 years ago
by
Jonathan Almquist
2
Comments
/*Number of events collected per day for last 28 days.*/ USE OperationsManagerDW SELECT CONVERT(VARCHAR(10), DateTime, 101) AS Date, COUNT(*) AS Events FROM Event.vEvent WHERE (DateTime BETWEEN DATEADD(day, - 27, GETDATE()) AND GETDATE()) GROUP...
Jonathan Almquist on Operations Manager
Number of state change events per day for last 28 days
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
/*Number of state change events per day for last 28 days.*/ USE OperationsManagerDW SELECT CONVERT(VARCHAR(10), DateTime, 101) AS Date, COUNT(*) AS 'State Changes' FROM State.vStateRaw WHERE (DateTime BETWEEN DATEADD(day, - 27, GETDATE()) AND GETDATE...
Jonathan Almquist on Operations Manager
Number of unit monitor state changes per day for last 28 days
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
/*Number of unit monitor state changes per day for last 28 days.*/ USE OperationsManagerDW SELECT CONVERT(VARCHAR(10), DateTime, 101) AS Date, COUNT(*) AS 'State Changes' FROM State.vStateRaw INNER JOIN ...
Jonathan Almquist on Operations Manager
Top 50 alert generating rules and monitors in last 7 days, sorted by alert + repeat count
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
/*Top 50 alert generating rules and monitors in last 7 days, sorted by alert + repeat count.*/ USE OperationsManagerDW SELECT TOP (50) Alerts.AlertName, SUM(1) AS 'Alert Instances', SUM(Alerts.RepeatCount + 1) AS 'Alert + Repeat Count', ...
Jonathan Almquist on Operations Manager
Top 50 alert generating rules and monitors in last 7 days, sorted by alert instances
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
/*Top 50 alert generating rules and monitors in last 7 days, sorted by alert instances.*/ USE OperationsManagerDW SELECT TOP (50) Alerts.AlertName, SUM(1) AS 'Alert Instances', SUM(Alerts.RepeatCount + 1) AS 'Alert + Repeat Count', ...
Jonathan Almquist on Operations Manager
Top 50 event inserts in last 7 days
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
/*Top 50 event inserts in last 7 days.*/ USE OperationsManagerDW SELECT TOP (50) COUNT(*) AS Count, Event.vEvent.EventDisplayNumber AS 'EventId', vRule.RuleDefaultName AS 'Collection Rule', ...
Jonathan Almquist on Operations Manager
Top 50 performance sample inserts for last 10 days (by default)
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
/*Top 50 Performance Sample Inserts for last 10 days by default.*/ USE OperationsManagerDW SELECT TOP (50) COUNT(*) AS Count, vPerformanceRule.ObjectName AS Object, vPerformanceRule.CounterName AS Counter, ...
Jonathan Almquist on Operations Manager
Top 50 state changing unit monitors in last 7 days
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
/*Top 50 state changing unit monitors in last 7 days.*/ USE OperationsManagerDW SELECT TOP (50) COUNT(*) AS Count, vMonitor.MonitorDefaultName, vManagementPack.ManagementPackDefaultName FROM State.vStateRaw INNER JOIN ...
Jonathan Almquist on Operations Manager
Discovery Check
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
These were initially published by Daniele Grandini and have been a great tool for finding noisy discoveries. Only small modifications to time window has been made. /*Top discovery rules in the last 24 hours*/ USE OperationsManagerDW SELECT ManagedEntityTypeSystemName...
Jonathan Almquist on Operations Manager
Operational groom settings
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
/*Operational groom settings*/ USE OperationsManager SELECT ObjectName, DaysToKeep AS Days FROM PartitionAndGroomingSettings ORDER BY ObjectName Back to SQL queries main menu
Jonathan Almquist on Operations Manager
DW Retention and Groom Settings
Posted
over 4 years ago
by
Jonathan Almquist
1
Comments
/*Data Warehouse retention settings*/ USE OperationsManagerDW SELECT Dataset.DatasetDefaultName AS Dataset, StandardDatasetAggregation.MaxDataAgeDays AS Days, CASE StandardDatasetAggregation...
Page 4 of 9 (202 items)
«
2
3
4
5
6
»