Managing Service Commands in Zimbra

Managing Service Commands in Zimbra

In this tutorial we are going to show how to manage some important service commands in Zimbra. Using this service you can easily find the status or even you can restart, start and stop the services. Similar services like zmstat, zmmailbox, zmproxy, etc.

Steps for service commands

1. Command to check zmstat data collectors.

[zimbra@mail diamond]$ zmstatctl status
Running: zmstat-mtaqueue
Running: zmstat-cpu
Running: zmstat-proc
Running: zmstat-allprocs
Running: zmstat-fd
Running: zmstat-io-x
Running: zmstat-io
Running: zmstat-nginx
Running: zmstat-vm
Running: zmstat-ldap
Running: zmstat-df
Running: zmstat-mysql

2. Command to check all running status in zimbra. You can also start, stop, restart the particular services.

[zimbra@mail diamond]$ zmcontrol status

Host mail.test1@testdomain.io
     amavis                    Running
     antispam                  Running
     antivirus                 Running
     ldap                      Running
     logger                    Running
     mailbox                   Running
     memcached                 Running
     mta                       Running
     opendkim                  Running
     proxy                     Running
     service webapp            Running
     snmp                      Running
     spell                     Running
     stats                     Running
     zimbra webapp             Running
     zimbraAdmin webapp        Running
     zimlet webapp             Running
     zmconfigd                 Running

3. Command to Start, stop, reload, or find the status of the mailbox components.

[zimbra@mail diamond]$ zmmailboxdctl status
mailboxd is running.

4. Command to Start, stop, restart, and check the status of the IMAP proxy service

[zimbra@mail diamond]$ zmproxyctl status
proxy is running.

5. Command to Start, stop, reload, or check status of Apache service.

[zimbra@mail diamond]$ zmapachectl status
apache is running.

6. To check the mysql status of zimbra run below command.

[zimbra@mail diamond]$ zmmysql status
MySQL uptime: 1843 minutes
Connections and Threads:
-----------------------
Connections = 10092
Max_used_connections = 4
Threads_cached = 1
.
.
.
0 out of 1000 descriptors used
Main thread process no. 1995, id 139727848613632, state: sleeping
Number of rows inserted 811, updated 5189, deleted 112, read 5380695
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s

7. Command to Start, stop, reload,and check status for the anti-virus service.

[zimbra@mail diamond]$ zmantivirusctl status
antivirus is running
Tag : Zimbra
Comment
sosmedkgp
Jun 25 2018
how to fix when zmcontrol status stat status not running
Add a comment
FAQ
Q
what are all the general tool information for zimbra?
A
the general tool information for zimbra are

CLI commands are run as the zimbra user, that is su - zimbra.

The actual CLI commands are case-sensitive. You must type them in lower case.

Press ENTER after you type a command.

Typing the CLI command and then - h displays the usage options for the command. Example: zmprov - h lists all the options available for the zmprov utility.

Each operation is invoked through command-line options. Many have a long name and a short name. For example, these two commands are equivalent:
zmprov createAccount joe@domain.com test123
Q
which command to check the version of zimbra?
A
use the following command to check the version of zimbra
# zmcontrol -v
Q
what is the command to check the all running status in zimbra?
A
Command to check all running status in zimbra as follows
$ zmcontrol status
Q
How to check the status for IMAP proxy service?
A
check the status for IMAP proxy service by below command
# zmproxyctl status
Q
How to reload mailbox components?
A
for relaoding the mail box by following command
# zmmailboxdctl reload