Remove a mobile device manually using CLI: Difference between revisions

Line 52: Line 52:


{{Article Footer|Zimbra Collaboration 8.6, 8.5, 8.0|04/16/2015}}
{{Article Footer|Zimbra Collaboration 8.6, 8.5, 8.0|04/16/2015}}
{{NeedSME|Edu Godinho|SME2|Copyeditor}}
{{NeedSME|Edu Godinho|SME2|Jenny Jarrard}}

Revision as of 15:17, 21 May 2015

Admin Article

Article Information

This article applies to the following ZCS versions.

ZCS 8.6 Article ZCS 8.6 ZCS 8.5 Article ZCS 8.5 ZCS 8.0 Article ZCS 8.0


Remove a mobile device manually using CLI

Purpose

Admin can't remove mobile device from list, and "Remove From List" is giving warning "no such device".

Resolution

Find the mailbox id of affected user:-

zmprov gmi USERNAME@DOMAIN.COM 

Take the value of "mailboxId" and run this command:-

expr <mailboxId> % 100

Now check all provisioned devices for the user:-

mysql -e 'select mailbox_id, device_id, device_type, model, os from zimbra.mobile_devices where mailbox_id=<output of "expr" from step1> ;'  

Example 1

Here's an example.

mysql -e 'select mailbox_id, device_id, device_type, model, os  from zimbra.mobile_devices where mailbox_id=34;'
+------------+--------------------+-------------+---------+---------------+
| mailbox_id | device_id          | device_type | model   | os            |
+------------+--------------------+-------------+---------+---------------+
|         34 | androidc1554527900 | Android     | Nexus 5 | Android 4.4.4 |
+------------+--------------------+-------------+---------+---------------+

Remove device from device list

zmsoap -z RemoveDeviceRequest/account="USERNAME@DOMAIN.COM"  @by="name" ../device @id="DEVICE ID FROM STEP2" 


Example 2

zmsoap -z RemoveDeviceRequest/account="testing12@u10zim.lab.zimbra.com"  @by="name" ../device @id="androidc1554527900"

Additional Content

  • Additional Notes. You can use above steps for following operations :
<GetDeviceStatusRequest>
<GetDeviceStatusResponse>
<RemoveDeviceRequest>
<RemoveDeviceResponse>
<SuspendDeviceRequest>
<SuspendDeviceResponse>
<ResumeDeviceRequest>
<ResumeDeviceResponse>
<RemoteWipeRequest>
<RemoteWipeResponse>
<CancelPendingRemoteWipeRequest>
<CancelPendingRemoteWipeResponse> 
  • You can also read the following document for a better description about SOAP-related operations for mobile devices, located in [Path on ZCS Server] /opt/zimbra/docs/soap-mobile.txt


Verified Against: Zimbra Collaboration 8.6, 8.5, 8.0 Date Created: 04/16/2015
Article ID: https://wiki.zimbra.com/index.php?title=Remove_a_mobile_device_manually_using_CLI Date Modified: 2015-05-21



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 »


Wiki/KB reviewed by Edu Godinho SME2 Jenny Jarrard Last edit by Jenny Jarrard
Jump to: navigation, search