ブログ - osx-cpu-temp
これから夏に向けて,CPU温度が気になる季節.コマンドでCPU温度を取得できるというので,osx-cpu-tempというソフトをHomeBrewでインストールして使ってみた.
まーまーダウンロードされている模様.依存関係はない模様.さくっとインストール.
いつものようにパスを確認.
実行してみる.
これまではmacで作ったサーバはTemperature Monitorのコマンドラインを使っていたけれど,CPUだけならこれで良いのかなぁ.
他に何のステータスが取れるか確認.
ファンの回転数が取れるのは良いね.
$ brew info osx-cpu-temp🆑
osx-cpu-temp: stable 1.1.0 (bottled)
Outputs current CPU temperature for OSX
https://github.com/lavoiesl/osx-cpu-temp
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/osx-cpu-temp.rb
==> Analytics
install: 113 (30 days), 289 (90 days), 660 (365 days)
install_on_request: 111 (30 days), 283 (90 days), 643 (365 days)
build_error: 0 (30 days)
$
$ brew install osx-cpu-temp🆑
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/osx-cpu-temp-1.1.0.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring osx-cpu-temp-1.1.0.high_sierra.bottle.tar.gz
🍺 /usr/local/Cellar/osx-cpu-temp/1.1.0: 4 files, 15.9KB
$
$ which osx-cpu-temp🆑
/usr/local/bin/osx-cpu-temp
$
$ osx-cpu-temp🆑
63.6°C
$
他に何のステータスが取れるか確認.
$ osx-cpu-temp -h🆑
usage: osx-cpu-temp <options>
Options:
-F Display temperatures in degrees Fahrenheit.
-C Display temperatures in degrees Celsius (Default).
-c Display CPU temperature (Default).
-g Display GPU temperature.
-f Display fan speeds.
-h Display this help.
If more than one of -c, -f, or -g are specified, titles will be added
$