Using Custom Data

Custom data allows you to create monitoring fields tailored to your specific needs. This can be particularly useful for monitoring aspects of third-party applications. SOTI MobiControl retrieves values for the custom data based on the device update schedule and whenever the device connects to the SOTI MobiControl deployment server.

You can retrieve custom data for devices within the Android Plus, Linux, Windows Desktop, Windows Mobile/CE, and Windows Modern platforms, however, custom data is not supported on devices running Windows 10 Home Edition.

You can view the custom data configured for a device within the device's Device Information panel, under the Device Details tab.

Custom Data Types

Type Description Format
Text File Retrieves the content of a specified line of a specified text file. If line number is not specified, the first line is retrieved. TXT://\FileName?LN=LineNumber

Example: TXT://\Device.log?LN=1

Registry Retrieves a value from the registry.
Note: Not available on Android Plus or Linux devices.
REG://GlobalKeyName\RegistryKey?VN=ValueName

Where GlobalKeyName can be:

  • HKEY_CLASSES_ROOT
  • HKEY_CURRENT_USER
  • HKEY_LOCAL_MACHINE
  • HKEY_USERS

Example: REG://HKEY_LOCAL_MACHINE\Software\Apps\SOTI\MobiControl?VN=Version

.INI File Retrieves a value from a specified section in an .INI file. INI://\FileName?SC=SectionName&NM=ValueName

Example: INI://\SOTI\pdb.ini?SC=Device&NM=DeviceName

Exit Code Retrieves the exit code of the specified executable.
Note: Not available on Android Plus or Linux devices.
EXE://\Executable[ArgumentList]

Example: EXE://\windows\system32\calc.exe

STDOUT Retrieves the first line of output of the specified executable.
Note: Not available on Android Plus devices.
STDOUT://Executable[ArgumentList]

Example: STDOUT://cmd.exe /c dir

Static Enters a static value that appears in the Device Information panel. This value is not based on any value on the device but defined by a SOTI MobiControl user.
Note: Not available on Android Plus or Linux devices.
Text

Example: OwnerName="X & Y Corporation, SalesDepartment"

.XML File Retrieves a value from a section in an .XML file.
Note: Only available for Android Plus devices.
XML://\FileName?XP=NodePath

Example: XML://%sdcard%/SOTI/demo.xml?XP=/root/devices/device1

Embedded Query

You can embed a query string into another query string using the following format: %KeyName%. The embedded query must be defined before the outer query.

Query embedding on works with static type queries, and there must be one static custom data type for every embedded query.

Example


    Key1=TXT://\RegLocationSSID.txt?LN=1
    Key2=REG://%Key1%