Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-06-2009, 09:03 AM
Junior Member
 
Posts: 6
Default Bulk Provision on specific server node

Does anyone know if there is a way to provision multiple accounts on a specific server?
If I create accounts individually they are created on the server I am logged into, if I run the bulk provision by importing a CSV file all the accounts are created on the main server and I have to manually move each account to the node I need them on.
Is this by design (an important reason behind it)? or is there a way around this?
It is very time consuming to move 100's off accounts one at a time.

Thanks
Reply With Quote
  #2 (permalink)  
Old 04-06-2009, 09:09 AM
raj raj is offline
Moderator
 
Posts: 768
Default

I hve done this in SOAP api..but not in CLI..qucik output from "zmprov ca" says:

[zimbra@zimbra1 ~]$ zmprov ca
usage: createAccount(ca) {name@domain} {password} [attr1 value1 [attr2 value2.. .]]

zmprov [args] [cmd] [cmd-args ...]

-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
-L/--logpropertyfile log4j property file, valid only with -l
-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


so may be you want to use he server switch and see if the user gets created on that server.
something like:

zmprov ca name@domain.com password -s host: port


* host: port there is NO space after colon..i just did so it dont show up as smily :P
Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
  #3 (permalink)  
Old 04-06-2009, 09:15 AM
raj raj is offline
Moderator
 
Posts: 768
Default

in SOAP api i do the following

<CreateAccountRequest xmlns="urn:zimbraAdmin">
<name>test@test.com</name>"
<password>mypassword</password>
<a xmlns="" n="displayName">Test Name</a>"
<a xmlns="" n="givenName">Name</a>"
<a xmlns="" n="zimbraMailQuota">10240</a>"
<a xmlns="" n="zimbraMailHost">zimbrhost5.domain.com</a>
</CreateAccountRequest>


Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
  #4 (permalink)  
Old 04-06-2009, 09:52 AM
Junior Member
 
Posts: 6
Default Web Interface?

Thanks for the reply, I am not familiar with SOAP, maybe I should be. Is there any way to do this using the web interface "Bulk Provision" tool?
Reply With Quote
  #5 (permalink)  
Old 04-06-2009, 11:44 AM
raj raj is offline
Moderator
 
Posts: 768
Default

if you have 2 mailbox server i.e: mailserver1.domain.com and mailserver2.domain.com
you can log into any one of the server and run your bulk commans on command line or in a .sh script
command to create 1 user on MAILSERVER2:

zmprov ca useronmailserver2@domain.com TestPassword zimbraMailHost mailserver2.domain.com


zimbraMailHost is th attribute you were looking for which tell the server to create this users mailbox on mailserver2.

All you need to do is create a file with 1 line each like above for each user and run once and it will create all the users for you.

* i dont know if admin tool takes other attibutes like "zimbraMailHost" and stuff

Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.