DX Infrastructure Manager

Expand all | Collapse all

How to get an output of all profiles in a probe?

  • 1.  How to get an output of all profiles in a probe?

    Posted 11-24-2016 10:48 AM

    Hi,

     

    How can I get an output of all my profile names in a probe?
    Would like to know how to do it with a script, and also if there is somewhere else in UIM to get the output.



  • 2.  Re: How to get an output of all profiles in a probe?

    Broadcom Employee
    Posted 11-24-2016 11:55 AM

    Hi rith,

    webservices_rest? 

    You can get the output of a probe configuration using one of the probe calls through a rest call using a rest client.

    Then you can extract the profile names from the configuration output. (Ie. the "get a probe configuration call" Probe Calls - CA Unified Infrastructure Management Probes - CA Technologies Documentation)

    You can also run the callback "probe_config_get" on the controller using the probe utility (Ctrl+P) or command line to get the probe config output



  • 3.  Re: How to get an output of all profiles in a probe?

    Posted 11-29-2016 12:07 PM

    Thank you! Problem when I try to import the probe to my UMP-server is that the my Wasp-version, 8.2, is to old for the webservices_rest, which is on 8.47 when I downloaded it from the archive.

     

    How do I fix this?



  • 4.  Re: How to get an output of all profiles in a probe?

    Posted 11-27-2016 06:45 AM
      |   view attached

    If you want to do it via a LUA script, attached an example that can:

    - query CM_NIMBUS_ROBOT for all robots that contain the probe: url_response

    - loop in all robots that match to execute the callback: probe_config_get

    - do some filtering to obtain only some basic stuff for each profile

    - write a csv in c:\temp that gives you a quick overview

     

    Attachment(s)



  • 5.  Re: How to get an output of all profiles in a probe?

    Posted 11-29-2016 12:08 PM

    Thank you!
    What would a more simple script look like if I already know which robot and probe I need to get the output from?



  • 6.  Re: How to get an output of all profiles in a probe?

    Posted 11-30-2016 01:52 AM

    A very simple version of a script could be:

    ----

    args = pds.create()
    pds.putString (args,"name","cdm")
    cfg,rc = nimbus.request ("/***_domain/***_hub/***_robot/controller","probe_config_get",args)
    if rc == 0 then
       for section,tableid in pairs(cfg) do
         print("section: ",section,"")
       end
    end

    ---



  • 7.  Re: How to get an output of all profiles in a probe?

    Posted 12-06-2016 03:18 AM

    Great, thank you!