Allow a device serial number look up for device name

Issue #416 closed
Ray Fleischmann created an issue

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)

  1. Christian Behrens

    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?

  2. Ray Fleischmann reporter

    Christian, I need for this to set the device name BEFORE I do the bind to active directory profile.

  3. Christian Behrens

    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.

  4. Log in to comment