Creating and managing profiles using the CLI

Prev Next

Use the commands in this section to create and manage command profiles.

To create a profile:
  1. Go to CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. Create the profile:

    hostname (config) # cmc profile <profileName>
  3. (Optional) Add a comment about the profile:

    hostname (config) # cmc profile <profileName> comment "<comment>"

    where comment must be enclosed in double quotation marks.

  4. Verify your change:

    hostname (config) # show cmc profiles
  5. Save your changes:

    hostname (config) # write memory
To rename a profile:
  1. Go to CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. Rename the profile:

    hostname (config) # cmc profile <profileName> rename <newProfileName>
  3. Verify your change:

    hostname (config) # show cmc profiles <newProfileName>
  4. Save your change:

    hostname (config) # write memory
To remove a comment:
  1. Go to CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. Remove the comment:

    hostname (config) # no cmc profile <profileName> comment
  3. Verify your change:

    hostname (config) # show cmc profiles <profileName>
  4. Save your change:

    hostname (config) # write memory
To delete a profile:
  1. Go to CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. Delete the profile:

    hostname (config) # no cmc profile <profileName>
  3. Verify that the profile was deleted:

    hostname (config) # show cmc profiles
  4. Save your change:

    hostname (config) # write memory

Example

This example creates an "acctmgt" profile with a comment and deletes the "PswdPolicy" profile.

hostname (config) # cmc profile acctmgt
hostname (config) # cmc profile acctmgt comment "Adds operator user account."
hostname (config) # no cmc profile PswdPolicy
hostname (config) # show cmc profiles
Profile acctmgt
   Comment: Adds operator user account.
   Commands: 
       No commands.     
 ...