locked
How to get Version of SCOM using OMCF RRS feed

  • Question

  • I have a connector between SCOM and a NMS system. This Connector pulls alert from SCOM and send it to NMS.

    For this connector I want to check SCOM version it is connecting to.
    i.e.
    I want to check If it is connecting to SCOM 2007 or SCOM 2012.

    Is there a way in OMCF to/which get/returns  the Version of SCOM ?

    Thanks
    Madhur

    Madhur

    Friday, November 2, 2012 11:04 AM

Answers

  • I found the way to get it .
    For SCOM 2007  version will be something like 6.x.y.z
    For SCOM 2012  version will be something like 7.x.y.z

    Here is the code to get it 

    mgtGroup = ManagementGroup::Connect( scomHost );
    Version^ version = mgtGroup->Version;
    int majorVersion = version->Major;

    Thanks,
    Madhur

    Madhur

    • Marked as answer by Maddynit Wednesday, November 7, 2012 4:43 PM
    Wednesday, November 7, 2012 4:43 PM