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

No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
===<h1>Steps to find broken or dead share mount on a user's mailbox and remove using zmmailbox command</h1>===
{{BC|Certified}}
__FORCETOC__
<div class="col-md-12 ibox-content">
=Steps to find broken or dead share mount on a user's mailbox and remove using zmmailbox command=  
<hr>
<hr>
<br>
{{KB|{{ZC}}|{{ZCS 8.8}}|{{ZCS 8.7}}|{{ZCS 8.6}}|{{ZCS 8.5}}|}}
<h2>Problem:</h2>
{{WIP}} 


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


<h2>Solution:</h2>
====Problem====
1st Scenario: Search and remove broken/dead share mounts where thousands of shares mounted on the user's mailbox.


With the help of "zmsoap" command we can findout dead shares in a user's mailbox.
OR
 
2nd Scenario:  Users' webclient (advanced and HTML) not loading if multiple broken shares are present in the user's mailbox.
 
====Solution====
 
With the help of "zmsoap" command, we can find out 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.
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 :'''
'''Command syntax :'''
  zmsoap -z -m USERNAME@DOMAIN.COM GetFolderRequest @tr=1
  zmsoap -z -m USERNAME@DOMAIN.COM GetFolderRequest @tr=1


Line 21: Line 29:


'''Command to get "absolute path" of all broken shares :'''
'''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"\""}'
  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 :'''
'''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"\""}'
  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 :
Now remove broken/dead share with the help of zmmailbox command :
  zmmailbox -z -m USERNAME@DOMAIN.COM df "absolute path"
  zmmailbox -z -m USERNAME@DOMAIN.COM df "absolute path"


Line 35: Line 40:


  zmmailbox -z -m USERNAME@DOMAIN.COM df "folder id"
  zmmailbox -z -m USERNAME@DOMAIN.COM df "folder id"
 
'''Note:''' Replace '''USERNAME@DOMAIN.COM''' with the actual username according to your environment.
'''Note :''' Replace USERNAME@DOMAIN.COM with the actual user name according to you environment.
 




Submitted by:  Heera Singh Koranga
{{Article Footer|ZCS 8.8, 8.7, 8.6, 8.5|2018-08-13}}

Latest revision as of 12:37, 13 August 2018

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


   KB 23361        Last updated on 2018-08-13  




0.00
(0 votes)


Problem

1st Scenario: Search and remove broken/dead share mounts where thousands of shares mounted on the user's mailbox.

OR

2nd Scenario: Users' webclient (advanced and HTML) not loading if multiple broken shares are present in the user's mailbox.

Solution

With the help of "zmsoap" command, we can find out 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 username according to your environment.


Verified Against: ZCS 8.8, 8.7, 8.6, 8.5 Date Created: 2018-08-13
Article ID: https://wiki.zimbra.com/index.php?title=Steps_to_find_broken_or_dead_share_mount_on_a_user%27s_mailbox_and_remove_using_zmmailbox_command Date Modified: 2018-08-13



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Jump to: navigation, search