What table or tables in the MobiControl DB contain the Device Name as displayed in the Device View of the MobiControl Console?

Solved
TS
Tim Schisel
Kimberly-Clark Corporation HEADQUARTERS

I see DevId, but I would prefer not to dig through many tables to find which table or tables to join.

a year ago
SOTI MobiControl
ANSWERS
R
Remy Gold Contributor
a year ago

dbo.DevInfo

Solution
TS
Tim Schisel
a year ago

Hi, thanks for the response. That table has a DevName field, but that is not the Device Name as displayed in the UI.

ZC
Zafer Cigdem Platinum Contributor
a year ago

Hi Tim,

I'd kindly advise to use API over SQL, when possible, to minimize the risk, otherwise anything wrong on the DB side may affect your environment (if it's not only Select statement). From the API side you can see devices' information including the name under /devices GET API Call as following SS:

I hope it helps. 

Zafer

TS
Tim Schisel
a year ago

Hello Zafer,

I will take a look at this as well. I am just looking for reporting purpose to see where to cross reference a device ID to the displayed Device Name from the UI.

ZC
Zafer Cigdem Platinum Contributor
a year ago

Hi Tim,

Did you know there is also Device ID column on the view section as below: 

You can also get export of the list of devices from MobiControl Webconsole when required. if i missed your request please let me know, I'll try to help with my best :)

Zafer

TS
Tim Schisel
a year ago

Yes, thanks. I see the Device ID all over the place in the DB, I would like to use that to join to whatever table has meaningful name that I am looking for.

CR
Chris R. Bronze Contributor
a year ago

The devname column in the Devinfo table contains that value.  I have to use RTRIM(devname) when defining it in my query so it will trim off the extra space at the end.

TS
Tim Schisel
a year ago

Not in my copy, maybe that is part of the sanitization process I guess, but not sure why it would be.

That field has 'DeviceName##########' where #### is a nine digit integer value and that is not what is displayed in the UI.

CR
Chris R. Bronze Contributor
a year ago

Interesting.  That's certainly not the case in my implementation, seems odd.

CR
Chris R. Bronze Contributor
a year ago

If it's 9 digits after the device name as standard, you could use the query below in your select statement:

SUBSTRING(DevName, 1, LEN(DevName) - 9)

TS
Tim Schisel
a year ago

That is interesting... I will ask SOTI Support. The text does start with the literal string 'DeviceName'.

TS
Tim Schisel
a year ago

It turns out that SOTI's script to cleanse the DB is generic as in it can be used by customers as well and the customers may want to hide their actual device names so the script makes them generic throughout the tables.

Similar Discussions