Hide Forgot
A very common use-case in RHQ is to import new resources into inventory. For example, agents are running on all the managed platforms but when a new server resource is added, an administrator has to manually navigate to the UI and add it. It would be ideal that in some systems/environments, the discovery of these new servers should result in them being automatically added to inventory. We should provide a complete example/sample implementation of a CLI script which performs that action. The user could then leverage this script as part of other automation tasks within their RHQ system or utilize such an example to better understand how to interact with the inventory system/manager in the RHQ remote client API.
Created attachment 561658 [details] Example showing importing of all discovered resources An example script provided as part of Knowledge Base solution https://access.redhat.com/kb/docs/DOC-52008 which will import all discovered resources
Created attachment 561659 [details] Example showing importing of resources of specific type (JBoss AS Server) An example script showing how to import all discovered resources of the type JBoss AS Server.
triage 2/27/2012 mfoley, asantos, crouch, loleary
Since https://bugzilla.redhat.com/show_bug.cgi?id=784361 us fixed I assumed this was also addressed for JON 3.0.1 Or is it the case that the scripts attached to this bugzilla will be made available in JON 4.0
Lami, actually I think this may have made it into JON 3.1 already. Can you confirm the documentation provides the expected example: http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/3.1/html/Dev_Writing_JON_Command-Line_Scripts/ar03.html#autoimport?
I can confirm the CLI scripts are in JON 3.1 already. Are there any plans to provide API examples in 4.0 ? I have a customer asking about this
The CLI scripts are the API examples. The CLI is using the remote API. There are no plans at this time to add additional examples.
Because the examples requested by this bug report have been included in RHQ 4.4, I am closing this bug as complete. If other examples are required, please create a new bug report containing the request.
Correcting target release