--- title: "Configure the action for a vPatch rule" slug: "configure-the-action-for-a-vpatch-rule-1" tags: ["Product Usage", "DS 10.x", "Database Security"] updated: 2026-09-10T15:20:30Z published: 2026-09-10T15:20:30Z canonical: "docs.trellix.com/configure-the-action-for-a-vpatch-rule-1" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Configure the action for a vPatch rule Define the alert level and the action to be taken when the conditions of a specific vPatch rule are met. > [!NOTE] > Note > > You cannot change additional properties of a vPatch rule. 1. On the **Rules** page, click the **vPatch Rules** tab. 2. In the rules list, click the **Properties** icon ![GUID-935B8A59-8600-4F15-943C-F3EEA12A79A6-low.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-099bc06d-0c0f-9d67-b1ac-4b620599d40a(3).png?sv=2026-02-06&spr=https&st=2026-11-22T16%3A09%3A17Z&se=2026-11-22T17%3A09%3A17Z&sr=c&sp=r&sig=MumT9zRDW4SxQkfa7aS2smySbojfa7CulV5MU862NzM%3D) in the required row. 3. In the **Action** area of the rule properties, set the action as follows: - To configure email notification in addition to the alert in the log, select **Send alert to email**, then select the priority to assign to the email message (Low, Medium, or High). You can also define the email addresses. By default, the administrator's email address is selected. The email settings must be configured on the **System** page to route email alerts correctly. - To send an alert as an SNMP trap if the rule is matched, select **SNMP Trap**. > [!NOTE] > Note > > If SNMP is not enabled on the **System** page in the SNMP tab, this option is disabled. - To terminate a session if the rule is matched, select **Terminate user session**. > [!NOTE] > Note > > This option should be used sparingly because terminating sessions can disrupt legitimate business transactions. Depending on environmental variables (such as command type and table size), session termination might not stop the current SQL command. Stronger termination capability is provided for DCL and DDL commands that use a before trigger (see DDL triggers). If you select **Terminate user session**, the **Quarantine user for** option is displayed. To quarantine a user, select **Quarantine**, then enter the number of minutes the user is prevented from reconnecting. For the purposes of quarantine, user represents the database user, OS user, host name, IP address and more, or a combination of these parameters. The user definition for quarantine purposes is defined in the **System** → **Quarantine** → **Settings**. - To run an action script if the rule is matched, expand the **Advanced actions**, then set the script to run on the host DBMS. You can use all parameters that Database Security monitors within the script, by using $ as a prefix. For example, if you want to use the *user* parameter in a script, enter `$user`. For example, `revoke dba from $user` as part of a script revokes the DBA permissions of the database user who executed the SQL command. > [!NOTE] > Note > > This option is intended for advanced users only. 4. To enable this rule, select **Enable Rule**. 5. Click **Save**.