[OpsMgr] get MP version directly from OpsDB

Posted: September 27, 2011 in SCOM, SCOM 2007

here is an T-SQL to get Management Pack version directly from OperationsManager database

Use OperationsManager
declare @xml xml;
select @xml = (select MPXML from ManagementPack where MPName = 'Microsoft.SystemCenter.Library')

select t.rows.value('data(.)', 'varchar(20)') as Version
from @xml.nodes('//ManagementPack/Manifest/Identity/Version') as t(rows)
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s