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
  #11 (permalink)  
Old 09-08-2009, 12:22 AM
Active Member
 
Posts: 27
Default

thanks , i managed to make it work,
the output is as below:
HTML Code:
nkomazanas@mydomain.co.zw

nkomazanas

nkomazanas

chirimumimbac@mydomain.co.zw

chirimumimbac

chirimumimbac
thanks a lot, so i am now formatitng it in such a way that i can include commas .
eg: chirimumimbac@mydomain.co.zw,chirimumimbac,chirimumimbac
nkomazanas@mydomain.co.zw,nkomazanas,nkomazanas

thanks

buggz
Reply With Quote
  #12 (permalink)  
Old 10-02-2009, 09:41 AM
Junior Member
 
Posts: 9
Default

Why not just do this:

zmprov -l gaa -v | grep name | awk '{print $3}'
Reply With Quote
  #13 (permalink)  
Old 11-01-2010, 06:00 AM
Starter Member
 
Posts: 1
Default tool for exporting accounts

Simply log into the admin console, search using the following string (!(zimbraAccountStatus=*.*)) and then click on download to download to csv.

hope this helps
Reply With Quote
  #14 (permalink)  
Old 08-09-2011, 09:22 AM
Starter Member
 
Posts: 1
Default Python code for export to csv

#! /usr/bin/env python
# this script requires you have extracted the file list with the zimbra CLI: zmprov -l gaa -v > /tmp/list. Plus the path in which you save the script has to be the same of the list file.
elisa_file = open("/tmp/list","r")
lista = []
record = {}
for row in elisa_file.readlines():
if row.strip() == '':
lista.append(record)
record = {}
if row[0] == '#':
pass
else:
record.update({row[:row.find(':')]: row[row.find(':')+1:]})

for x in lista:
dato = ""
if 'mail' in x: dato = dato + x['mail']
if 'displayName' in x: dato = dato.strip("\n") + ',' + x['displayName']
dato = dato.strip("\n")
print dato

-------
To execute: python yourscript.py > yourexport.csv
And now import in excel
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.