The JBoss ON CLI "find" commands do not return all found resources if the result contains more then 200 resources
Issue
- I am using the following script to disable all defined alerts. But after I execute this script from JBoss ON CLI, I can see that some alerts are still enabled:
var criteria = new AlertDefinitionCriteria();
var alertdefs = AlertDefinitionManager.findAlertDefinitionsByCriteria(criteria)
if ( alertdefs != null ) {
if ( alertdefs.size() > 0 ) {
for ( i =0; i < alertdefs.size(); ++i) {
var alert = alertdefs.get(i);
println("alert: " + alert);
AlertDefinitionManager.enableAlertDefinitions([alert.id]);
}
}
}
- The search commands from JBoss ON CLI (for instance findAlertDefintionsByCriteria) do not return all found resources;
- The JBoss ON CLI "find" commands do not return all found resources if the result contains more then 200 resources;
- We are having a problem when trying to change password (for connection) to more than 200 EAP's through JON CLI because the Search string
ResourceManager.findResourcesByCriteria('JBossAS7 Standalone Server')limited the result to 200 entries.
Environment
- Red Hat JBoss Operations Network (JON) 3.x
- Red Hat JBoss Operations Network Command Line Interface (JBoss ON CLI) 3.x
- The database query shows that more then 200 entries should be found with the requested search command;
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.