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.
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,"") endend
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
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
Great, thank you!
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?
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?