Device related modifications

Solved Locked
AF
Andreas Fendt
Albert Mühlschlegel GmbH & Co.KG

Hello,

I want to use SOTI MobiControl to set up our barcode scanners with it. Two apps should be installed on the barcode scanner. I have already installed the two apps and set up a lockdown.

But both apps have certain configurations and adjustments which should be exactly for the respective barcode scanner. This includes configuration files, user names and activation keys. How can such configurations be rolled out?

One way I discovered was to simply create a package for the files for each device and then roll it out to the device. Unfortunately this way is very complicated if you have many barcode scanners.

Another idea I had was to roll out the single files "generically" and then customize them with a small piece of JavaScript (with a task that should be executed immediately). But then the question is from which database the script should get the configuration.

How do you solve the problem?

With kind regards
Andreas Fendt

5 years ago
SOTI MobiControl
ANSWERS
RC
Raymond Chan Diamond Contributor
5 years ago (edited 5 years ago)

I can at least think of two possible approaches as follows:

1. If you can use javascript in your included in your lockdown-menu html/css file to use the configuration parameters mentioned (configuration files, user names and activation keys, etc.) to perform your required configurations, you could consider using custom attributes to hold the parameters for each device.  Your javascript can reference these parameters, which can be imported in bulk with .csv file and deployed remotely from your MobiControl server.

2.  Have the required parameter stored in one or more files located in separate directory (named after device ID, say) per device , and then use one single file-sync rule to download the files to each targeted device.   Your javascript, file-sync-rule post-script or whatever app can read the parameters from down-link synced file(s) and perform the required per-device configurations.

Solution
AF
Andreas Fendt
5 years ago (edited 5 years ago)

Hello,

my current strategy is to build a MobiControl package in which some XML templates for the different apps to be configured, a XML for the configuration of the individual devices and a post-installation script which is developed with JavaScript. The script should then read the appropriate configuration from the configuration XML based on the hostname of the device and fill in the XML template to configure the apps.

I have already found out that it is possible to write a post-installation script with JavaScript. Now my next question is how can I access the file system with JavaScript? Does SOTI MobiControl Android Plus JavaScript Scripts simply follow the style of NodeJS? So like this: https://nodejs.org/en/knowledge/file-system/how-to-read-files-in-nodejs/ Or do I have to consider anything else here?

Of course my strategy has a decisive disadvantage: whenever more devices are added the MobiControl package is rebuilt and rolled out to all of them. I don't know yet if this is that bad... What is your opinion?

Many greetings
Andreas Fendt