Creating and managing groups using the CLI

Prev Next

Use the commands in this section to create and manage appliance groups.

To add a new group:
  1. Go to CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. Add a new group:

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

    hostname (config) # cmc group <groupName> comment "<comment>"

    where commentText must be enclosed in double quotation marks.

  4. Verify your changes:

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

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

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

    hostname (config) # cmc group <groupName> rename <newGroupName>
  3. Verify your change:

    hostname (config) # show cmc groups <newGroupName>
  4. Save your change:

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

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

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

    hostname (config) # show cmc groups <groupName>
  4. Save your change:

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

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

    hostname (config) # no cmc group groupName
  3. Verify your change:

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

    hostname (config) # write memory

Example

This example creates a "Milan" appliance group, deletes the "Sydney" group, renames the "Milan" group to "Venice," and adds a comment to the group.

hostname (config) # cmc group Milan
hostname (config) # show cmc groups
Group Milan
   Comment:
   No members.
Group Sydney
   Comment:
   Appliances:
       NX-01
Group sysgroup.Email_MPS
   Comment:             System Group: eMPS
   Appliances:
       EX-02
.
.
.
hostname (config) # no cmc group Sydney
hostname (config) # show cmc groups Sydney
% Unknown group.
hostname (config) # cmc group Milan rename Venice
hostname (config) # cmc group Venice comment "Italian region appliances"
hostname (config) # show cmc groups Venice
Group Venice  
   Comment: Italian region appliances
   No members.