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.
Question for all you PC Geeks/Programmers, etc.
- Rhiandra Rangnar
- Donkey Fucker
- Posts: 841
- Joined: Fri Feb 28, 2003 7:51 am
- Location: Over here, silly!
- Contact:
Question for all you PC Geeks/Programmers, etc.
Rhiandra Rangnar
EQ ----> DAoC ----> WoW ----> boredom
[fade]Over 1 million mezzed and counting .........[/fade]
My candle burns at both ends;
It will not last the night;
But ah, my foes, and oh, my friends -
It gives a lovely light!
EQ ----> DAoC ----> WoW ----> boredom
[fade]Over 1 million mezzed and counting .........[/fade]
My candle burns at both ends;
It will not last the night;
But ah, my foes, and oh, my friends -
It gives a lovely light!
- Rhiandra Rangnar
- Donkey Fucker
- Posts: 841
- Joined: Fri Feb 28, 2003 7:51 am
- Location: Over here, silly!
- Contact:
Nevermind: apparently this is the answer;
ioreg -c "IOPlatformExpertDevice" | awk '/IOPlatformSerialNumber/ {print $4}'
that returns the s/n
[confuses the heck out of me]
ioreg -c "IOPlatformExpertDevice" | awk '/IOPlatformSerialNumber/ {print $4}'
that returns the s/n
[confuses the heck out of me]
Rhiandra Rangnar
EQ ----> DAoC ----> WoW ----> boredom
[fade]Over 1 million mezzed and counting .........[/fade]
My candle burns at both ends;
It will not last the night;
But ah, my foes, and oh, my friends -
It gives a lovely light!
EQ ----> DAoC ----> WoW ----> boredom
[fade]Over 1 million mezzed and counting .........[/fade]
My candle burns at both ends;
It will not last the night;
But ah, my foes, and oh, my friends -
It gives a lovely light!
Return to “Tech. Monkey Board”
Who is online
Users browsing this forum: No registered users and 2 guests