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 11-13-2007, 04:48 AM
Senior Member
 
Posts: 71
Question Maintenance mode for all Accounts

Actual Version: Release 4.5.6_GA_1044.RHEL5_20070706163724 CentOS5{i} NETWORK edition
(Tomorrow 4.5.9)

How can I set Maintenance mode for all accounts

This doesn't work: http://www.zimbra.com/forums/adminis...html#post36074
Quote:
zmprov ma zimbraAccountStatus active
And what is the effect of this?
It Seems to do nothing
Quote:
zmcontrol maintenance
Reply With Quote
  #2 (permalink)  
Old 11-13-2007, 05:08 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

I'm slightly confused by your post, you're asking about putting the accounts in maintenance mode and you quote a command to make them active. What is the output of the command when you try the correct format?
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 11-13-2007, 05:16 AM
Senior Member
 
Posts: 71
Default

Im sorry, pasted the wrong line.

This is what I mean
Quote:
zmprov ma zimbraAccountStatus maintenance
Output:
Code:
usage:  modifyAccount(ma) {name@domain|id} [attr1 value1 [attr2 value2...]]

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

...
...
'zmprov ma user@domain.com zimbraAccountStatus maintenance' works fine. But is there a command to put all Accounts in Maintenance mode?
Reply With Quote
  #4 (permalink)  
Old 11-13-2007, 05:32 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

OK, the example you've quoted is incorrect and that is the command for a single user mailbox. The one you want should be the 'zmcontrol maintenance' run as the zimbra user, does that not put it into maintenance mode?
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 11-13-2007, 05:45 AM
Senior Member
 
Posts: 71
Default

I wrote that just because jholder wrote this once (http://www.zimbra.com/forums/adminis...html#post36074)

Quote:
1.
To put all accounts into maintenance mode, from the command line, enter zmprov ma zimbraAccountStatus maintenance

What does zmcontrol maintenance do?
User login is still possible

(And how can I see if I'm in maintainence mode or not?)
Reply With Quote
  #6 (permalink)  
Old 11-13-2007, 05:54 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Quote:
Originally Posted by lindworm View Post
I wrote that just because jholder wrote this once (http://www.zimbra.com/forums/adminis...html#post36074)
Yes, I realise that - it's wrong. That only does individual accounts and the format is wrong, you've already worked that out.

Quote:
Originally Posted by lindworm View Post
What does zmcontrol maintenance do?
User login is still possible
I thought my last post had told you what that command does.

Quote:
Originally Posted by lindworm View Post
(And how can I see if I'm in maintainence mode or not?)
Check the individual accounts via zmprov or in the Admin UI. If it's not working then check bugzilla and if there's no problems already listed please file a bug report.
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 11-13-2007, 06:07 AM
Senior Member
 
Posts: 71
Default

ok, thx for your help.

It doesn't work for me, I thought I missed something out.

I will check bugzilla.
Reply With Quote
  #8 (permalink)  
Old 10-27-2009, 04:20 PM
Partner (VAR/HSP)
 
Posts: 197
Smile To put all accounts for a domain into maintenance mode

To put all accounts for a domain into maintenance mode, blocking access you can do the following.

Put the domain into maintenance mode:
Code:
# zmprov md mydomain.com zimbraDomainStatus maintenance
Put the domain into active mode:
Code:
# zmprov md mydomain.com zimbraDomainStatus active
And to query the current attributes of the domain:
Code:
# zmprov gd mydomain.com
To query just the zimbraDomainStatus attribute of the domain:
Code:
# zmprov gd mydomain.com | grep -i zimbraDomainStatus
Note: Only Zimbra admins will be able to login to a domain when in maintenance mode. Normal users will not be able to login.
__________________

http://agilemail.com.au

Your Australian Zimbra experts
Sales, consulting, installation, support
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.