...
Follow the instructions below to configure general server configurations:
Configuring the monitoring frequency:
Configure
the monitoring frequency via the EMM console. For more information, see General Server Configurations. If you configureInfo the monitoring frequency
via the EMM console, it will overwrite the monitoring frequency configuration done by editing thecdm-config.xml
file, as shown below.Configureby configuring the
DeviceMonitorFrequency
parameter in the cdm-config.xml
file, which is in the<EMM_HOME>/repository/conf
directory. Specify this value in milliseconds. The EMM server uses this parameter to determine how often the devices enrolled with EMM need to be monitored. By default, this value has been configured to 60000ms (1min).Example:
Code Block <DeviceMonitorFrequency>60000</DeviceMonitorFrequency>
Configure the following fields that are under theAnchor carbon.local.ip carbon.local.ip <APIKeyValidator>
tag in the<EMM_HOME>/repository/conf/api-manager.xml
file.Info This step is only applicable in the production environment.
Configure the
<serverURL>
field by replacing${carbon.local.ip}
with the hostname or public IP of the production environment.Code Block <ServerURL>https://${carbon.local.ip}:${mgt.transport.https.port}${carbon.context}/services/</ServerURL>
Example:
Code Block <ServerURL>https://45.67.89.100:${mgt.transport.https.port}${carbon.context}/services/</ServerURL>
Configure the
<RevokeAPIURL>
field by replacing${carbon.local.ip}
with the hostname or public IP of the production environment.Code Block <RevokeAPIURL>https://${carbon.local.ip}:${https.nio.port}/revoke</RevokeAPIURL>
Example:
Code Block <RevokeAPIURL>https://45.67.89.100:${https.nio.port}/revoke</RevokeAPIURL>
Enable HTTPS communication.Anchor HTTPS HTTPS Info - This step is only required for the production environment. Once enabled, the HTTP requests will be redirected to use HTTPS automatically.
- You will need to setup the BKS file in the android agent once HTTPS is enabled.
To enable HTTPS redirection for a specific web application, uncomment the following code in the respective web application's
web.xml
.
Example: Enable HTTPS redirection for the mdm-android-agent web app by navigating to the<EMM_HOME>/repository/deployment/server/webapps/mdm-android-agent/WEB-INF/web.xml
file.Code Block <security-constraint> <web-resource-collection> <web-resource-name>MDM-Admin</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint>
To enable HTTPS redirection for the entire servlet container, configure the
web.xm
l file, which is in the<EMM_HOME>/repository/conf/tomcat
folder, by including the following:Code Block <security-constraint> <web-resource-collection> <web-resource-name>MDM-Admin</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint>
...