Page 1 of 1

Question for all you PC Geeks/Programmers, etc.

Posted: Fri Jun 04, 2004 2:53 pm
by Rhiandra Rangnar
If I am writing a script to retrieve the serial numbers from 40 machines remotely using OpenBSD. Can you tell me the command that will give me the data so I can parse it into a MySQL database?


[on a MAC using OSX]


friend of mine needs the answer and I know some of you are PC masterminds and may know the answer.



Thanks in advance.

Posted: Fri Jun 04, 2004 3:23 pm
by Rhiandra Rangnar
Nevermind: apparently this is the answer;




ioreg -c "IOPlatformExpertDevice" | awk '/IOPlatformSerialNumber/ {print $4}'


that returns the s/n





[confuses the heck out of me]

Posted: Fri Jun 04, 2004 4:21 pm
by barbos
send them back (macs :huh: )

Posted: Sat Jun 05, 2004 7:34 am
by Azzlano
Macs are ok for db stuff but just that I really hate their incompatability with a lot of things tho. ><