How do I delete a rule from the command line?
1. Download the deleterule.groovy attachment
2. Save this in the FMSHOME/bin directory on the foglight server.
3. Open the cmd line and execute the following:
fglcmd -usr <username> -pwd <password> -cmd script:run -f deleterule.groovy <ruleid>
C:\Quest_Software\Foglight\bin>fglcmd -usr foglight -pwd foglight -cmd script:run -f deleterule.groovy c5508a66-0219-40fb-b8d2-e6674903fdfc
You can find the ruleid from the MonitoringPolicy.xml file, search for the rule name that you want to delete, there is a ruleid tag that contains the value of the Rule ID.
Monitoring policy is available within the Support Bundle.