in

Next user group meeting topics

Last post 07-08-2008 4:57 PM by idan Lerer. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 06-30-2008 7:50 PM

    Next user group meeting topics

    I'm hoping my Operations Manager/Command Shell presentation during meeting #1 was helpful.

    If you have any suggestions/comments/questions as to what you might like to see maybe in a future session, leave a comment here!

    Marco

  • 07-01-2008 11:26 AM In reply to

    Re: Next user group meeting topics

    1. Authoring console 2. Using SNMP monitor device 3. Scripting in SCOM 4. Monitoring SQL using SCOM (SQL MP still not contain monitoring replication e.g.) I will think for additional :-)
  • 07-06-2008 5:47 AM In reply to

    • ScottMoss
    • Top 10 Contributor
    • Joined on 05-06-2008
    • in a golf course
    • Posts 15

    Re: Next user group meeting topics

    Scripting in SCOM, like creating a custom monitor or rule that utilizes your custom VBScript? Or how to fire off alerts in VBScript in a rule or monitor? How to use property bags? Could you give an example of what you'd like to see?

    thank you,

    Scott Moss

    Scott Moss
    Wantabe MOM Admin
    Virtual Gopher - System Center Virtual User Group

    Visit myitforum blog
    http://myitforum.com/cs2/blogs/smoss/default.aspx
  • 07-06-2008 8:00 PM In reply to

    Re: Next user group meeting topics

    I think how to create custom monitor / rule that utlizes custom VBScript that this script may generate alert / create performance counter:

    1.  

    Set oAPI = CreateObject("MOM.ScriptAPI")

    2.

    Set oBag = oAPI.CreatePropertyBag()
    Call oBag.AddValue("instance", strDirPath)
    Call oBag.AddValue("perfValue", nResult)
    Call oAPI.Return(oBag)

    And in the rule

     

    $Data/Property[@Name='instance']$

    $Data/Property[@Name='perfValue']$

     3.

    How to use parameters in scripts

    e.g.

     set oArgs = WScript.Arguments

    srtSever = Split(oArgs.Items(0),",")

     

    oArgs.Items(1) = 1

    oArgs.Items(2) = 2

     

     

  • 07-08-2008 11:20 AM In reply to

    Re: Next user group meeting topics

    Dont forget to format the Property Bag

    Set oBag = oAPI.CreatePropertyBag(StateDataType)

    Here are some examples of types of data for Property Bags.

    oBag = CreateTypedPropertyBag(0)
    property bag can be converted only to alert, it is not convert-able to anything else and would be ultimately dropped with such conversion request
            

    oBag = CreateTypedPropertyBag(1)
    property bag can be converted only to event, it is not convert-able to anything else and would be ultimately dropped with such conversion request
            

    oBag = CreateTypedPropertyBag(2)
    property bag can be converted only to perf data, it is not convert-able to anything else and would be ultimately dropped with such conversion request

    oBag = CreateTypedPropertyBag(3)
    property bag can be converted only to state data, it is not convert-able to anything else and would be ultimately dropped with such conversion request

     Got it from http://blogs.msdn.com/mariussutara/archive/2008/01/24/momscriptapi-createtypedpropertybag-method.aspx

     

    Hope that Helps Smile
  • 07-08-2008 4:57 PM In reply to

    Re: Next user group meeting topics

    Yes I know thanks I just gave example of what can be cover in scripting session
Page 1 of 1 (6 items)
Powered by Community Server (Commercial Edition), by Telligent Systems