Android > get device information %MCDEVICENAME%

GL
Gian Luca
Lexter Italia SRL

Hi all,

anyone know if it possible, in Android, get device information %MCDEVICENAME% and write it in a file in same device ?

thanks

Gian Luca

4 years ago
Android
ANSWERS
R
RRMOD@SOTI
4 years ago

Hi Gian,

Thanks for requesting from Support Staff.

Please provide the device model(s) is/are you using?  Are you using  Android Plus or Android Enterprise device agent(s)/ windows enrollment.

Kindly find the list of available Macros  and the use cases. You can use macros to automatically pull information from your devices and input it as a value into SOTI MobiControl. For example, when enrolling your devices, you can instruct SOTI MobiControl to name your devices according to data specific to each device, such as a device's IMEI number or MAC address.

You can use macros in various places throughout the SOTI MobiControl console such as device naming during enrollment, certain profile configurations and other device configuration and tracking actions.

Note: Macros are resolved whenever a device checks into SOTI MobiControl and updated accordingly. Therefore, device names will change to reflect new information.
 
 
%MCDEVICENAME% is basically a variable for device name assigned by SOTI for the enrolled devices. You could use this variable in your SOTI scripts to get device name value for each devices (especially helpful if you are doing a general script that can be used for any devices enrolled in SOTI)Use can also use the following macro to get device name.
Personalized Device Name       %PERSONALIZED_DEVICE_NAME%  

Also, if this post has helped you in solving your inquiry, I would request you to mark the particular comment as "is solution", so others may benefit from this information.

 
 
MD
Matt Dermody Diamond Contributor
4 years ago
GL
Gian Luca
4 years ago

Hi,

device model is Honeywell Thor VM1 Android \ Android Plus.

thanks

Gian Luca

RC
Raymond Chan Diamond Contributor
4 years ago

While there are new javascript command supporting limited file write operation as mentioned by Matt,  it's a pity that many predefined macros and device status are still not yet supported in the Javscript runtime library despite my repeated feature-requests made in the last 12-18 months.

GL
Gian Luca
4 years ago

Hi,

if possible, in a Honeywell  Android device I need a file, example devname.txt, and inside the file 

devicename = %devicename%

 

Thanks,

 

Gian Luca