Question: Is there a way to get a list of all the rules from the Foglight Management Server (FMS)?
Admin Console:
This script is a comprehensive list of all rules and their scoped objects. See NOTE below for groovy attachments which just list Enabled or Disabled rules or both.
Admin Console | Dashboards | Administration | Tooling | Script Console | paste the script text (listed below) into the 'Script' box and select 'Run' (note if using the newer Script Console in 5.6.2 or later, must click 'Add' to bring up the Enter Script Text box)
def rulelist = ""
def ruleSvc = server["RuleService"]
def rules = ruleSvc.getAllRulesInfo() .collect{ ri-> ruleSvc.getRule(ri.id) }
rules.collect{ rule-> if ( 1 ) {
rulelist += "$rule.cartridgeName: Rule $rule.name ($rule.id) scoped to $rule.scopingQuery \n";
}
}
return rulelist
NOTE: A more simple list of rules installed and their status ENABLED/DISABLED in the attached scripts. FALSE=Enabled and TRUE=Disabled.
FGL-8749 has been filed to create a way where ANY object (Rules, registry variables, ect) in Foglight can be exported to a .csv/pdf/xml file list. This will be an easier way than following the below procedure. Check upcoming Release Notes of the product before going through these steps.
Also see:
SOL54319 - "List or Export all of the Registry Variables in the Foglight Management Server (FMS)?"
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center