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 01-13-2009, 02:56 PM
Elite Member
 
Posts: 376
Default Get/change account information via command line

I'm using zmprov to create accounts, but is there a way to check the details on an existing account?

I'm trying to get the first name, last name, account status, and last login time. The option to find out more would be nice. I am trying to set it up via script to retrieve the info, save it to a variable, then create a new account with that infomation.
__________________
Culley
Mail | Dell 2950III | 2x Quad Core 5420 | 8gb RAM | 6x 146gb SAS RAID 0+1 | Red Hat 5.3 | Zimbra 6.0.10 Network Edition
Test | VMware ESXi Whitebox | Phenom II Black 3.2ghz | 12gb RAM | 6x 1tb SATA RAID 0+1 | CentOS 5.4 | FOSS, Not in use now
Reply With Quote
  #2 (permalink)  
Old 01-15-2009, 11:28 AM
Elite Member
 
Posts: 376
Default

Any ideas? I know using the zmprov command you can create accounts and specify names, but is there a way to look at the names via CLI. Even better, to check the name and then save it to a variable in a script?
__________________
Culley
Mail | Dell 2950III | 2x Quad Core 5420 | 8gb RAM | 6x 146gb SAS RAID 0+1 | Red Hat 5.3 | Zimbra 6.0.10 Network Edition
Test | VMware ESXi Whitebox | Phenom II Black 3.2ghz | 12gb RAM | 6x 1tb SATA RAID 0+1 | CentOS 5.4 | FOSS, Not in use now
Reply With Quote
  #3 (permalink)  
Old 01-15-2009, 12:35 PM
Moderator
 
Posts: 883
Default

You can use 'zmprov getAllAccounts (gaa)' to get a listing of all the accounts. If you have more than one domain you can add '-v <domain name>' to see just the accounts for one specific domain. To get more info about a specific account you can use 'zmprov getAccount (ga) user@domain' to see more information about a specific account.

Do a search of the forums and the wiki. I'm pretty sure you will find several examples of using the 'zmprov' commands for various tasks.
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.