Rename Mac to serial post imaging
Has anyone got a way to rename a mac to it's serial number as a post imaging task? Any info is much appreciated!
Dennis
Dennis
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
samislam
12 years ago
Posted by:
scottlutz
12 years ago
Posted by:
ddevore
12 years ago
Posted by:
scottlutz
12 years ago
Sam, I was not quite happy with the original results ans did some digging around. If you want to speed your script up, try this small change:
from: HOSTNAME=`system_profiler | grep "r (system)" | awk '{ print $4}'`
to: HOSTNAME=`system_profiler SPHardwareDataType | grep "r (system)" | awk '{ print $4}'`
When I ran %time on each one, I saw about a 90% performance increase.
HTH
from: HOSTNAME=`system_profiler | grep "r (system)" | awk '{ print $4}'`
to: HOSTNAME=`system_profiler SPHardwareDataType | grep "r (system)" | awk '{ print $4}'`
When I ran %time on each one, I saw about a 90% performance increase.
HTH
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.