Technical Tip: Airwatch MDM Poll fails with invalid username error
Description
- Test connection succeeds
- Failure can occur when polling on scheduled basis, manual or via on-demand
- Alarm similar to the following is generated
Alarm: com.bsc.api.alarm.YamsAlarm.label.MDM_POLL_FAILURE
Cause: com.bsc.api.alarm.YamsAlarm.label.MDM_POLL_FAILURE
Event:
MDM Poll Failed.
Incorrect Username or Password
output.master shows 404 error entries similar to the following:
yams INFO :: 2021-04-01 14:10:51:450 :: ############################## GET() starting ##############################
1 > GET https://<Airwatch Server name>/api/mdm/devices?searchby=macaddress&id=xxxxxxxxxxxx
yams INFO :: 2021-04-01 14:10:51:844 :: respone(2) InboundJaxrsResponse{context=ClientResponse{method=GET, uri=https://<Airwatch Server name>/api/mdm/devices?searchby=macaddress&id=xxxxxxxxxxxx, status=404, reason=Not Found}}
Solution
- Ensure Application Collection is disabled
- Set polling interval to be less frequent. By default, MDM poll is set to 1 hour.
- If On-demand registration is enabled, set polling interval to run during off hours on a daily basis. Since the MDM server is queried when unknown hosts reach the captive portal, the scheduled poll is primarily needed to update a registered host's health status.
- If On-demand registration is not enabled, reduce the frequency to every 4 hours. If behavior persists, reduce the frequency further as needed.