usage: ecgroup -add [-m, --member <group members>] [-t, --type <group type>] <group name>| -delete <group name> | -list <group name>
This command enables you to add, delete or list pico groups of EC/ECSAs.
-add
Use ecgroup -add
to add a new EC group:
Example - Adding an EC group
$ mzsh mzadmin/<password> ecgroup -add --member ec1 ec2 --type ec ecgroup1
Option | Description |
---|---|
[-m, --member <members>] | The name of the EC/ECSAs that to add to the group.
|
[-t, --type <type>] | The type of group, i e ec or ecsa . |
-delete
Use ecgroup -delete
to delete an EC group:
Example - Deleting an EC group
$ mzsh mzadmin/<password> ecgroup -delete ecgroup1
-list
Use ecgroup -list
to view a specific ecgroup or all EC groups:
Example - Listing EC groups
$ mzsh mzadmin/<password> ecgroup -list ecgroup1
$ mzsh mzadmin/<password> ecgroup -list
Return Codes
Listed below are the different return codes for the ecgroup command:
Code | Description |
---|---|
0 | Will be returned if the command was successful. |
1 | Will be returned in case of an illegal argument. |
2 | Will be returned in case of communication error. |
11 | Will be returned if you try to add a group that already exists. |
12 | Will be returned if the group could not be added. |
13 | Will be returned if the group could not be added because the group member you have have tried to add does not exist. |
14 | Will be returned if the group could not be added because the group name was invalid. |
15 | Will be returned if the group could not be added because the EC type was invalid. |
16 | Will be returned if the group could not be added because the group member was of an invalid type. |
20 | Will be returned if the group could not be deleted because the group does not exist. |
21 | Will be returned if the group could not be deleted. |