Dan Langille on Nostr: Get your CPU temperatures! Get them while they're hot! % cat ...
Get your CPU temperatures! Get them while they're hot!
% cat ~dvl/bin/snmp-cpu-temperature.sh
#!/bin/sh
for index in $(jot - 0 $(expr $(sysctl -n kern.smp.cpus) - 1))
do
sysctl -n dev.cpu.$index.temperature | awk '{gsub("C",""); print}'
done%
#FreeBSD
Published at
2024-12-12 02:30:41Event JSON
{
"id": "aa8583b8fb8179829552665c41b3a7d489a3f5f308cc8ec7f68ae00c517c6eb7",
"pubkey": "ecfd4e70abb7b56fe5ff47fdb84e9946d76697b983351c066871a4117a5d0aab",
"created_at": 1733970641,
"kind": 1,
"tags": [
[
"t",
"freebsd"
],
[
"proxy",
"https://bsd.network/users/dvl/statuses/113637499951143848",
"activitypub"
]
],
"content": "Get your CPU temperatures! Get them while they're hot!\n\n% cat ~dvl/bin/snmp-cpu-temperature.sh\n#!/bin/sh\n\nfor index in $(jot - 0 $(expr $(sysctl -n kern.smp.cpus) - 1))\ndo\nsysctl -n dev.cpu.$index.temperature | awk '{gsub(\"C\",\"\"); print}'\ndone%\n\n#FreeBSD",
"sig": "5c51d1e1a6dee0bdb50865e9a551394637094e03dc0df7806020ce2224c69b9707393598da4140b3eef89be3978d61a260a30cefcb3f05d9b6bfbe8add349611"
}