Results 1 to 5 of 5

Thread: Creating a group - CLI

  1. #1
    Join Date
    Nov 2007
    Location
    Teresina - Piauí - Brazil
    Posts
    13
    Rep Power
    8

    Default Creating a group - CLI

    Hi!

    Guys, I'd like to know how can I create a group (not a list!) using command line inside an specific account.

    And, where can I find all the ATTRIBUTES to all commands of ZMPROV? The Administrator Guide shows the comands and the syntax, but do not show the attributes.

    Thanks,

    FNC.

  2. #2
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

  3. #3
    Join Date
    Nov 2007
    Location
    Teresina - Piauí - Brazil
    Posts
    13
    Rep Power
    8

    Default

    uxbod,
    thanks to answer... but it didn't help me. That table of commands of ZMPROV can be seen at Admin Guide. And I've seen it.

    My problem is: "John has the account john@domain. He wants to create a group with his personal contacts' email addresses."

    QUESTION: How to create that group in CLI ( ** not using the browser ** ) ?

    There's no command in ZMPROV exclusive to do that. I realized that it can be done using Create Contact (cct) command of ZMMAILBOX. But I can't find any documentation about the attributes

    Code:
    Syntax:
    createContact(cct)            [opts] [attr1 value1 [attr2 value2...]]
         -f/--folder <arg>          folder-path-or-id
         -T/--tags <arg>            list of tag ids/names
         -i/--ignore                ignore unknown contact attrs
    It's easy to find out what each option does, right? But what are the attributes? What are the format (and the type of acceptable values) of the value fields?

    I hope u can help. Thanks!
    Last edited by flavio nc; 07-18-2008 at 06:56 AM.

  4. #4
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    I'm not sure where to get a full list, but you can do

    Code:
    zmmailbox -z -m account gact
    and you will see hte attributes for existing contacts for that account. that should give you enough to work with

  5. #5
    Join Date
    Nov 2007
    Location
    Teresina - Piauí - Brazil
    Posts
    13
    Rep Power
    8

    Default

    Right bdial, thanks!

    Actually, I'd tried that before. Let me say what I've already done...

    1) I created a group, using the browser, to the account flavio@domain.

    2) I checked the information of that group using CLI this way:
    Code:
    # su zimbra
    $ zmmailbox -z -m flavio@domain
    mbox flavio@domain> gact -v -f Contacts
    And this was one of the results:
    Code:
    [{
     "id": "754",
     "folder": "7",
     "flags": "",
     "tags": "",
     "revision": "5772",
     "attrs": {
     "nickname": "grupo1",
     "dlist": "\"admin\" <admin@domain1>\r, \"jborges\" <jborges@domain2>\r, \"moodle\" <moodle@domain1>\r, \"servidores@domain3\" <servidores@domain3>\r",
     "fileAs": "8:grupo1",
     "type": "group"
    }]
    And this is the syntax I used to create a group in CLI successfully:
    Code:
    mbox flavio@domain> cct -f "/Contacts" nickname "grupo5" dlist "\"c1\" <c1@domain1>\r, \"c2\" <c2@domain2>\r" fileAs "8:grupo5" type "group"
    It creates a group called GRUPO5 with the contacts C1@DOMAIN and C2@DOMAIN.
    It's kind of complicated to understand the attributes DLIST and FILEAS.

    P.S.: They're case-sensitive!

Similar Threads

  1. Compartmentalized groups or locations sharing a domain
    By dstoliker in forum Administrators
    Replies: 5
    Last Post: 07-14-2008, 01:06 PM
  2. [SOLVED] Edit Button in Documents Gray After Upgrade
    By weathertation in forum Administrators
    Replies: 10
    Last Post: 05-14-2008, 01:47 PM
  3. 4.0.4 to 4.5.6 upgrade failed in network edition
    By chenthil in forum Administrators
    Replies: 1
    Last Post: 08-27-2007, 10:36 AM
  4. [SOLVED] Simple backup question...
    By dameron in forum Administrators
    Replies: 3
    Last Post: 08-25-2007, 10:36 PM
  5. [SOLVED] URGENT: Tomcat Not Starting On Reboot
    By AlexanderH in forum Administrators
    Replies: 19
    Last Post: 08-22-2007, 01:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •