Allow a device serial number look up for device name
Is there any way to have imagr retrieve from an URL a text document that contains serial number / device name pairs then scan that looking up the current device serial number for it’s matching device name??? That would be extremely helpful.
Thank You!!!
Comments (6)
-
-
reporter Christian, Yes that will work… Thank You!!!!
-
reporter Christian, I need for this to set the device name BEFORE I do the bind to active directory profile.
-
I have no experience with Active Directory, sorry. All I do is get the serial number in my script (see below), look up the information from a text file on a web server with curl, then use that information to name the machine and create the correct user for that machine. But nothing with AD.
MySerial=`ioreg -l | grep IOPlatformSerialNumber | cut -f4 -d\"`
MyMachineInfo=`curl -s <http://address/to/file> | grep "$MySerial" 2>/dev/null;`
then go from there.
-
- changed status to resolved
looks like this is something that can be addressed by scripting. closing.
-
reporter - changed status to closed
Not 100% what I had in mind but I guess this will do for now.
- Log in to comment
I’m doing something similar already in a script. I’m using curl to access a text file on a web server that I then grep for the serial number. That sounds like what you’d like to do, no?