Non ho trovato soluzioni native e bisogna usare smcFanSpeed. Il comando

/Applications/smcFanControl.app/Contents/Resources/smc -f

ritorna un elenco del tipo

Fan #0:
Actual speed : 998
Minimum speed: 1000
Maximum speed: 4350
Safe speed   : 0
Target speed : 1000
Mode         : auto

Fan #1:
Actual speed : 1098
Minimum speed: 1100
Maximum speed: 6300
Safe speed   : 0
Target speed : 1100
Mode         : auto

Fan #2:
Actual speed : 1199
Minimum speed: 1200
Maximum speed: 4000
Safe speed   : 0
Target speed : 1200
Mode         : auto

SI può usare awk per filtrare la riga interessata ( nel caso sotto prendo la Fan #1 )

/Applications/smcFanControl.app/Contents/Resources/smc -f | awk ‘/Actual/ { n++; if (n == 2) print $4; }’

Annunci