Mac で Device-ID、Model-ID、Board-ID、ハードウェア概要 を 調べるコマンドたち
-
Device-ID(Intel Macのみ)
/usr/libexec/remotectl get-property localbridge HWModel
使用例user@MacBookPro ~ $ /usr/libexec/remotectl get-property localbridge HWModel J132AP
-
Model-ID(Appleシリコン可)
sysctl hw.model
使用例user@MacBookPro ~ $ sysctl hw.model hw.model: MacBookPro15,2
-
Board-ID(Intel Macのみ)
ioreg -l | grep -i board-id
使用例user@MacBookPro ~ $ ioreg -l | grep -i board-id | "board-id" = <"Mac-827FB448E656EC26">
-
ハードウェア概要(Appleシリコン可)
system_profiler SPHardwareDataType
使用例 (Intel Mac)user@MacBookPro ~ $ system_profiler SPHardwareDataType Hardware: Hardware Overview: Model Name: MacBook Pro Model Identifier: MacBookPro15,2 Processor Name: Quad-Core Intel Core i5 Processor Speed: 2.4 GHz Number of Processors: 1 Total Number of Cores: 4 L2 Cache (per Core): 256 KB L3 Cache: 6 MB Hyper-Threading Technology: Enabled Memory: 8 GB System Firmware Version: 2069.0.0.0.0 (iBridge: 22.16.10353.0.0,0) OS Loader Version: 582~1023 Serial Number (system): C@2@Q@@@L@D@ Hardware UUID: 8@1@6@B@-3@F@-5@5@-B@3@-A@A@3@C@C@F@ Provisioning UDID: 8@1@6@B@-3@F@-5@5@-B@3@-A@A@3@C@C@F@ Activation Lock Status: Enabled
使用例 (Apple silicon)user@Macmini ~ $ system_profiler SPHardwareDataType Hardware: Hardware Overview: Model Name: Mac mini Model Identifier: Macmini9,1 Model Number: G12P5J/A Chip: Apple M1 Total Number of Cores: 8 (4 performance and 4 efficiency) Memory: 16 GB System Firmware Version: 10151.140.19 OS Loader Version: 10151.140.19 Serial Number (system): C@7@2@@@Q@P@ Hardware UUID: B@A@5@5@-4@9@-5@6@-9@1@-4@E@0@B@E@A@ Provisioning UDID: 0@0@8@0@-0@0@5@6@3@3@0@1@ Activation Lock Status: Enabled
- 参考
以上