Вы находитесь на странице: 1из 9

Taller 7: Comandos en consola en

Zimbra
Tabla de contenidos
 Zimbra CLI Comandos
 Consola de administración
 Comandos de servicios
 Comandos Individuales de servicio
 Comandos de la consola de administración
 zmprov: Comando de administración de zimbra
 Obtener y modificar valores de configuración
 Buzones : zmmailbox
 Tamaño de un buzón
 Migración de cuentas y correos
 Creación de cuentas en forma masiva
 Migración de passwd y shado
 Obligar que los usuarios pongan una nueva contraseña
 Generación de contraseñas aleatorias
 Migración de buzones maildir
 Migración de Mailbox con Imapsync
 Migración de contactos entre zimbra a zimbra
 Migración de Zimbra a Zimbra
 Migración de buzones con zmztozmig

7.1.- Zimbra CLI Comandos


CLI Description

ldap Start, stop, or find the status of zimbra LDAP

ldapsearch Perform a search on an LDAP server


CLI Description

logmysqladmin Send myslqadmin commands to the logger mysql

mailboxd Start, stop, find the status of the mailboxd server

mysql Enters interactive command-line MySQL session with the mailbox mysql

mysql.server Start, stop the SQL instance for the mailboxpackage

mysqladmin Send admin commands to MySQL

postconf Postfix command to view or modify the postfixconfiguration

postfix Start, stop, reload, flush, check, upgrade-configuration of postfix

qshape Examine postfix queue in relation to time andsender/recipient domain

zmaccts Lists the accounts and gives the status ofaccounts on the domain

zmamavisdctl Start, stop, restart, or find the status of theAmavis-D New

zmantispamctl Start, stop, reload, status for anti-spam service

zmantivirusctl Start, stop, reload, status for the anti-virus service

zmapachectl Start, stop, reload, or check status of Apacheservice (for spell check)

zmarchive Config Command to view, modify, or configure archiving


CLI Description

zmarchivectl Start, stop, reload, status for archiving

zmarchivesearch Search archives on the account

zmauditswatchctl Start, stop, restart, reload, status of theauditswatch

zmbackup Performs full backups and incremental backupsfor a designated mail host.

zmbackupabort Stops a backup that is in process.

zmbackupquery Find a specific full backup set

zmblobchk Check consistency of the Zimbra blob store

zmcalchk Check consistency of appointments andattendees in the Zimbracalendar

zmcertmgr Manage self-signed and commercial certificates

zmclamdctl Start, stop, or find the status of Clam AV

zmcleaniplanetics Clean iPlanet ICS calendar files

(Start/Stop Service) Start, stop, status of the Zimbra servers. Also can use to find the
zmcontrol
Zimbra version installed.

Start, stop, the conversion server or find thestatus of the converted attachments
zmconvertctl
conversion/indexing
CLI Description

zmdumpenv General information about the serverenvironment is displayed

zmgsautil Create, delete the GAL sync account and initiate manual syncs.

zmhostname Find the hostname of the Zimbra server

zmhsm Start, stop and status of a HSM session.

zmitemdatafile Extracts and packs tgz files that ZCS uses forREST import/export

zmjava Execute Java with Zimbra-specific environmentsettings

zmldappasswd Changes the LDAP password

zmlicense View and install your Zimbra license

zmlmtpinject Testing tool

zmlocalconfig Used to set or get the local configuration of a Zimbra server

zmloggerctl Start, stop, reload, or find the status of the Zimbra logger service

zmloggerhostmap Used to manually map a DNS hostname to azmhostname.

zmlogswatchctl Start, stop, status of the swatch that is monitoring logging

zmmailbox Performs mailbox management tasks


CLI Description

Start, stop, reload, or find the status of themailbox components (mailboxd, MySQL,
zmmailboxdctl
convert)

zmmailboxmove (Move Mailbox) Used to move selected mailboxes from one Zimbra server to another.

zmmboxsearch (Cross Mailbox Search) Search across mailboxes to find messages andattachments

zmmetadump Support tool that dumps an item’s metadata in ahuman-readable form

zmmtaconfigctl Start, stop, or find the status of the MTAconfiguration daemon

zmmtactl Start, stop, or find the status of the MTA

zmmypasswd Trace messages

zmmypasswd Change MySQL passwords

zmmysqlstatus Status of mailbox SQL instance

zmperditionctl Start, stop, or find the status of the perdition IMAP proxy

Performs data restore using backed upsnapshots taken periodically.Users who use
zmplayredo
snapshots to backup and restore their information from a standby site use this command.

(Provisioning) Performs all provisioning tasks in Zimbra LDAP, including creating accounts,
zmprov
domains, distribution lists and aliases

zmproxyconfgen Generates configuration for the nginx proxy


CLI Description

zmproxyctl Start, stop, restart, and find the status of the IMAP proxy service

zmproxypurge Purges POP/IMAP routing information from oneor more memcached servers

Ability to write Python scripts that access Zimbra Java libraries. It sets the ZCS class path
zmpython
and starts the Jython interpreter.

zmredodump Support tool for dumping contents of a redologfile for debugging purposes

zmrestore Performs full restores and incremental restoresfor a designated mail host

zmrestoreldap Restore accounts from the LDAP backup

(Offline Restore) Performs full restore when the Zimbra server (i.e., the mailboxd process)
zmrestoreoffline
is down

zmsaslauthdctl Start, stop, or find the status of saslauthd(authentication)

zmschedulebackup Schedule backups and add the command to your cron table

zmshutil Used for other zm scripts, do not use

zmskindeploy Deploy skins for accounts from the command line

zmsoap Print mail, account, and admin information in the SOAP format

zmspellctl Start, stop, or find the status of the spell checkserver


CLI Description

zmsshkeygen Generate Zimbra’s SSH encryption keys

zmstat-chart Generate charts from zmstat data collected in adirectory

zmstat-chart-
Generate an .xml file with data included from the account setup
config

zmstat-chart- Outputs an XML configuration that describes the current state of the data gathered from
config zmstat-chart to generate charts on the

Consola de administración

CLI Descripción

zmstatctl Start, stop, check status, or rotate logs of zmstat data collectors

zmstorectl Start, stop, or find the status of Zimbra storeservices

zmswatchctl Start, stop, or find the status of the Swatchprocess, which is used in monitoring

zmsyslogsetup Used to setup system log config file

zmthrdump Initiate a thread dump and save the data to a filewith a timestamp

zmtlsctl Set the Web server mode to the communication protocol options: HTTP, HTTPS or mixed

zmtrainsa Used to train the anti-spam filter to recognizewhat is spam or ham

zmtzupdate Provides mechanism to process timezonechanges from the command line


CLI Descripción

zmupdateauthkeys Used to fetch the ssh encryption keys created by zmsshkeygen

zmvolume Manage storage volumes on your Zimbra Mailbox server

zmzimletctl Deploy and configure Zimlets

Comandos de Servicio
Su – zimbra

Ver la versión actual de zimbra y el parche actual

Zmcontrol –v

7.2.- Comandos individuales de servicio


(start, stop, restart, status)
 Ejemplo: Detenemos todos los servicios e iniciaremos uno a uno

zmcontrol stop

zmcontrol status

 Iniciar LDAP server


Ldap start

Zmcontrol status

 Iniciar MySQL Server

Mysql.server start

Iniciar zmconsigd
Zmconfigdctl start

 Iniciar Amavis, Antivirus y AntiSpam (amavis, spamassassin, clamav)


Zmmailboxdctl start
 Iniciar spell (servidor de ortografía)
zmapachectl start

 Iniciar monitoreo
zmswatchctl start

 Iniciar estadísticas
Zmstatctl start

 Iniciar Logger (logs del sistema)

zmlogswatchctl start

Вам также может понравиться