ブログ - istatsを入れて見た
MacBook Pro 13インチ 2011年モデルをサーバに仕立てようとしているのだけれど,そのためにマシンの各種温度を取得しようとiStatsをインストールして見た.
バッテリサイクルが40回なのか.ありがたい.
詳細を取得するのはこれ.
とても時間がかかるのは昔と変わらず.
ヘルプを表示.
個別に情報を取って見る.
値だけ欲しい場合は,--value-onlyを使えば良い.
$ sudo gem install iStats -n /usr/local/bin🆑
Password:🔑
Fetching: parseconfig-1.0.8.gem (100%)
Successfully installed parseconfig-1.0.8
Fetching: sparkr-0.4.1.gem (100%)
Successfully installed sparkr-0.4.1
Fetching: iStats-1.6.1.gem (100%)
Building native extensions. This could take a while...
Successfully installed iStats-1.6.1
Parsing documentation for parseconfig-1.0.8
Installing ri documentation for parseconfig-1.0.8
Parsing documentation for sparkr-0.4.1
Installing ri documentation for sparkr-0.4.1
Parsing documentation for iStats-1.6.1
Installing ri documentation for iStats-1.6.1
Done installing documentation for parseconfig, sparkr, iStats after 0 seconds
3 gems installed
$
$ /usr/local/bin/istats all🆑
-bash: usr/local/bin/istats: No such file or directory
[gaia:server 23:40:58 ~ ]
$ /usr/local/bin/istats all
--- CPU Stats ---
CPU temp: 48.13°C ▁▂▃▅▆▇
--- Fan Stats ---
Total fans in system: 1
Fan 0 speed: 2004 RPM ▁▂▃▅▆▇
--- Battery Stats ---
Battery health: Good
Cycle count: 40 ▁▂▃▅▆▇ 4.0%
Max cycles: 1000
Current charge: 5290 mAh ▁▂▃▅▆▇ 97%
Maximum charge: 5455 mAh ▁▂▃▅▆▇ 94.5%
Design capacity: 5770 mAh
Battery temp: 28.3°C
For more stats run `istats extra` and follow the instructions.
$
詳細を取得するのはこれ.
$ istats scan
No config file /Users/server/.iStats/sensors.conf found .. Run scan
Scanning keys...
Th1H NB/CPU/GPU HeatPipe 1 Proximity: 40.88°C ▁▂▃▅▆▇
Ts0P Palm rest L: 28.31°C ▁▂▃▅▆▇
Ts0S Memory Bank Proximity: 36.63°C ▁▂▃▅▆▇
TB0T Battery TS_MAX: 27.59°C ▁▂▃▅▆▇
TB1T Battery 1: 27.59°C ▁▂▃▅▆▇
TB2T Battery 2: 28.0°C ▁▂▃▅▆▇
TCGC PECI GPU: 64.0°C ▁▂▃▅▆▇
TCSA PECI SA: 69.0°C ▁▂▃▅▆▇
TCTD Unknown: 0.27°C ▁▂▃▅▆▇
TC0C CPU 0 Core: 69.69°C ▁▂▃▅▆▇
TC0D CPU 0 Die: 68.5°C ▁▂▃▅▆▇
TC0E CPU 0 ??: 62.94°C ▁▂▃▅▆▇
TC0F CPU 0 ??: 67.25°C ▁▂▃▅▆▇
TC0J CPU 0 ??: 3.31°C ▁▂▃▅▆▇
TC0P CPU 0 Proximity: 58.5°C ▁▂▃▅▆▇
TC1C Core 1: 71.0°C ▁▂▃▅▆▇
TC2C Core 2: 71.0°C ▁▂▃▅▆▇
TM0P Memory Slot Proximity: 39.13°C ▁▂▃▅▆▇
TM0S Memory Slot 1: 48.17°C ▁▂▃▅▆▇
TPCD Platform Controller Hub Die: 53.0°C ▁▂▃▅▆▇
TP0P Unknown: 45.88°C ▁▂▃▅▆▇
TW0P AirPort Proximity: -127.0°C ▁▂▃▅▆▇
Done scanning keys.
All keys are disabled by default. Use `istats enable [key]` to enable specific keys or `istats enable all`.
The enabled sensors will show up when running `istats` or `istats extra`.
$
ヘルプを表示.
$ /usr/local/bin/istats -h🆑
- iStats: help ---------------------------------------------------
istats --help This help text
istats --version Print current version
# Commands
istats all Print all stats
istats cpu Print all CPU stats
istats cpu [temp | temperature] Print CPU temperature
istats fan Print all fan stats
istats fan [speed] Print fan speed
istats battery Print all battery stats
istats battery [health] Print battery health
istats battery [time | remain] Print battery time remaining
istats battery [cycle_count | cc] Print battery cycle count info
istats battery [temp | temperature] Print battery temperature
istats battery [charge] Print battery charge
istats battery [capacity] Print battery capacity info
istats scan Scans and print temperatures
istats scan [key] Print single SMC temperature key
istats scan [zabbix] JSON output for Zabbix discovery
istats enable [key | all] Enables key
istats disable [key | all] Disable key
istats list List available keys
# Arguments
--no-graphs Don't display sparklines graphs
--no-labels Don't display item names/labels
--no-scale Display just the stat value
--value-only No graph, label, or scale
-f, --fahrenheit Display temperatures in fahrenheit
for more help see: https://github.com/Chris911/iStats
$
$ /usr/local/bin/istats fan
Total fans in system: 1
Fan 0 speed: 1999 RPM ▁▂▃▅▆▇
[gaia:server 23:54:47 ~ ]
$ /usr/local/bin/istats cpu
CPU temp: 48.5°C ▁▂▃▅▆▇
[gaia:server 23:55:00 ~ ]
$ /usr/local/bin/istats battery
Battery health: Good
Cycle count: 40 ▁▂▃▅▆▇ 4.0%
Max cycles: 1000
Current charge: 5289 mAh ▁▂▃▅▆▇ 97%
Maximum charge: 5455 mAh ▁▂▃▅▆▇ 94.5%
Design capacity: 5770 mAh
Battery temp: 30.39°C
$
$ /usr/local/bin/istats cpu --value-only
48.5
$