Zmprov (Provisioning): Difference between revisions

No edit summary
 
No edit summary
Line 1: Line 1:
==<font size="4" color="#00007f" face="Arial"> ''' zmprov (Provisioning) ''' </font>==
==zmprov (Provisioning)==


<font size="3" color="#000000" face="Arial"> The  '''zmprov''' tool performs all provisioning tasks in Zimbra LDAP, including creating accounts aliases, domains, and distribution lists. Each operation is invoked through command-line options, each of which has a long name and a short name. </font>
<div class="Body">


<font size="3" color="#000000" face="Arial"> The syntax for modify can include the prefix “ <font size="3" color="#000000" face=""Times New Roman""> '''+''' </font>” or “<font size="3" color="#000000" face=""Times New Roman"">'''-'''</font>” so that you can make changes to the attributes affected and do not need to reenter attributes that are not changing. Use + to add a new instance of the specified attribute name without changing any existing attributes. Use - to remove a particular instance of an attribute. The syntax is <font size="3" color="#000000" face=""Times New Roman"">'''zmprov [cmd] [argument]'''</font>.</font>
The zmprovtool performs all provisioning tasks in Zimbra LDAP, including creating accounts, aliases, domains, distribution lists, and calendar resources. Each operation is invoked through command-line options, each of which has a long name and a short name.


<font size="3" color="#000000" face="Arial"> The following objects use this syntax: </font>
</div><div class="Body">


{|
The syntax for modify can include the prefix "+" or "-" so that you can make changes to the attributes affected and do not need to reenter attributes that are not changing. Use + to add a new instance of the specified attribute name without changing any existing attributes. Use - to remove a particular instance of an attribute. The syntax is zmprov [cmd] [argument].
|- valign="baseline"
 
| width="20" |
</div><div class="Body" style="margin-bottom: 1.0pt">
| width="19.2" |
 
<font size="3" color="#000000" face=""Times New Roman""> '''• ''' </font>
The following objects use this syntax:
| <font size="3" color="#000000" face=""Times New Roman""> ''' ModifyAccount  ''' </font>
 
|}
</div>
 
* <div class="Body" style="margin-bottom: 1.0pt">ModifyAccount</div>
* ModifyDomain
* ModifyCos
* ModifyServer
* ModifyConfig
* ModifyDistributionList
* ModifycalendarResource
 
<div class="Body">
 
The following example could add the attribute '''zimbraZimlet UserProperties''' with the value 'testing" to user 1 and would not chagne the value of any other instance of that attribute.
 
zmprov ma user1 +zimbraZimletUserProperties testing
 
</div>


{|
{| id="1121373" class="CLI_table" style="margin-bottom: pt; margin-left: pt; margin-right: pt; margin-top: pt; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; text-align: left; width: 349.2pt"
|- valign="baseline"
| id="tc1121375" style="background-color: none; border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 2.0pt; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: middle; width: 97.2pt" |
| width="20" |
<div class="CellHeading">
| width="19.2" |
<font size="3" color="#000000" face=""Times New Roman""> '''• ''' </font>
| <font size="3" color="#000000" face=""Times New Roman""> '''  ModifyDomain  ''' </font>
|}


{|
Short Name
|- valign="baseline"
| width="20" |
| width="19.2" |
<font size="3" color="#000000" face=""Times New Roman""> '''• ''' </font>
| <font size="3" color="#000000" face=""Times New Roman""> '''  ModifyCos  ''' </font>
|}


{|
</div>
|- valign="baseline"
| id="tc1121377" style="background-color: none; border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 2.0pt; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: middle; width: 54pt" |
| width="20" |
<div class="CellHeading">
| width="19.2" |
<font size="3" color="#000000" face=""Times New Roman""> '''• ''' </font>
| <font size="3" color="#000000" face=""Times New Roman""> '''  ModifyServer  ''' </font>
|}


{|
Long Name
|- valign="baseline"
| width="20" |
| width="19.2" |
<font size="3" color="#000000" face=""Times New Roman""> '''• ''' </font>
| <font size="3" color="#000000" face=""Times New Roman""> '''  ModifyConfig  ''' </font>
|}


<font size="3" color="#000000" face="Arial"> In this example,  <font size="3" color="#000000" face=""Times New Roman""> '''zmprov ma user1 +zimbraZimletUserProperties testing ''' </font> <font size="3" color="#000000" face=""Times New Roman""> '''<br />''' </font>would add the attribute zimbraZimletUserProperties with the value “testing” to user 1 and would not change the value of any other instances of that attribute.</font>
</div>
| id="tc1121379" style="background-color: none; border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 2.0pt; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: middle; width: 198pt" |
<div class="CellHeading">


<font size="3" color="#000000" face="Arial"> The following commands can be used as subcommands to zmprov. </font>
Syntax, Example, and Notes


{| border="2" cellpadding="8"
</div>
|+
|-
|-
| valign="middle" |
| id="tc1121381" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<font size="3" color="#00007f" face="Arial"> ''' Long Name ''' </font>
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
| valign="middle" |
 
<font size="3" color="#00007f" face="Arial"> ''' Short Name''' </font>
-h
| valign="middle" |
 
<font size="3" color="#00007f" face="Arial"> ''' Syntax, Example, and Notes ''' </font>
</font></div>
| id="tc1121383" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
 
>--help
 
</font></div>
| id="tc1121385" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<div class="CellBody">
 
display usage
 
</div>
|-
|-
| valign="top" |
| id="tc1121387" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  CreateAccount  ''' </font>
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  ca  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> Syntax:{name@domain} {password} [attribute1 value1 etc]</font>


<font size="3" color="#000000" face="Arial"> Type on one line. </font>
-f


<font size="3" color="#000000" face="Arial">  <font size="3" color="#000000" face=""Times New Roman""> '''zmprov ca joe@domain.com test123''' </font> <font size="3" color="#000000" face=""Times New Roman"">'''displayName JSmith '''</font></font>
</font></div>
| id="tc1121389" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
 
--file
 
</font></div>
| id="tc1121391" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<div class="CellBody">
 
use file as input stream
 
</div>
|-
|-
| valign="top" |
| id="tc1121393" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  DeleteAccount  ''' </font>
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
| valign="top" |
 
<font size="3" color="#000000" face=""Times New Roman""> '''  da  ''' </font>
> -s
| valign="top" |
 
<font size="3" color="#000000" face="Arial"> Syntax:{name@domain|id|adminName} </font>
</font></div>
| id="tc1121395" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov da joe@domain.com  ''' </font>
--server
 
</font></div>
| id="tc1121397" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<div class="CellBody">
 
{host}[:{port}] server hostname and optional port
 
</div>
|-
|-
| valign="top" |
| id="tc1121399" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  GetAccount  ''' </font>
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
| valign="top" |
 
<font size="3" color="#000000" face=""Times New Roman""> '''  ga  ''' </font>
-l
| valign="top" |
 
<font size="3" color="#000000" face="Arial"> Syntax:{name@domain|id|adminName} </font>
</font></div>
| id="tc1121401" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov ga joe@domain.com  ''' </font>
--ldap
 
</font></div>
| id="tc1121403" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<div class="CellBody">
 
provision via LDAP instead of SOAP
 
</div>
|-
|-
| valign="top" |
| id="tc1121405" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  GetAllAccounts  ''' </font>
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  gaa  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> Syntax: [-v] [{domain}] </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov gaa  ''' </font>
-a


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov gaa -v domain.com  ''' </font>
</font></div>
|-
| id="tc1121407" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
| valign="top" |
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
<font size="3" color="#000000" face=""Times New Roman""> '''  GetAllAdminAccounts  ''' </font>
 
| valign="top" |
--account {name}
<font size="3" color="#000000" face=""Times New Roman""> '''  gaaa  ''' </font>
 
| valign="top" |
</font></div>
<font size="3" color="#000000" face="Arial"> Syntax: gaaa </font>
| id="tc1121409" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<div class="CellBody">


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov gaaa  ''' </font>
account name to auth as
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  ModifyAccount  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  ma  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {name@domain|id|adminName} [attribute1 value1 etc]</font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov ma joe@domain.com  zimbraAccountStatus maintenance ''' </font>
</div>
|-
|-
| valign="top" |
| id="tc1121411" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  SetPassword  ''' </font>
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  sp  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {name@domain|id|adminName} {password} </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov sp joe@domain.com test321  ''' </font>
-p
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  AddAccountAlias  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  aaa  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {name@domain|id|adminName} {alias@domain}</font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov aaa joe@domain.com  joe.smith@engr.domain.com ''' </font>
</font></div>
|-
| id="tc1121413" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
| valign="top" |
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
<font size="3" color="#000000" face=""Times New Roman""> '''  RemoveAccountAlias  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  raa  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {name@domain|id|adminName} {alias@domain}</font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov raa joe@domain.com  joe.smith@engr.domain.com ''' </font>
--password {pass}
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  SetAccountCOS  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  sac  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {name@domain|id|adminName} {cos-name|cos-id}</font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov sac joe@domain.com FieldTechnician  ''' </font>
</font></div>
|-
| id="tc1121415" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
| valign="top" |
<div class="CellBody">
<font size="3" color="#000000" face=""Times New Roman""> '''  SearchAccounts  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  sa  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> [-v] {ldap-query} [limit] [offset] [sortBy {attribute}</font>


<font size="3" color="#000000" face="Arial"><div> </div></font>
password for account
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  SearchGAL  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  sg  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {domain} {name} </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov sg joe  ''' </font>
</div>
|-
|-
| valign="top" |
| id="tc1121417" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  RenameAccount  ''' </font>
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  ra  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {name@domain|id} {newname@domain} </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov ra joe@domain.com joe23@domain.com  ''' </font>
-P


<font size="3" color="#000000" face="Arial"> Note: After you rename an account, you should run a full backup for that account. <font size="3" color="#000000" face=""Times New Roman"">'''zmbackup -f - <servername.com> -a '''</font><font size="3" color="#000000" face=""Times New Roman"">'''<newaccountname@servername.com>'''</font></font>
</font></div>
|-
| id="tc1121419" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
| valign="top" |
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
<font size="3" color="#000000" face=""Times New Roman""> '''  CreateDomain  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  cd  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {domain} [attribute1 value1 etc] </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov cd mktng.domain.com zimbraAuthMech  zimbra ''' </font>
--passfile {file}
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  DeleteDomain  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  dd  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {domain|id} </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov dd mktng.domain.com  ''' </font>
</font></div>
|-
| id="tc1121421" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
| valign="top" |
<div class="CellBody">
<font size="3" color="#000000" face=""Times New Roman""> '''  GetDomain  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  gd  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {domain|id} </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov gd mktng.domain.com  ''' </font>
read password from file
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  GetAllDomains  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  gad  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> [-v] </font>
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  ModifyDomain  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  md  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {domain|id} [attribute1 value1 etc] </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov md domain.com zimbraGalMaxResults  50 ''' </font>
</div>
|-
|-
| valign="top" |
| id="tc1121423" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<font size="3" color="#000000" face=""Times New Roman""> ''' GenerateDomainPreAuthKey ''' </font>
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> ''' gdpak ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {domain|id} </font>


<font size="3" color="#000000" face="Arial"> Generates a pre-authentication key to enable a trusted third party to authenticate to allow for single-sign on. Used in conjunction with GenerateDomainPreAuth. </font>
-z
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> ''' GenerateDomainPreAuth ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> ''' gdpa ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {domain|id} {name} {name|id|foreighPrincipal} {timestamp|0} {expires|0}</font>


<font size="3" color="#000000" face="Arial"> Generates preAuth values for comparison.  </font>
</font></div>
|-
| id="tc1121425" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
| valign="top" |
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
<font size="3" color="#000000" face=""Times New Roman""> '''  CreateCos  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  cc  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {name} [attribute1 value1 etc] </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov cc Executive zimbraAttachmentsBlocked  FALSE zimbraAuthTokenLifetime 60m zimbraMailQuota 100M zimbraMailMessageLifetime 0 ''' </font>
--zadmin
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  DeleteCos  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  dc  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {name|id} </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov dc Executive  ''' </font>
</font></div>
|-
| id="tc1121427" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
| valign="top" |
<div class="CellBody">
<font size="3" color="#000000" face=""Times New Roman""> '''  GetCos  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  gc  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {name|id} </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov gc Executive  ''' </font>
use zimbra admin name/password from localconfig for admin/password
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  GetAllCos  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  gac  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> [-v] </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov gac -v  ''' </font>
</div>
|-
|-
| valign="top" |
| id="tc1121429" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  ModifyCos  ''' </font>
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  mc  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {name|id} [attribute1 value1 etc] </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov mc Executive  zimbraAttachmentsBlocked TRUE ''' </font>
-v
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  RenameCos  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  rc  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {name|id} {newName} </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov rc Executive Business  ''' </font>
</font></div>
|-
| id="tc1121431" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
| valign="top" |
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
<font size="3" color="#000000" face=""Times New Roman""> '''  CreateServer  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  cs  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {name} [attribute1 value1 etc] </font>
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  DeleteServer  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  ds  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {name|id} </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov ds domain.com  ''' </font>
--verbose
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  GetServer  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  gs  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {name|id} </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov gs domain.com  ''' </font>
</font></div>
|-
| id="tc1121433" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
| valign="top" |
<div class="CellBody">
<font size="3" color="#000000" face=""Times New Roman""> '''  GetAllServers  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  gas  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> [-v] </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov gas  ''' </font>
verbose mode (dumps full exception stack trace)
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  ModifyServer  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  ms  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {name|id} [attribute1 value1 etc] </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov ms domain.com  zimbraVirusDefinitionsUpdateFrequency 2h ''' </font>
</div><div class="CellBody">
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  GetAllConfig  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  gacf  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> [-v] </font>


<font size="3" color="#000000" face="Arial"> All LDAP settings are displayed </font>
</div>
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  GetConfig  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  gcf  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {name} </font>
|-
|-
| valign="top" |
| id="tc1121435" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  ModifyConfig  ''' </font>
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  mcf  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> attr1 value1 </font>


<font size="3" color="#000000" face="Arial"> Modifies the LDAP settings. </font>
-d/
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  CreateDistributionList  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  cdl  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {list@domain} </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov cdl needlepoint-list@domain.com  ''' </font>
</font></div>
|-
| id="tc1121437" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
| valign="top" |
<div class="CellBody" style="font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 3.0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
<font size="3" color="#000000" face=""Times New Roman""> '''  AddDistributionListMember  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  adlm  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {list@domain|id} {member@domain} </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov adlm needlepoint-list@domain.com  singer23@mail.free.net ''' </font>
--debug
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  RemoveDistributionListMem  ber ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  rdlm  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {list@domain|id} </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov rdlm needlepoint-list@domain.com  singer23@mail.free.net ''' </font>
</font></div>
|-
| id="tc1121439" style="border-bottom-color: #000000; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #000000; border-left-style: solid; border-left-width: 1px; border-right-color: #000000; border-right-style: solid; border-right-width: 1px; border-top-color: #000000; border-top-style: solid; border-top-width: 1px; padding-bottom: pt; padding-left: pt; padding-right: pt; padding-top: pt; vertical-align: top" |
| valign="top" |
<div class="CellBody">
<font size="3" color="#000000" face=""Times New Roman""> '''  GetAlldistributionLists  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  gadl  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> [-v] </font>
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  GetDistributionList  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  gdl  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {list@domain|id} </font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov gdl list@domain.com  ''' </font>
debug mode (dumps SOAP messages)
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> ''' ModifyDistributionList ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> ''' md ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {list@domain|id} attr1 value1 {attr2 value2...}</font>


<font size="3" color="#000000" face=""Times New Roman""> '''  zmprov md list@domain.com  ''' </font>
</div><div class="CellBody">
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  DeleteDistributionList  ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  ddl  ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> (list@domain|id} </font>


<font size="3" color="#000000" face="Arial"><div> </div></font>
</div>
|-
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> ''' AddDistributionListAlias ''' </font>
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> ''' adla ''' </font>
| valign="top" |
<font size="3" color="#000000" face="Arial"> {list@domain|id} {alias@domain} </font>
|- bgcolor="#FFFFFF"
| width="5" height="2" valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> ''' RemoveDistributionListAlias ''' </font>
| width="5" height="2" valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> ''' rdla ''' </font>
| width="5" height="2" valign="top" |
<font size="3" color="#000000" face="Arial"> {list@domain|id} {alias@domain} </font>
|- bgcolor="#FFFFFF"
| width="5" height="2" valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> ''' RenameDistributionList ''' </font>
| width="5" height="2" valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> ''' rdl ''' </font>
| width="5" height="2" valign="top" |
<font size="3" color="#000000" face="Arial"> {list@domain|id} {newName@domain} </font>
|}
|}


<font size="3" color="#00007f" face="Arial"> '''  Examples  ''' </font>
<div class="Body">
 
The commands in the following table are divided into the following tasks types - Account, Calendar Resources, Config, COS, Distribution List, Documents, Domain, Server, and Miscellaneous.
 
</div><div class="HeadingCLI">


{|
====Examples====
|- valign="baseline"
 
| width="19.2" |
</div>
<font size="3" color="#000000" face=""Times New Roman""> '''• ''' </font>
 
| <font size="3" color="#000000" face="Arial"> Create one account with a password that is assigned to the default COS. </font>
* <div class="HeadingCLI">Create one account with a password that is assigned to the default COS.</div>
|}
 
<div class="CLI_indented_command">
 
zmprov ca name@domain.com password
 
</div>
 
* <div class="CLI_indented_command">Create one account with a password that is assigned to a specified COS. You must know the COS ID number. To find a COS ID, type <span class="Code">gc <COSname>.</span></div>
 
<div class="CLI_indented_command">
 
zmprov ca name@domain.com password zimbraCOS cosIDnumberstring
 
</div>
 
* <div class="CLI_indented_command">Create one account when the password is not authenticated internally.</div>
 
<div class="CLI_indented_command">
 
zmprov ca name@domain.com ‘’
 
</div><div class="NumberedCont">
 
The empty single quote is required and indicates that there is no local password.
 
</div>
 
* <div class="NumberedCont">Use a batch process to create accounts, see Managing the Zimbra Collaboration Suite chapter for the procedure.</div>
 
* <div class="NumberedCont">Add an alias to an account.</div>
 
<div class="CLI_indented_command">
 
zmprov aaa accountname@domain.com aliasname@domain.com
 
</div>
 
* <div class="CLI_indented_command">Create distribution list. The ID of the distribution list is returned.</div>


<blockquote>
<div class="CLI_indented_command">


<font size="3" color="#000000" face=""Courier New""> ''' zmprov ca name@domain.com password ''' </font>
zmprov cdl listname@domain.com


</blockquote>
</div>


{|
* <div class="CLI_indented_command">Add a member to a distribution list. '''Tip: '''You can add multiple members to a list from the administration console. </div>
|- valign="baseline"
| width="19.2" |
<font size="3" color="#000000" face=""Times New Roman""> '''''' </font>
| <font size="3" color="#000000" face="Arial"> Create one account with a password that is assigned to a specified COS. You must know the COS ID number. To find a COS ID, type <font size="3" color="#000000" face=""Times New Roman"">'''gc <COSname>.'''</font></font>
|}


<blockquote>
<div class="CLI_indented_command">


<font size="3" color="#000000" face=""Courier New""> ''' zmprov ca name@domain.com password zimbraCOS cosIDnumberstring''' </font>
zmprov adlm listname@domain.com member@domain.com


</blockquote>
</div>


{|
* <div class="CLI_indented_command">Change the administrator’s password. Use this command to change any password. Enter the address of the password to be changed.</div>
|- valign="baseline"
| width="19.2" |
<font size="3" color="#000000" face=""Times New Roman""> '''• ''' </font>
| <font size="3" color="#000000" face="Arial"> Create one account when the password is not authenticated internally. </font>
|}


<blockquote>
<div class="CLI_indented_command">


<font size="3" color="#000000" face=""Courier New""> ''' zmprov ca name@domain.com ‘’  ''' </font>
zmprov sp admin@domain.com password


</blockquote>
</div>


<font size="3" color="#000000" face="Arial"> The empty single quote is required and indicates that there is no local password.</font>
* <div class="CLI_indented_command">Create a domain that authenticates against Zimbra OpenLDAP.</div>


{|
<div class="CLI_indented_command">
|- valign="baseline"
| width="19.2" |
<font size="3" color="#000000" face=""Times New Roman""> '''• ''' </font>
| <font size="3" color="#000000" face="Arial"> Using a batch process to create accounts, see Managing the Zimbra Collaboration Suite chapter for the procedure.</font>
|}


{|
zmprov cd marketing.domain.com zimbraAuthMech zimbra
|- valign="baseline"
| width="19.2" |
<font size="3" color="#000000" face=""Times New Roman""> '''• ''' </font>
| <font size="3" color="#000000" face="Arial"> Add an alias to an account. </font>
|}


<blockquote>
</div>


<font size="3" color="#000000" face=""Courier New""> ''' zmprov aaa accountname@domain.com aliasname@domain.com ''' </font>
* <div class="CLI_indented_command">Set the default domain.</div>


</blockquote>
<div class="CLI_indented_command">


{|
zmprov mcf zimbraDefaultDomain domain1.com
|- valign="baseline"
| width="19.2" |
<font size="3" color="#000000" face=""Times New Roman""> '''• ''' </font>
| <font size="3" color="#000000" face="Arial"> Create distribution list. The ID of the distribution list is returned. </font>
|}


<blockquote>
</div>


<font size="3" color="#000000" face=""Courier New""> ''' zmprov cdl listname@domain.com ''' </font>
* <div class="CLI_indented_command">To list all COSs and their attribute values. </div>


</blockquote>
<div class="CLI_indented_command">


{|
zmprov gac -v
|- valign="baseline"
| width="19.2" |
<font size="3" color="#000000" face=""Times New Roman""> '''• ''' </font>
| <font size="3" color="#000000" face="Arial"> Add a member to a distribution list.  '''Tip: '''You can add multiple members to a list from the administration console. </font>
|}


<blockquote>
</div>


<font size="3" color="#000000" face=""Courier New""> ''' zmprov adlm listname@domain.com member@domain.com  ''' </font>
* <div class="CLI_indented_command">To list all COSs and their attribute values. </div>


</blockquote>
<div class="CLI_indented_command">


{|
zmprov gaa domain.com
|- valign="baseline"
| width="19.2" |
<font size="3" color="#000000" face=""Times New Roman""> '''• ''' </font>
| <font size="3" color="#000000" face="Arial"> Change the administrator’s password. Use this command to change any password. Enter the address of the password to be changed.</font>
|}


<blockquote>
</div>


<font size="3" color="#000000" face=""Courier New""> ''' zmprov sp admin@domain.com password ''' </font>
* <div class="CLI_indented_command">To list all user accounts and their configurations</div>


</blockquote>
<div class="CLI_indented_command">


{|
zmprov gaa -v domain.com
|- valign="baseline"
| width="19.2" |
<font size="3" color="#000000" face=""Times New Roman""> '''• ''' </font>
| <font size="3" color="#000000" face="Arial"> Create a domain that authenticates against Zimbra OpenLDAP. </font>
|}


<blockquote>
</div>


<font size="3" color="#000000" face=""Courier New""> ''' zmprov cd marketing.domain.com zimbraAuthMech zimbra ''' </font>
* <div class="CLI_indented_command">To enable logger on a single server</div>


</blockquote>
<div class="CLI_indented_command">


{|
zmprov +zimbraServiceEnabled logger
|- valign="baseline"
| width="19.2" |
<font size="3" color="#000000" face=""Times New Roman""> '''• ''' </font>
| <font size="3" color="#000000" face="Arial"> Set the default domain. </font>
|}


<blockquote>
</div><div class="NumberedCont">


<font size="3" color="#000000" face=""Courier New""> ''' zmprov mcf zimbraDefaultDomain domain1.com ''' </font>
Then type <span class="Code">zmloggerctl start</span>, to start the logger.


</blockquote>
</div>


{|
* <div class="NumberedCont">Modify <span class="attribute">zimbraNewMailNotification</span> to customize the notification email template. A default email is sent from Postmaster notifying users that they have received mail in another mailbox. To change the template, you modify the receiving mailbox account. The variables are </div>
|- valign="baseline"
| width="19.2" |
<font size="3" color="#000000" face=""Times New Roman""> '''• ''' </font>
| <font size="3" color="#000000" face="Arial"> To list all COSs and their attribute values. </font>
|}


<blockquote>
<div class="Bulleted2_outer" style="margin-left: 15pt; margin-bottom: 2.0pt; margin-top: 5.0pt; vertical-align: baseline">


<font size="3" color="#000000" face=""Courier New""> ''' zmprov gac -v ''' </font>
{| id="SummaryNotRequired_np1121828"
|- style="vertical-align: baseline"
|
<div class="Bulleted2_inner" style="width: 14.4pt; white-space: nowrap; font-style: normal; font-variant: normal; text-transform: none">'''<font color="#000000"><span class="BulletSymbol">• </span></font>'''</div>
| width="100%" |
<div class="Bulleted2_inner" style="font-style: normal; font-variant: normal; text-transform: none">'''<font color="#000000"><span class="Code">${SENDER_ADDRESS} </span></font>'''</div>
|}


</blockquote>
</div><div class="Bulleted2_outer" style="margin-left: 15pt; margin-bottom: 2.0pt; margin-top: 5.0pt; vertical-align: baseline">


{|
{| id="SummaryNotRequired_np1121832"
|- valign="baseline"
|- style="vertical-align: baseline"
| width="19.2" |
|
<font size="3" color="#000000" face=""Times New Roman""> '''• ''' </font>
<div class="Bulleted2_inner" style="width: 14.4pt; white-space: nowrap; font-style: normal; font-variant: normal; text-transform: none">'''<font color="#000000"><span class="BulletSymbol">• </span></font>'''</div>
| <font size="3" color="#000000" face="Arial"> To list all user accounts in a domain (domain.com) </font>
| width="100%" |
<div class="Bulleted2_inner" style="font-style: normal; font-variant: normal; text-transform: none">'''<font color="#000000"><span class="Code">${RECIPIENT_ADDRESS} </span></font>'''</div>
|}
|}


<blockquote>
</div><div class="Bulleted2_outer" style="margin-left: 15pt; margin-bottom: 2.0pt; margin-top: 5.0pt; vertical-align: baseline">


<font size="3" color="#000000" face=""Courier New""> ''' zmprov gaa domain.com ''' </font>
{| id="SummaryNotRequired_np1121843"
|- style="vertical-align: baseline"
|
<div class="Bulleted2_inner" style="width: 14.4pt; white-space: nowrap; font-style: normal; font-variant: normal; text-transform: none">'''<font color="#000000"><span class="BulletSymbol">• </span></font>'''</div>
| width="100%" |
<div class="Bulleted2_inner" style="font-style: normal; font-variant: normal; text-transform: none">'''<font color="#000000"><span class="Code">${RECIPIENT_DOMAIN} </span></font>'''</div>
|}


</blockquote>
</div><div class="Bulleted2_outer" style="margin-left: 15pt; margin-bottom: 2.0pt; margin-top: 5.0pt; vertical-align: baseline">


{|
{| id="SummaryNotRequired_np1121844"
|- valign="baseline"
|- style="vertical-align: baseline"
| width="19.2" |
|
<font size="3" color="#000000" face=""Times New Roman""> '''• ''' </font>
<div class="Bulleted2_inner" style="width: 14.4pt; white-space: nowrap; font-style: normal; font-variant: normal; text-transform: none">'''<font color="#000000"><span class="BulletSymbol">• </span></font>'''</div>
| <font size="3" color="#000000" face="Arial"> To list all user accounts and their configurations </font>
| width="100%" |
<div class="Bulleted2_inner" style="font-style: normal; font-variant: normal; text-transform: none">'''<font color="#000000"><span class="Code">${NOTIFICATION_ADDRESSS} </span></font>'''</div>
|}
|}


<blockquote>
</div><div class="Bulleted2_outer" style="margin-left: 15pt; margin-bottom: 2.0pt; margin-top: 5.0pt; vertical-align: baseline">


<font size="3" color="#000000" face=""Courier New""> ''' zmprov gaa -v domain.com ''' </font>
{| id="SummaryNotRequired_np1121845"
|- style="vertical-align: baseline"
|
<div class="Bulleted2_inner" style="width: 14.4pt; white-space: nowrap; font-style: normal; font-variant: normal; text-transform: none">'''<font color="#000000"><span class="BulletSymbol">• </span></font>'''</div>
| width="100%" |
<div class="Bulleted2_inner" style="font-style: normal; font-variant: normal; text-transform: none">'''<font color="#000000"><span class="Code">${SUBJECT} </span></font>'''</div>
|}


</blockquote>
</div><div class="Bulleted2_outer" style="margin-left: 15pt; margin-bottom: 2.0pt; margin-top: 5.0pt; vertical-align: baseline">


{|
{| id="SummaryNotRequired_np1121846"
|- valign="baseline"
|- style="vertical-align: baseline"
| width="19.2" |
|
<font size="3" color="#000000" face=""Times New Roman""> '''• ''' </font>
<div class="Bulleted2_inner" style="width: 14.4pt; white-space: nowrap; font-style: normal; font-variant: normal; text-transform: none">'''<font color="#000000"><span class="BulletSymbol">• </span></font>'''</div>
| <font size="3" color="#000000" face="Arial"> To enable logger on a single server </font>
| width="100%" |
<div class="Bulleted2_inner" style="font-style: normal; font-variant: normal; text-transform: none">'''<font color="#000000"><span class="Code">${NEWLINE}</span></font>'''</div>
|}
|}


<blockquote>
</div><div class="bullet1continued">
 
You can specify which of the above variables appear in the '''Subject''', '''From''', or '''Body''' of the email. The following example is changing the appearance of the message in the body of the notification email that is received at '''name@domain.com'''. You can also change the template in a class of service, use <span class="Code">zmprov mc</span>. The command is written on one line.


<font size="3" color="#000000" face=""Courier New""> ''' zmprov +zimbraServiceEnabled logger ''' </font>
</div><div class="CLI_indented_command">


<font size="3" color="#000000" face="Arial"> Then type <font size="3" color="#000000" face=""Times New Roman""> '''zmloggerctl start''' </font>, to start the logger.</font>
  zmprov ma name@domain.com zimbraNewMailNotificationBody ‘Important message from ${SENDER_ADDRESS}.${NEWLINE}Subject:${SUBJECT}’


</blockquote>
</div>

Revision as of 20:46, 11 September 2006

zmprov (Provisioning)

The zmprovtool performs all provisioning tasks in Zimbra LDAP, including creating accounts, aliases, domains, distribution lists, and calendar resources. Each operation is invoked through command-line options, each of which has a long name and a short name.

The syntax for modify can include the prefix "+" or "-" so that you can make changes to the attributes affected and do not need to reenter attributes that are not changing. Use + to add a new instance of the specified attribute name without changing any existing attributes. Use - to remove a particular instance of an attribute. The syntax is zmprov [cmd] [argument].

The following objects use this syntax:

  • ModifyAccount
  • ModifyDomain
  • ModifyCos
  • ModifyServer
  • ModifyConfig
  • ModifyDistributionList
  • ModifycalendarResource

The following example could add the attribute zimbraZimlet UserProperties with the value 'testing" to user 1 and would not chagne the value of any other instance of that attribute.

zmprov ma user1 +zimbraZimletUserProperties testing

Short Name

Long Name

Syntax, Example, and Notes

-h

>--help

display usage

-f

--file

use file as input stream

> -s

--server

{host}[:{port}] server hostname and optional port

-l

--ldap

provision via LDAP instead of SOAP

-a

--account {name}

account name to auth as

-p

--password {pass}

password for account

-P

--passfile {file}

read password from file

-z

--zadmin

use zimbra admin name/password from localconfig for admin/password

-v

--verbose

verbose mode (dumps full exception stack trace)

-d/

--debug

debug mode (dumps SOAP messages)

The commands in the following table are divided into the following tasks types - Account, Calendar Resources, Config, COS, Distribution List, Documents, Domain, Server, and Miscellaneous.

Examples

  • Create one account with a password that is assigned to the default COS.
zmprov ca name@domain.com password
  • Create one account with a password that is assigned to a specified COS. You must know the COS ID number. To find a COS ID, type gc <COSname>.
zmprov ca name@domain.com password zimbraCOS cosIDnumberstring
  • Create one account when the password is not authenticated internally.
zmprov ca name@domain.com ‘’

The empty single quote is required and indicates that there is no local password.

  • Use a batch process to create accounts, see Managing the Zimbra Collaboration Suite chapter for the procedure.
  • Add an alias to an account.
zmprov aaa accountname@domain.com aliasname@domain.com
  • Create distribution list. The ID of the distribution list is returned.
zmprov cdl listname@domain.com
  • Add a member to a distribution list. Tip: You can add multiple members to a list from the administration console.
zmprov adlm listname@domain.com member@domain.com
  • Change the administrator’s password. Use this command to change any password. Enter the address of the password to be changed.
zmprov sp admin@domain.com password
  • Create a domain that authenticates against Zimbra OpenLDAP.
zmprov cd marketing.domain.com zimbraAuthMech zimbra
  • Set the default domain.
zmprov mcf zimbraDefaultDomain domain1.com
  • To list all COSs and their attribute values.
zmprov gac -v
  • To list all COSs and their attribute values.
zmprov gaa domain.com
  • To list all user accounts and their configurations
zmprov gaa -v domain.com
  • To enable logger on a single server
zmprov +zimbraServiceEnabled logger

Then type zmloggerctl start, to start the logger.

  • Modify zimbraNewMailNotification to customize the notification email template. A default email is sent from Postmaster notifying users that they have received mail in another mailbox. To change the template, you modify the receiving mailbox account. The variables are
${SENDER_ADDRESS}
${RECIPIENT_ADDRESS}
${RECIPIENT_DOMAIN}
${NOTIFICATION_ADDRESSS}
${SUBJECT}
${NEWLINE}

You can specify which of the above variables appear in the Subject, From, or Body of the email. The following example is changing the appearance of the message in the body of the notification email that is received at name@domain.com. You can also change the template in a class of service, use zmprov mc. The command is written on one line.

zmprov ma name@domain.com zimbraNewMailNotificationBody ‘Important message from ${SENDER_ADDRESS}.${NEWLINE}Subject:${SUBJECT}’
Jump to: navigation, search