I am looking for a script which will check robot against net_connect list for all the hubs . This should be emailed to recipients. can someone help me with the script if exists ?
Do you want to create a list of target devices in every net_connect probe instances ?
No. I am looking for checking the count of robots in hub vs netconnect.
script looks good if they have the following
Eg: Results like
Thanks. You would like to check if all the robots in your UIM domain are being registered as monitoring target of your net_connect probe ?
An example of building device lists that own "ping" as Configuration Item.
However, integrating list of robot might be challenging to me.
As far as you enable ping monitoring, target device own "ping" Configuration Item.
select cmd.dev_name from CM_CONFIGURATION_ITEM cmci
INNER JOIN CM_DEVICE cmd on cmd.dev_id = cmci.dev_id
where cmci.ci_name = 'ping'
order by cmd.dev_name
Thanks YU . My requirement is to get a report of inventory of robots in hub and in netconnect probe. This is for checking the servers in ping only monitoring and full monitoring. Can it be done ?
Do you have multiple net_connect probes deployed or is there just one on each hub?
Either way the script can be done, but I don't have anything similar and might take a bit of time to it work out.
Might be worth employing CA Services for a day to deliver this.
Yes Rowan, one netconnect deployed on each hub
can someone help to pull up net_connect profiles inventory using LUA script or SQL way ?
This should help you out….
hublist = nimbus.request("hub","gethubs");
hubs = hublist.hublist
args = pds.create()
for hub_key,hub_table in pairs(hubs) do
hub = hubs[hub_key]
-- if hub.name == "rc82_phub" then
hubr = "/"..hub.domain.."/"..hub.name.."/"..hub.robotname.."/net_connect"
print ("Processing hub: " .. hubr .. "\n")
profile_list,rc = nimbus.request (hubr,"get_profile_status")
if profile_list ~= nil then
profiles = profile_list.Profiles
for profile_key,profile_table in pairs(profiles) do
profile = profiles[profile_key]
printf ("profile "..profile.profile_name)
This is great. Thanks Rowan. Now all the devices are listing .In my case I have two folders server and network inside net_connect with devices in these folders Is it possible to arrange it out and list the devices with these profile names and email it ?
If you mean separate them out by group then you will have to change the lua completely to get the whole config with a probe_config_get on the controller, as the group isn't part of the get_profile_status.
i saw the below code from the community. Can you help me how to fit it in the current lua code ?
probecmd = pds.create()pds.putString(probecmd, "name", "net_connect")
response, retcode = nimbus.request("/Path/to/hub/controller", "probe_config_get", probecmd)
Retrieving data ...