event filter rule reorder
- PDF of this doc site
Collection of separate PDF docs
Creating your file...
Modify the index of a rule for an event filter
Availability: This command is available to cluster administrators at the admin privilege level.
Description
The event filter rule reorder
command moves a rule to a new position in an existing event filter. Use event filter show command to display all the event filters and the rules associated with them.
Parameters
-filter-name <text>
- Filter Name-
Use this mandatory parameter to specify the name of the event filter from which you want to change the position of the rule. Rules from system-defined event filters cannot be modified.
-position <integer>
- Rule Positon-
Use this mandatory parameter to specify the position of the rule you want to change. It should be in the range (1..n-1), where 'n' is the position of the last rule, which is an implicit rule.
-to-position <integer>
- New Rule Position-
Use this mandatory parameter to specify the new position to move the rule. It should be in the range (1..n-1), where 'n' is the position of the last rule, which is an implicit rule.
Examples
The following example changes the position of a rule from 1 to 2 from an existing event filter "emer-and-wafl":
cluster1::> event filter show Filter Name Rule Rule Message Name SNMP Trap Type Severity Position Type ----------- -------- --------- ---------------------- --------------- -------- default-trap-events 1 include * * EMERGENCY, ALERT 2 include * Standard, Built-in * 3 exclude * * * emer-and-wafl 1 include wafl.scan.* * ALERT 2 include * Standard * 3 exclude * * * important-events 1 include * * EMERGENCY, ALERT 2 include callhome.* * ERROR 3 exclude * * * no-info-debug-events 1 include * * EMERGENCY, ALERT, ERROR, NOTICE 2 exclude * * * 11 entries were displayed. cluster1::> event filter rule reorder -filter-name emer-and-wafl -position 1 -to-position 2 cluster1::> event filter show Filter Name Rule Rule Message Name SNMP Trap Type Severity Position Type ----------- -------- --------- ---------------------- --------------- -------- default-trap-events 1 include * * EMERGENCY, ALERT 2 include * Standard, Built-in * 3 exclude * * * emer-and-wafl 1 include * Standard * 2 include wafl.scan.* * ALERT 3 exclude * * * important-events 1 include * * EMERGENCY, ALERT 2 include callhome.* * ERROR 3 exclude * * * no-info-debug-events 1 include * * EMERGENCY, ALERT, ERROR, NOTICE 2 exclude * * * 11 entries were displayed.