TC56 Device Hostname via mxconfig

P
Prasath
DHL INFORMATION SERVICES (EUROPE)/DHL International GmbH

Hi,

I was able to update the device hostname via mxconfig filename.xml command.  (details of xml file below). Assuming I have this file in all my TC56 devices, is there anyway I can pass the value of %MCDEVICENAME% into the xml file and replace "MyDevice" value? 

<wap-provisioningdoc>
<characteristic type="HostsMgr">
<parm name="HostName" value="MyDevice"/>
</characteristic>
</wap-provisioningdoc>

6 years ago
Android
ANSWERS
JD
John Doe
6 years ago

what is your %MCDEVICENAME% filled with?

Maybe there are Wildcards like "Serialnumber" for the Hostname field in MXconfig too?

MD
Matt Dermody Diamond Contributor
6 years ago

That is a great idea, but it doesnt have any documented support for using similar wildcards which is kind of a shame. 

http://techdocs.zebra.com/mx/hostsmgr/

Requests around Hostname modification have come up a fair amount recently so it would make sense for Zebra or SOTI to do something official about it rather than leaving us trying to cobble together workarounds.

Maybe we could use SOTI Macros inside of Managed Config once OEMConfig is finally released for Zebra devices (I've heard that it is imminent). If so you could maybe plug in a SOTI Macro for Device Name into the OEMConfig for HostMgr once that is exposed. Does anyone know if you can use Macros in other Managed Configs today?

P
Prasath
6 years ago

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)

MD
Matt Dermody Diamond Contributor
6 years ago

My understanding was that you were likely hoping to accomplish the opposite. I take it that you want to be able to change the the device name in the SOTI console and have that update the Hostname value somehow.

P
Prasath
6 years ago

Yeah true. Been looking for OEMConfig options in MC for very long time.  Its really such a shame that  a great tool designed for enterprise dont have such features. 

P
Prasath
6 years ago

You are spot on. The background of this request is to maintain the same name for both devicename and hostname , so that identifying the devices from MC and the application requests can come handly.  Our Backend systems records the apache logs with hostname in their headers. Now finding the specific device (android-1231231231231*) and mapping it to MC device name (lets say US_JFK_1234567890) would be night mare especially if you are managing 45k devices globally.

JD
John Doe
6 years ago

@Matt Dermody EZConfig from Honeywell has the capabilities to utilize wildcards as the hostname

You have MAC, SerialNr. etc. available.

Hello Prasath, 

Thank you for requesting a response from SOTI Support Staff.

Unfortunately, there currently isn't a way that I can think of to syncronize a macro with the "MyDevice" field in your xml file like you are requesting.    Looking at the thread it may definitely be a good idea to have "OEMConfig options" incorporated into MobiControl for use cases like these and other automation's.

If you believe that it could be useful for other scenarios as well, we do suggest creating a case with Support.   A feature request can be requested from there.

Regards,

Similar Discussions