JBoss ON CLI: example how to check if a resource belongs to a group and if a group does not contain any resources
Issue
- Could you please provide an example how to check if a resource belongs to a group and how to check if a group does not contain any resources.
- I want to remove a JBoss AS server from a group (it is still in inventory), but when it is not part because it was removed already I run into this error:
Can not remove resources[[696227]] which are not part of the group[id=10131]
- How can I check if a group does not contain any resources before deleting it.
Environment
- Red Hat JBoss Operations Network (JON) 3.1.2
- Red Hat JBoss ON Command Line Interface (CLI) 3.1.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.