Hello,
Chose promise, chose due. Voici le petit script pour lequel j'ai
sollicité la liste il y a quelques jours.
Il permet de récupérer le serial number de la machine et les
différentes MAC address pour le bluetooth, l'Airport et l'ethernet.
Merci à Alain pour le squelette du script et à Patrick pour son aide
sur grep, awk et autres joyeusetés.
Bien évidement, les commentaires ou suggestions sont bienvenus.
Franck
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Pour le downloader :
http://homepage.mac.com/franck.tournant/fga/scripts/cpu_info.sh.zip
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Infos sur le script :
Usage:
cpu_info.sh [-h] | [-s] [-b] [-a] [-e]
where:
-h: prints this help then exit
-s: return the hardware serial number of the cpu
-b: return the MAC address of bluetooth port
-a: return the MAC address of Aiport port
-e: return the MAC address of en0 ethernet port
info:
Whatever the order of the parameters, the results given are always in
the
the same order : first serial, then bluetooth, Airport and finally
ethernet MAC addresses. If only some parameters are used, the same
order
is used.
_______________________________________________
archives :
http://listes.patpro.net/list/sshfr.fr.html
http://listes.patpro.net/mailman/listinfo/script_shell_fr