--- title: "Enabling or disabling Trellix and custom YARA rules using the CLI" slug: "enabling-or-disabling-trellix-and-custom-yara-rules-using-the-cli" updated: 2026-09-08T21:44:57Z published: 2026-09-08T21:44:57Z canonical: "docs.trellix.com/enabling-or-disabling-trellix-and-custom-yara-rules-using-the-cli" --- > ## 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. # Enabling or disabling Trellix and custom YARA rules using the CLI Use the commands in this procedure to enable or disable Trellix and custom YARA rules on your File Protect appliance. You cannot use the Web UI to configure YARA rules. ### Prerequisites - An established connection between the File Protect appliance and the Internet. - Administrator or Operator access to the File Protect appliance. To enable Trellix and custom YARA rules: 1. Go to CLI configuration mode. ``` hostname > enable hostname # configure terminal ``` 2. Enable Trellix and custom YARA rules. ``` hostname (config) # yara policy both ``` 3. Verify your configuration. ``` hostname (config) # show static-analysis config ..... Yara Configuration Yara policy                             : both ..... ``` 4. Save your changes. ``` hostname (config) # write memory ``` To disable Trellix and custom YARA rules: 1. Go to CLI configuration mode. ``` hostname > enable hostname # configure terminal ``` 2. Disable Trellix and custom YARA rules. ``` hostname (config) # yara policy disable ``` 3. Verify your configuration. ``` hostname (config) # show static-analysis config ..... Yara Configuration  Yara policy                             : disable ``` 4. Save your changes. ``` hostname (config) # write memory ``` :