Macro for the Device Name set in Soti Mobicontrol?

Solved

Greetings everyone,

I am currently working on a Lockdown template and trying to get the name of my devices there. If I use the macro %PERSONALIZED_DEVICE_NAME% it will only output "TC25" in our case (Zebra TC25 devices). I've seen that it would be possible to send a script to each phone to change the Personalized Device name, but since we rename our devices quite a few times, I don't want to as much automated as possible.

If there is no macro for this, what would be the best approach to show a personalized String on each device?

Thanks

2 years ago
SOTI MobiControl
ANSWERS
RS
Rafael Schäfer
2 years ago

We reworked the dynamic template for our needs and one of those was to put the device name into the header to be displayed on the top of the lock screen.

But we build our device names based on custom data, so we did this in the template (just minimized example):

<div id="header">
            <p>%MCCustomData:NameOfCustomData%</p>
</div>
We use the macro %Devicename% in OEM config to set the device name (for Zebra devices), so maybe you can use this macro here as well.
 
And btw: %PERSONALIZED_DEVICE_NAME% has nothing to do with the name of the device in Mobicontrol.
LG
Laurent Goerres
2 years ago

Thank you for your answer Rafael,

You are right about %PERSONALIZED_DEVICE_NAME%, I've used %Devicename% instead (this macro was not listed at all here, should probably be added: Using Macros in SOTI MobiControl) and this works just fine. The only thing is that it takes some time to be reflected in our HTML Lockdown Template when you change the name on MobiControl, but thats fine.

Regarding custom data, where can I find the interface to set custom data for each device that i can then reference using %MCCustomData:XYZ%?

RS
Rafael Schäfer
2 years ago

Custom data can be set/activated in the folder settings:

  1. right click on the folder group you want to get/set this
  2. Choose davanced configurations
  3. Choose custom data
  4. enable the custom data (if not already) and click the "+" to add some new
  5. the data needs to be read by Mobicontrol agent from a ini or xml file on the device
  6. Can be used in scripts etc. like %MCCustomData:XYZ%

If you want to do the same by set up the data "manually" in the console, you must use custom attributes (be aware that these are available for the entire Mobicontrol instance):

  1. Goto global settings
  2. choose Device settings
  3. (choose custom attributes) -> is the only menu here, so should be just selected automatically
  4. Add a new attribute
  5. go to a folder/device where you want to change the attribute:
    1. Folder (will be inherited to all devices and sub-folders in the folder):
      1. Right click the folder
      2. select group details
      3. click the pen
      4. edit and save the attributes
    2. Device (will overwrite all inherited attribute data):
      1. Open device details
      2. Scroll down until you see the custom attributes section
      3. click the pen
      4. edit and save the attributes
  6. Can be used in scripts etc. like %MCCustomAttr:XYZ%
Solution
LG
Laurent Goerres
2 years ago

Thank you very much!

RS
Rafael Schäfer
2 years ago

No problem, always nice to help ;)

A
AMMOD@SOTI
2 years ago

Hi Laurent,

Thanks for requesting a response from SOTI SUPPORT STAFF, thanks Rafael for responding to the post, and for providing a solution to the customer's question. 

If you have any other issues or queries, please don't hesitate to ask. We're here to assist you further."

Kind regards,

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |