DX Unified Infrastructure Management

 View Only
  • 1.  logmon: Generic package to delete given watcher?

    Posted May 02, 2017 09:42 AM

    Is it possible to create a generic package that will delete (or deactivate) a given logmon watcher name from any profile in which it exists on a given robot?

  • 2.  Re: logmon: Generic package to delete given watcher?

    Posted May 02, 2017 01:28 PM

    There is no pattern matching within a cfx file and so using that route if you don't know the exact name of the profile will fail.


    The only option that I would suggest is to use the package to move a script out to the system in question and the post install command on the misc tab to execute it. Then in the script you could identify the exact path from the local cfg file and use pu against the controller to specifically set the path for the watcher to inactive.


    I use this method to automate the configuration of the ntperf probe where the name of the desired counter is system specific.



  • 3.  Re: logmon: Generic package to delete given watcher?
    Best Answer

    Posted May 04, 2017 12:29 PM



    A solution would be to create script that made a callback on each robots/probes, retrieving the cfg and deleting section if you match what you want.


    That request times and skill on one of the following language (Perl, Java, C, NodeJS).


    Some useful links (with callbacks etc..) : 


    GitHub - fraxken/checkconfig2: CA UIM Checkconfig2 (Retrieving hubs,robots,probes and cfg / parsing sections).

    GitHub - fraxken/checkconfig_lua: CA UIM Checkconfig LUA for NAS 

    UIM-Community · GitHub (New community organisation with many code projects).


    And for deleting this is just " probe_config_set " callback.


    Best Regards,