Article
1564
PROBLEM:
How to automatically set the hostname of a workstation to the machines serial number for SLED 10.
This is very handy if you are rolling out SLED 10 within your company and want to have a naming standard for all of your workstations. By setting the hostname to the serial number of the machine you are also making it easier for the help desk to identify what machine a particular person is calling in about.
SOLUTION:
Login as root and from the console type:
dmidecode | grep "Serial Number" | head -n1 | sed -e 's/\tSerial Number: //g' > /etc/HOSTNAME
Note: For SUSE 10 (not SLED 10) type:
dmidecode | grep "Serial Number" | head -n1 | sed -e 's/\t\tSerial Number: //g' > /etc/HOSTNAME
The next time the workstation is rebooted, the hostname will now be the serial number.
Related Articles
- How to Load a Linux Driver Manually in a ZENworks Imaging environment
- Manually loading undetected Broadcom network modules within ZENworks Imaging
- Determining Total System RAM for Use in ZENworks Imaging Scripts
- Change language and keyboard layout to German in ZENworks Imaging
- Controlling the Power Settings in Local User Accounts





0