Steps to find broken or dead share mount on a user's mailbox and remove using zmmailbox command

Revision as of 06:07, 17 August 2017 by Nbhagwat (talk | contribs) (Created page with "===<h1>Steps to find broken or dead share mount on a user's mailbox and remove using zmmailbox command</h1>=== <hr> <br> <h2>Problem:</h2> Search and remove broken/dead share...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Steps to find broken or dead share mount on a user's mailbox and remove using zmmailbox command



Problem:

Search and remove broken/dead share mounts where thousands of shares mounted on user's mailbox.

Solution:

With the help of "zmsoap" command we can findout dead shares in a user's mailbox.

Following command will give folder list where we can grep "link broken" to check if there is any broken share exist or not.

Command syntax :

zmsoap -z -m USERNAME@DOMAIN.COM GetFolderRequest @tr=1


Here we will make some changes on above zmsoap command to get absolute path and folder id of broken share.


Command to get "absolute path" of all broken shares :

zmsoap -z -m USERNAME@DOMAIN.COM GetFolderRequest @tr=1 | grep -i broken | awk -F " absFolderPath=" '{print $2}' | awk -F '"' '{print "\""$2"\""}'

Command to get "folder id" of all broken shares :

zmsoap -z -m USERNAME@DOMAIN.COM GetFolderRequest @tr=1 | grep -i broken | awk -F " id=" '{print $2}' | awk -F '"' '{print "\""$2"\""}'

Now remove broken/dead share with the help of zmmailbox command :

zmmailbox -z -m USERNAME@DOMAIN.COM df "absolute path"

OR

zmmailbox -z -m USERNAME@DOMAIN.COM df "folder id"

Note : Replace USERNAME@DOMAIN.COM with the actual user name according to you environment.


Heera Singh Koranga

"Heera Singh" <hsingh@zimbra.com>

Jump to: navigation, search