event filter copy

Copy an event filter

Availability: This command is available to cluster administrators at the admin privilege level.

Description

The event filter copy command copies an existing filter to a new filter. The new filter will be created with rules from the source filter. For more information, see the event filter create command.

Parameters

-filter-name <text> - Filter Name
Use this mandatory parameter to specify the name of the event filter to copy.
-new-filter-name <text> - New Event Filter Name
Use this mandatory parameter to specify the name of the new event filter to create and copy the rules.

Examples

The following example copies an existing event filter named emer-wafl-events to a new filter named filter1:
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-wafl-events
            1        include   wafl.*                 *               EMERGENCY
            2        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   *                      *               *
10 entries were displayed.

cluster1::> event filter copy -filter-name emer-wafl-events -new-filter-name filter1

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-wafl-events
            1        include   wafl.*                 *               EMERGENCY
            2        exclude   *                      *               *
filter1
            1        include   wafl.*                 *               EMERGENCY
            2        exclude   *                      *               *
important-events
            1        include   *                      *               EMERGENCY, ALERT
            2        include   callhome.*             *               ERROR
            3        exclude   *                      *               *
no-info-debug-events
            1        include   *                      *               EMERGENCY, ALERT, ERROR, NOTICE

Filter Name Rule     Rule      Message Name           SNMP Trap Type  Severity
            Position Type
----------- -------- --------- ---------------------- --------------- --------
no-info-debug-events
            2        exclude   *                      *               *
12 entries were displayed.