What I use at my systems is: TYPE=`dmidecode |grep "Product Name:"|grep "[0-9].*"|head -n 1|cut -d ":" -f 2|cut -d " " -f 2` This provides for me on the systems I've tested one number that I can use for differentiate them: D1419: FSC TX200 D2239: FSC TX150S4 PRIMERGY: FSC TX150S5 1707Y8F: Lenovo X60 ProLiant: Compaq Proliant For me that works, as I'm only differentiating some machines from anothers, but if you've a look at the output, you can choose a better one that fits your needs :) Regards Pablo El mié, 30-04-2008 a las 09:32 +0100, Gerrard Geldenhuis escribió: > > > > Hi > > > > El mié, 30-04-2008 a las 09:25 +0100, Gerrard Geldenhuis escribió: > > <snip> > > > What would be an easy/simple way to differentiate between say an HP > > > DL360 G5 and an IBM xSeries 336 in the pre-script? > > > > dmidecode is your friend ;) > > > > Excellent! you don't perhaps have a small example lying around? ;-) > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/kickstart-list -- Pablo Iranzo Gómez (Pablo.Iranzo@xxxxxxxxxx) RHCE/Global Profesional Services Consultant Spain Phone: +34 645 01 01 49 (CET/CEST) GnuPG KeyID: 0xFAD3CF0D --- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Dirección Registrada: Red Hat S.L., C/ Velazquez 63, Madrid 28001, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941
Attachment:
signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente
_______________________________________________ Kickstart-list mailing list Kickstart-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/kickstart-list