Translated from Türkçe by AI ·
Last term, while compiling an inventory of the Pis in the lab, I had searched for this same list.Prefixes I know: B8:27:EB for older Pis (including Pi 3), DC:A6:32, E4:5F:01, 28:CD:C1, D8:3A:DD and 2C:CF:67 for newer models. A new prefix may have been added, so look up the manufacturer in the IEEE’s public OUI list to check. As Derya said, the Ethernet and Wi-Fi MACs of the same Pi differ, but both usually share the same prefix.A more reliable approach is to have the Pi report its MAC itself: cat /sys/class/net/wlan0/address. If a script prints this somewhere on first boot, you won’t need to guess.On the Hermetry side, the import accepts a mac column and stores it in the device’s extra information. Example:
name,label,profile,mac,attr:daire
d-01,Daire 1,Ev Pi,dc:a6:32:1a:2b:3c,1
d-02,Daire 2,Ev Pi,e4:5f:01:4d:5e:6f,2
Never put a token in the file; it already rejects columns that look like secrets. The import runs a check first and then applies. The access tokens of new devices are provided in a single file, which can be downloaded only once, within 15 minutes after the import. If you miss it, get a new one from the device page with Rotate secret.Bulk importing devices
Geçen dönem laboratuvardaki Pi’lerin envanterini çıkarırken aynı listeyi aramıştım.
Bildiğim önekler: B8:27:EB eski Pi’ler (Pi 3 dahil), DC:A6:32, E4:5F:01, 28:CD:C1, D8:3A:DD ve 2C:CF:67 daha yeni modeller. Yeni önek eklenmiş olabilir, IEEE’nin herkese açık OUI listesinde üreticiyi aratıp kontrol et. Derya’nın dediği gibi aynı Pi’nin Ethernet ve Wi-Fi MAC’i farklı, ama ikisi de genelde aynı önekten.
Daha sağlamı Pi’nin MAC’i kendisinin söylemesi: cat /sys/class/net/wlan0/address. İlk açılışta bir betikle bunu bir yere yazdırırsan tahmine gerek kalmaz.
Hermetry tarafında içe aktarma mac sütununu kabul ediyor, cihazın ek bilgilerinde tutuluyor. Örnek:
name,label,profile,mac,attr:daire
d-01,Daire 1,Ev Pi,dc:a6:32:1a:2b:3c,1
d-02,Daire 2,Ev Pi,e4:5f:01:4d:5e:6f,2
Dosyaya asla token koyma, gizli bilgi gibi görünen sütunları zaten reddediyor. İçe aktarma önce bir kontrol yapıyor, sonra uyguluyor. Yeni cihazların erişim token’larını tek bir dosyada veriyor, o dosya içe aktarmadan sonra 15 dakika içinde ve bir kez indirilebiliyor. Kaçırırsan cihaz sayfasından Rotate secret ile yenisini alıyorsun.

