Remove a mobile device manually using CLI: Difference between revisions
(Created page with "{{WIP}}{{Article Infobox|{{admin}}|{{ZCS 8.6}}|{{ZCS 8.5}}|{{ZCS 8.0}}}} =Remove a mobile device manually using CLI= ==Purpose== Admin can't be able to remove mobile device fr...") |
No edit summary |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{BC|Certified}} | ||
__FORCETOC__ | |||
<div class="col-md-12 ibox-content"> | |||
=Remove a mobile device manually using CLI= | =Remove a mobile device manually using CLI= | ||
{{KB|{{ZC}}|{{ZCS 8.6}}|{{ZCS 8.5}}|{{ZCS 8.0}}|}} | |||
{{WIP}} | |||
==Purpose== | ==Purpose== | ||
Admin can't | Admin can't remove mobile device from list, and '''"Remove From List"''' is giving warning '''"no such device"'''. | ||
==Resolution== | ==Resolution== | ||
Find the mailbox id of | Find the mailbox id of affected user:- | ||
zmprov gmi USERNAME@DOMAIN.COM | zmprov gmi USERNAME@DOMAIN.COM | ||
Line 11: | Line 15: | ||
expr <mailboxId> % 100 | expr <mailboxId> % 100 | ||
Now check all provisioned | 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> ;' | mysql -e 'select mailbox_id, device_id, device_type, model, os from zimbra.mobile_devices where mailbox_id=<output of "expr" from step1> ;' | ||
===Example=== | ===Example 1=== | ||
Here an example. | Here's an example. | ||
<pre>mysql -e 'select mailbox_id, device_id, device_type, model, os from zimbra.mobile_devices where mailbox_id=34;' | <pre>mysql -e 'select mailbox_id, device_id, device_type, model, os from zimbra.mobile_devices where mailbox_id=34;' | ||
+------------+--------------------+-------------+---------+---------------+ | +------------+--------------------+-------------+---------+---------------+ | ||
Line 29: | Line 33: | ||
====Example==== | ====Example 2==== | ||
zmsoap -z RemoveDeviceRequest/account="testing12@u10zim.lab.zimbra.com" @by="name" ../device @id="androidc1554527900" | zmsoap -z RemoveDeviceRequest/account="testing12@u10zim.lab.zimbra.com" @by="name" ../device @id="androidc1554527900" | ||
==Additional Content== | ==Additional Content== | ||
Line 48: | Line 52: | ||
<CancelPendingRemoteWipeResponse> </pre> | <CancelPendingRemoteWipeResponse> </pre> | ||
* You can also read the following document for better description about SOAP related operations for mobile devices, located in '''[Path on ZCS Server] /opt/zimbra/docs/soap-mobile.txt''' | * 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''' | ||
{{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| | {{NeedSME|Edu Godinho|SME2|Jenny Jarrard}} |
Latest revision as of 20:46, 12 July 2015
Remove a mobile device manually using CLI
- This article is a Work in Progress, and may be unfinished or missing sections.
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