PDA

View Full Version : retrieve serial number of box to set as hostname



isalinas
02-12-2004, 08:37 PM
Does anyone know how i can retrieve the serialn number of my cpu and set it as my hostname for my knoppix cd?

EL Henry
02-14-2004, 06:42 AM
Hello ---

I believe you can only do that on Coppermine Intel.

huhl
09-13-2004, 05:46 PM
Or perhaps tie the box's identity to the NIC's MAC address. If there is more than one NIC, use any, all, or lowest/highest.

If use all:

If the group of MAC's is an already know group, then box ID matches the group.

If there is a new MAC(s) not otherwise known, just add it to the group.

If a MAC is missing, seek group on what is known.

If MACs from multiple groups are present as user to select group/ID

probono
09-19-2004, 01:17 AM
You can get the MAC address with:


ifconfig eth0 | grep Ethernet

You can set the hostname with:

hostname whatevernameyouwant