List Hardware Mac via Command Line

Di Linux ada perintah lshw untuk menampilkan daftar perangkat yang terpasang, seperti ini tampilannya :

ttirtawi@gbt733:~$ sudo lshw -short
[sudo] password for ttirtawi: 
H/W path       Device     Class       Description
=================================================
                          system      Lenovo ()
/0                        bus         Mariana
/0/0                      memory      107KiB BIOS
/0/4                      processor   Intel(R) Atom(TM) CPU N270   @ 1.60GHz
/0/4/5                    memory      64KiB L1 cache
/0/4/0.1                  processor   Logical CPU
/0/4/0.2                  processor   Logical CPU
/0/e                      memory      2560MiB System Memory
/0/e/0                    memory      512MiB DIMM DDR2 Synchronous 533 MHz (1.9 ns)
/0/e/1                    memory      2GiB DIMM DDR2 Synchronous 533 MHz (1.9 ns)
/0/1                      processor   Intel(R) Atom(TM) CPU N270   @ 1.60GHz
/0/1/0.1                  processor   Logical CPU
/0/1/0.2                  processor   Logical CPU
/0/100                    bridge      Mobile 945GSE Express Memory Controller Hub
/0/100/2                  display     Mobile 945GSE Express Integrated Graphics Controller
/0/100/2.1                display     Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller
/0/100/1b                 multimedia  NM10/ICH7 Family High Definition Audio Controller
/0/100/1c                 bridge      NM10/ICH7 Family PCI Express Port 1
/0/100/1c/0    eth0       network     NetLink BCM5906M Fast Ethernet PCI Express
/0/100/1c.1               bridge      NM10/ICH7 Family PCI Express Port 2
/0/100/1c.2               bridge      NM10/ICH7 Family PCI Express Port 3
/0/100/1c.2/0  eth1       network     BCM4312 802.11b/g LP-PHY
/0/100/1d                 bus         NM10/ICH7 Family USB UHCI Controller #1
/0/100/1d.1               bus         NM10/ICH7 Family USB UHCI Controller #2
/0/100/1d.2               bus         NM10/ICH7 Family USB UHCI Controller #3
/0/100/1d.3               bus         NM10/ICH7 Family USB UHCI Controller #4
/0/100/1d.7               bus         NM10/ICH7 Family USB2 EHCI Controller
/0/100/1e                 bridge      82801 Mobile PCI Bridge
/0/100/1f                 bridge      82801GBM (ICH7-M) LPC Interface Bridge
/0/100/1f.2               storage     82801GBM/GHM (ICH7-M Family) SATA Controller [IDE mode]
/0/100/1f.3               bus         NM10/ICH7 Family SMBus Controller
/0/2           scsi0      storage     
/0/2/0.0.0     /dev/sda   disk        80GB Hitachi HTS54328
/0/2/0.0.0/1   /dev/sda1  volume      11GiB EXT3 volume
/0/2/0.0.0/3   /dev/sda3  volume      972MiB Linux swap volume
/0/2/0.0.0/4   /dev/sda4  volume      61GiB EXT4 volume
/0/3           scsi2      storage     
/0/3/0.0.0     /dev/sdb   disk        1TB SCSI Disk
/0/3/0.0.0/1   /dev/sdb1  volume      931GiB EXT4 volume
/0/5           scsi3      storage     
/0/5/0.0.0     /dev/sdc   disk        SCSI Disk
ttirtawi@gbt733:~$ 

Di Mac saya baru tahu ada perintah system_profiler yang sama fungsinya seperti lshw. Misalnya untuk menampilkan ringkasan perangkat keras Mac kita bisa menggunakan perintah seperti ini :

ttirtawi@macbook-air:~$ system_profiler SPHardwareDataType
Hardware:

    Hardware Overview:

      Model Name: MacBook Air
      Model Identifier: MacBookAir5,1
      Processor Name: Intel Core i5
      Processor Speed: 1.7 GHz
      Number of Processors: 1
      Total Number of Cores: 2
      L2 Cache (per Core): 256 KB
      L3 Cache: 3 MB
      Memory: 4 GB
      Boot ROM Version: MBA51.00EF.B02
      SMC Version (system): 2.4f17
      Serial Number (system): C02HRDWUDRV7
      Hardware UUID: CBAEA018-C28C-5BAA-861F-D01CF05E141D

ttirtawi@macbook-air:~$ 

Atau untuk menampilkan daftar yang lebih lengkap bisa dipakai perintah ini :

ttirtawi@macbook-air:~$ system_profiler -detailLevel mini
Audio:

    Intel High Definition Audio:

      Audio ID: 85

        Headphone:

          Connection: Combination Output

        Speaker:

          Connection: Internal

        Internal Microphone:

          Connection: Internal

        External Microphone / iPhone Headset:

          Connection: Combination Output

        HDMI / DisplayPort Output:

          Connection: Display

    Devices:

        Built-in Microphone:

          Default Input Device: Yes
          Input Channels: 2
          Manufacturer: Apple Inc.
          Current SampleRate: 44100
          Transport: Built-in

        Built-in Output:

          Default Output Device: Yes
          Default System Output Device: Yes
          Manufacturer: Apple Inc.
          Output Channels: 2
          Current SampleRate: 44100
          Transport: Built-in

        LogMeInSoundDriver:

          Input Channels: 2
          Manufacturer: LogMeIn, Inc.
          Output Channels: 2
          Current SampleRate: 44100
          Transport: Unknown

        Soundflower (2ch):

          Input Channels: 2
          Manufacturer: ma++ ingalls for Cycling '74
          Output Channels: 2
          Current SampleRate: 44100
          Transport: Unknown

        Soundflower (64ch):

          Input Channels: 64
          Manufacturer: ma++ ingalls for Cycling '74
          Output Channels: 64
          Current SampleRate: 44100
          Transport: Unknown

Bluetooth:

      Apple Bluetooth Software Version: 4.1.3f3 11349
      Hardware Settings:
          Manufacturer: Broadcom
          Firmware Version: v100 c5052
          Vendor ID: 0x5ac
          Product ID: 0x821f
      Devices (Paired, Favorites, etc):
          Tedy Tirtawidjaja’s Keyboard:
              Type: Keyboard
              Firmware Version: 0x50
              Services: Apple Wireless Keyboard
              Manufacturer: Apple (0x3, 0x31c)
              Vendor ID: 0x5ac
              Product ID: 0x255
              EDR Supported: No
              eSCO Supported: No
          Tedy Tirtawidjaja’s Trackpad:
              Type: Trackpad
              Firmware Version: 0x160
              Services: Apple Wireless Trackpad
              Manufacturer: Apple (0x3, 0x31c)
              Vendor ID: 0x5ac
              Product ID: 0x30e
              EDR Supported: No
              eSCO Supported: No
          Apple Magic Mouse:
              Type: Mouse
              Firmware Version: 0x306
              Services: Apple Magic Mouse
              Manufacturer: Apple (0x3, 0x31c)
              Vendor ID: 0x5ac
              Product ID: 0x30d
              EDR Supported: No
              eSCO Supported: No

Diagnostics:

    Power On Self-Test:

      Last Run: 3/18/13 5:35 PM
      Result: Passed

Graphics/Displays:

    Intel HD Graphics 4000:

      Chipset Model: Intel HD Graphics 4000
      Type: GPU
      Bus: Built-In
      VRAM (Total): 512 MB
      Vendor: Intel (0x8086)
      Device ID: 0x0166
      Revision ID: 0x0009
      Displays:
        HP x2301:
          Resolution: 1920 x 1080 @ 60 Hz
          Pixel Depth: 32-Bit Color (ARGB8888)
          Display Serial Number: 3CM223011Y  
          Main Display: Yes
          Mirror: Off
          Online: Yes
          Rotation: Supported

Hardware:

    Hardware Overview:

      Model Name: MacBook Air
      Model Identifier: MacBookAir5,1
      Processor Name: Intel Core i5
      Processor Speed: 1.7 GHz
      Number of Processors: 1
      Total Number of Cores: 2
      L2 Cache (per Core): 256 KB
      L3 Cache: 3 MB
      Memory: 4 GB
      Boot ROM Version: MBA51.00EF.B02
      SMC Version (system): 2.4f17

Memory:

    Memory Slots:

      ECC: Disabled

        BANK 0/DIMM0:

          Size: 2 GB
          Type: DDR3
          Speed: 1600 MHz
          Status: OK
          Manufacturer: 0x80AD
          Part Number: 0x484D54333235533643465238412D50422020

        BANK 1/DIMM0:

          Size: 2 GB
          Type: DDR3
          Speed: 1600 MHz
          Status: OK
          Manufacturer: 0x80AD
          Part Number: 0x484D54333235533643465238412D50422020

Network:

    Wi-Fi:

      Type: AirPort
      Hardware: AirPort
      BSD Device Name: en0
      Has IP Assigned: Yes
      Service Order: 2


...
...
...
...
...

Leave a Reply