--- title: "Applying profiles using the CLI" slug: "applying-profiles-using-the-cli-2" updated: 2026-08-25T21:18:10Z published: 2026-08-25T21:18:10Z canonical: "docs.trellix.com/applying-profiles-using-the-cli-2" --- > ## 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. # Applying profiles using the CLI Use the commands in this section to apply profiles to a specific appliance or to an appliance group. For a description of the optional parameters, see [Profile options](/docs/working-with-command-profiles-1). ### Important Unless you use the` no-save `parameter, the configuration changes set by the commands in the profile are written to memory. ### Important You can cancel the execution of outstanding commands in a profile, as described in [Canceling outstanding commands](/docs/canceling-outstanding-commands-1). To apply a profile to a specific appliance: 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Apply the profile: - To apply the profile normally: ``` hostname (config) # cmc profile apply appliance ``` - To prevent the configuration changes from being written to memory after the profile is applied: ``` hostname (config) # cmc profile apply appliance no-save ``` - To continue executing commands after one command fails: ``` hostname (config) # cmc profile apply appliance fail-continue ``` 3. View the command output to determine whether the profile was applied successfully. 4. Save your changes: ``` hostname (config) # write memory ``` To apply a profile to a group of appliances: 1. Enable the CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Apply the profile: - To apply the profile normally: ``` hostname (config) # cmc profile apply group ``` - To prevent the configuration changes from being written to memory after the profile is applied: ``` hostname (config) # cmc profile apply group no-save ``` - To continue executing commands on the appliances in the group after one command fails: ``` hostname (config) # cmc profile apply group fail-continue ``` 3. View the command output to determine whether the profile was applied successfully. 4. Save your changes: ``` hostname (config) # write memory ``` ### Examples ###### Successful profile application This example applies the "acctmgt" profile to the NX-04 appliance, which succeeds. ``` hostname (config) # cmc profile acctmgt apply appliance NX-04 =================Appliance NX-04============================= Execution was successful. Execution output: Saving configuration file...Done! ``` ###### Failed profile application This example attempts to apply the "DateTimeJpn" profile to the Tokyo group, but fails because manual time and date settings are not permitted when NTP is enabled. ``` hostname (config) # cmc profile DateTimeJpn apply group Tokyo =================Appliance FX-03 ============================= Error code 6 (CLI command execution failure) Error output: %NTP enabled, clock adjustment not allowed Execution output: (none) ``` :