DX Unified Infrastructure Management

 View Only
  • 1.  Changing alarm message

    Posted Apr 28, 2020 10:39 AM
    Hi ;
    I am new to Dx Infrastructure manager, I wanted to change alarm messages on ntservices probe, There are 100 servers that I need to change messages is there any way to do it without changing alarm messages in each probe? I configured alarms from Admin console. Which way is the best practice to create windows service alarms msc or admin console?

    Regards


  • 2.  RE: Changing alarm message

    Posted Apr 28, 2020 11:45 AM
    The nas has the "preprocessor" function that allows you to manipulate the content of alarms before they are stored. That is the place to put code to fix the message on the fly.

    Otherwise the suggestion would be to create a package (need IM for that - neither MSC or admin consiole can do that still) with a cfx file that looks like:

    <messages> overwrite
    <WrongState> edit
    text = This is the new  message for Service in wrong state - $profile_name (Expected: $expected_state, found: $state)
    </WrongState>
    </messages>

    and then deploy that to the 100 systems. This file will only change the text of the message WrongState if it exists.

    What we do when a changed message is desired is to put the preprocessing script in place which effectively changes everything in an instant, then go and update the individual probes with the package method (there's also a call back to the controller to set a single field value) and then when all are updated, remove the preprocessing code.


  • 3.  RE: Changing alarm message
    Best Answer

    Posted Apr 28, 2020 12:15 PM
    Hi Murat,
    I have taken a look at the ntservices probe configuration using Infrastructure Manager, Admin Console, and MCS. I can only change the standard (message pool) alarm messages using either Infrastructure Manager (IM) or Admin Console. Both of these methods are one probe at a time as you are configuring a specific probe on a specific robot using these two consoles. MCS does not provide the ability to change the standard messages only the alarm severity. Since you want to make the change on ~100 instances of the probe, I would recommend you use IM and make the changes on one instance of the probe, then drag and drop the probe back into the archive creating a configuration only package. Be sure to rename it so it doesn't overwrite the actual probe. Then, in the archive, double click on the configuration package, right click on the ntservices,cfx file and save it out (easier to edit this way). then open the saved ntservices.cfx file in Notepad or Notepad++ and remove all the sections except the <messages> section.Make sure you don't delete the </messages> line. the entire message pool is contained between these two section labels. You can also delete any of the messages that you are not changing, but it isn't necessary. Then open up the configuration package in the archive, right click on the ntservices.cfx file in the package editor and remove it. then right click in the empty space and select Add file, navigate to your edited ntservices.cfx file and select it. click OK and the package will be saved with the new file. this will overwrite the messages section of any ntservices probe that it is deployed to. Now simply drag and drop or distribute the configuration package out to the robots that have the ntservices probe where you want to the message(s) changed.
    Hope this helps

    ------------------------------
    [Designation]
    [City]
    ------------------------------



  • 4.  RE: Changing alarm message

    Posted Apr 28, 2020 04:21 PM
    There is some documentation available on both items. 

    Issue while creating ntservices probe package
    Article Id: 6996
    https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=6996

    Configuring the ntservices probe on multiple robots at same time
    Article Id: 10942
    https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=10942

    UIM - Editing probe packages (configuration files and templates: .cfg and .cfx)
    Article Id: 34027
    https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=34027

    Copy Probe Configuration Settings
    https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/it-operations-management/unified-infrastructure-management/9-0-2/administering/working-with-infrastructure-manager/general-probe-management-in-infrastructure-manager.html#concept.dita_597e477b0edc8df59b21f7feb11c3ac59c106ee6_CopyProbeConfigurationSettings

    The Scripts Tab
    https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/it-operations-management/ca-unified-infrastructure-management-probes/GA/alphabetical-probe-articles/nas-alarm-server/nas-im-configuration/the-nas-auto-operator-tab.html#concept.dita_68181394ea354dade5c0e878c25c3babd80ca6a3_TheScriptsTab

    The nas Extensions to Lua (All Versions)
    https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/it-operations-management/ca-unified-infrastructure-management-probes/GA/alphabetical-probe-articles/nas-alarm-server/the-nas-extensions-to-lua-all-versions.html

    nas sample scripts:
    IM > nas configure > Auto-Operator > Scripts > examples
    on disk:
    $\Nimsoft\probes\service\nas\scripts\examples


    How to change alarm severity using a NAS script?
    Article Id: 10487
    https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=10487

    How to change alarm messages by using Lua script in NAS
    Article Id: 46915
    https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=46915

    How do I update custom fields in a LUA script
    Article Id: 95394
    https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=95394

    Options for running LUA Scripts in UIM
    Article Id: 12757
    https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=12757

    How to change custom fields using LUA and the nas auto operator
    Article Id: 34318
    https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=34318

    ------------------------------
    Support Engineer
    Broadcom
    ------------------------------



  • 5.  RE: Changing alarm message

    Posted Apr 28, 2020 04:30 PM
    Thought of something else. 
    If going with the custom probe package option you might be able to create a group in IM containing all the robots with the probe and so then be able to deploy the custom package to all at the same time via drag and drop onto the group. 

    These KB docs have info on IM Groups:
    Infrastructure Manager Groups Node (How to create and work with IM Groups)
    Article Id: 10343
    https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=10343

    How to create groups in Infrastructure Manager
    Article Id: 107787
    https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=107787

    How to work with Groups in the Nimsoft Infrastructure Manager
    Article Id: 33953
    https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=33953

    Adding the Infrastructure Groups into UIM
    Article Id: 10189
    https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=10189

    ------------------------------
    Support Engineer
    Broadcom
    ------------------------------



  • 6.  RE: Changing alarm message

    Posted Apr 30, 2020 04:33 AM
    Hello everyone;

    I achieved it with @James Christensen 's comment. Thanks everyone for the quick response and helping I will try other methods also.

    Regards


    ​​