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
AD Integration LDAP Queries
Posted
over 4 years ago
by
Jonathan Almquist
1
Comments
Here are some useful scripts to check and update AD Integration settings using the Command Shell. Thanks to Lincoln Atkinson for helping me figure this one out. Check current Ldap query get-managementserver | where {$_.name -eq " fqdn "...
Jonathan Almquist on Operations Manager
Set failover management server for Gateway role
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
This will set a failover Management Server for a Gateway role, leaving the currently configured primary Management Server. Beware of word wrap on the last two lines (should be one line). $gw = get-GatewayManagementServer | where {$_.Name -eq " gw_fqdn...
Jonathan Almquist on Operations Manager
Error 25351 – Failed to stop services
Posted
over 4 years ago
by
Jonathan Almquist
1
Comments
So, here’s a quick post on this error. I did a quick web search for this, just to see if anyone posted the same, and didn’t get any hits (something I always do before posting). Problem This is very common during an upgrade from SP1 to R2. ...
Jonathan Almquist on Operations Manager
Windows Server 200x Operating System Class
Posted
over 4 years ago
by
Jonathan Almquist
1
Comments
While creating some content late last year and playing around with the getClassPath script , I put together this chart of the Windows Server 200x Operating System class structure. I stumbled across it while perusing my file system and, since I had...
Jonathan Almquist on Operations Manager
Enable Agent Proxy for a Class (ClassProxyEnabler)
Posted
over 4 years ago
by
Jonathan Almquist
7
Comments
Agent Proxy needs to be enabled for several different management packs features to work properly. Active Directory, Cluster and Exchange are just a few common management packs requiring Agent Proxy to be enabled. Enabling the Agent Proxy security...
Jonathan Almquist on Operations Manager
Return SMTP Channel Email Addresses
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Get-NotificationRecipient | foreach-object {$_.devices | where {$_.protocol -eq "smtp"}} | select name,address Command Shell Main Menu
Jonathan Almquist on Operations Manager
Domain Controllers not monitored state
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Do you have some domain controllers that are appearing in a “not monitored” state? There are several reasons why an object would have a “not monitored” state. There are two very common reasons why a domain controller appears in this state if you...
Jonathan Almquist on Operations Manager
CScript spikes CPU – even with version 5.7
Posted
over 4 years ago
by
Jonathan Almquist
2
Comments
I ran across an issue recently where several CScript processes would peg the CPU for several seconds at a time. You may have run across the same issue, and read some other articles about updating CScript to the latest version (5.7). But, what...
Jonathan Almquist on Operations Manager
Multiple Management Groups, Single Data Warehouse (part 2)
Posted
over 4 years ago
by
Jonathan Almquist
9
Comments
In this series, I’m going to talk about multiple Management Groups sharing a single Data Warehouse. I’ll try to clarify two common questions that come out of this scenario. Part 1 – Operations Manager Reporting Instance Where do these...
Jonathan Almquist on Operations Manager
In which Management Pack is this Group Stored?
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Ever wonder which Management Pack you stored a particular group in? Here’s the answer. ForEach ($Group in get-MonitoringObjectGroup) {If ($Group.DisplayName -eq " <group_name> ") {get-MonitoringClass | where {$_.Id -eq $Group.Id...
Jonathan Almquist on Operations Manager
Multiple Management Groups, Single Data Warehouse (part 1)
Posted
over 4 years ago
by
Jonathan Almquist
18
Comments
In this series, I’m going to talk about multiple Management Groups sharing a single Data Warehouse. I’ll try to clarify two common questions that come out of this scenario. Part 1 – Operations Manager Reporting Instance Where do these components...
Jonathan Almquist on Operations Manager
DBCreateWizard Fails – CLR20r3
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Came across an issue today that was really just a matter of me not reading the fine print. I figured a quick post on this could help someone with the same issue. The problem While attempting to install a database using DBCreateWizard , I was receiving...
Jonathan Almquist on Operations Manager
Console sluggish or frozen during agent approval process
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
I was working with a large customer last week, and found some very interesting performance metrics which impact console sessions. This particular customer pushes the limits of Operations Manager 2007 in every way. They have 6000+ agents in...
Jonathan Almquist on Operations Manager
Agent Failover Status
Posted
over 4 years ago
by
Jonathan Almquist
2
Comments
Here is a script that will output agent failover status. Simply copy the script below into the Command Shell on any Management Server, including the Root Management Server. The results will show you a list of agents currently connected to that Management...
Jonathan Almquist on Operations Manager
All disk sizes (GB)
Posted
over 4 years ago
by
Jonathan Almquist
15
Comments
/*Get each logical disk size, for each agent computer, by OS version. This helps in calculating the Logical Disk Free Space Monitor from my earlier post . You can copy results into Excel, sort by system and non-system drives, and perform an average...
Jonathan Almquist on Operations Manager
Get Alert History by Alert Name
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
get-alert | where {$_.name -match " Alert Name "} | get-AlertHistory | select Time* command shell main menu
Jonathan Almquist on Operations Manager
Get Failover MS List for Agent Computer
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
This will return the list of Failover Management Servers for specified agent. get-agent | where {$_.computername -eq " netbios computername "} | Get-FailoverManagementServer | select computername command shell main menu
Jonathan Almquist on Operations Manager
Top 10 Events
Posted
over 4 years ago
by
Jonathan Almquist
2
Comments
This will return the top ten events collected. FYI – Given the sheer number of events collected and stored in the OperationsManager database, this query may take a minute to return results. $array = @();foreach ($number in Get-Event | foreach-object ...
Jonathan Almquist on Operations Manager
Switch to another MG in Command Shell session
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
If you have multiple Management Groups, this can be handy to switch between them while in the same Command Shell session. Always be aware of which Management Group you’re connected to while in the Command Shell! This example assumes your session is...
Jonathan Almquist on Operations Manager
Operations Manager 2007 SQL Queries
Posted
over 4 years ago
by
Jonathan Almquist
4
Comments
Sharing this list of random SQL queries I have found useful on different occasions. Refer to report dataset samples page for SQL queries you can use for custom reporting needs. Updated: 08-05-2011 OperationsManager OperationsManagerDW...
Jonathan Almquist on Operations Manager
All groups and their contained instances
Posted
over 4 years ago
by
Jonathan Almquist
2
Comments
SELECT SourceMonitoringObjectDisplayName AS 'Group', TargetMonitoringObjectDisplayName AS 'Member' FROM RelationshipGenericView WHERE (SourceMonitoringObjectDisplayName...
Jonathan Almquist on Operations Manager
All groups
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
SELECT ManagedEntityGenericView.DisplayName, ManagedEntityGenericView.FullName FROM ManagedEntityGenericView INNER JOIN ...
Jonathan Almquist on Operations Manager
What does this task target?
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
This will return which [typed] class the specified task will run against. foreach ($targetId in get-task | where {$_.displayname -match " task name "} | foreach-object {$_.get_target().id.tostring()}) {get-monitoringclass | where {$_.id -eq...
Jonathan Almquist on Operations Manager
Return discoveries running on specific interval
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Got a new one today. HTH. Foreach ($discovery in (get-discovery | foreach-object {$_.DataSource})) { if ($discovery.Configuration -match "IntervalSeconds> seconds <") ...
Jonathan Almquist on Operations Manager
Exclude Drive from Logical Disk Free Space Monitoring: Part 1
Posted
over 4 years ago
by
Jonathan Almquist
13
Comments
Since I just wrote an article on how to use the Logical Disk Free Space monitor , I figured this would be a nice compliment to that post. I highly recommend reading that article to get an understanding of this monitor before moving forward with...
Page 5 of 9 (202 items)
«
3
4
5
6
7
»