From owner-freebsd-questions@FreeBSD.ORG Mon Dec 8 13:05:32 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7B02106564A for ; Mon, 8 Dec 2008 13:05:32 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id 580D18FC12 for ; Mon, 8 Dec 2008 13:05:32 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so549857nfh.33 for ; Mon, 08 Dec 2008 05:05:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date :user-agent:mime-version:content-type:content-transfer-encoding :content-disposition:message-id; bh=oaZXrV/M+16op6BXwgEucIs4cPqNLWXpXw8R5elncEs=; b=T1CEm9GEz9wiBMWjPWpAiu9hUtF7iuWl3x3oFF2xjs2NQ7kyXzrL7++dlFZuBdjTEz DzqjXgU/qKLfZ0UK6BJMGwNSwZ0DItuCWXlA6p86NG8hv0m4J5zN4Uzk6zLSsFS8sXkU yh1X96SdhGPcXQRbhTjJiP3o8FZvsz2ku+E5o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; b=gGQjaLfcbl+XEbRAPjY+2rhTX2utd56ynx+SyyYRfNHSeqUVfayyHP0hGk7BC0EYcV 2nnj6Huino4cD4u5DgQFNXAJmb5TMb8nZ/V2GPdRSgaDHtKfYuOIO8j9UlkUJSTWS1Ck SU5eTd7dl6547NVXZotaTdg2pDYAZPlunxMog= Received: by 10.210.65.17 with SMTP id n17mr3581967eba.76.1228741531148; Mon, 08 Dec 2008 05:05:31 -0800 (PST) Received: from oleg.net.nevosoft.ru ([195.182.128.54]) by mx.google.com with ESMTPS id 20sm3859551eyc.38.2008.12.08.05.05.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 08 Dec 2008 05:05:30 -0800 (PST) From: Ole To: freebsd-questions@freebsd.org Date: Mon, 8 Dec 2008 16:05:21 +0300 User-Agent: KMail/1.10.1 (FreeBSD/7.1-PRERELEASE; KDE/4.1.1; i386; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812081605.22371.subbsd@gmail.com> Subject: source data for host CPU temperature X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: subbsd@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2008 13:05:32 -0000 Hello maillist, Whether there is a unique, a general method of fetching of statistics on CPU temperature in FreeBSD. The general method - is available in view of excluding vendor-specific healh-agents with their vendors lock-in API. As i know some way for this: smb(4) (for old PC?), coretemp(4) (this is for new and only Intel hardware ?) and ipmi(4) if available, so each machine customize for temp statistics throuch individual setup for source data? And it is necessary to prefer what data if it is some given. For example 2 commands on host give diffrent result: (With 'ipmitool sensor |grep -i temp) -- Ambient Temp | 26.000 | degrees C | ok | na | na | na | 32.000 | na | 39.000 CPU 1 Temp | na | degrees C | na | na | 74.000 | -128.000 | -48.000 | na | na CPU 2 Temp | na | degrees C | na | na | 74.000 | -128.000 | -48.000 | na | na CPU 1 OverTemp | 0x0 | discrete | 0x0080| na | na | na | na | na | na CPU 2 OverTemp | 0x0 | discrete | 0x0080| na | na | na | na | na | na -- << i get 74C on my CPU1 and CPU2 (with coretemp(4) i get individual per-core sensor) % sysctl -a |egrep -E "cpu\.[0-9]+\.temp" dev.cpu.0.temperature: 38 dev.cpu.1.temperature: 45 dev.cpu.2.temperature: 42 dev.cpu.3.temperature: 69 ipmi/coretemp facility is fetching information for CPU from diffrent sensors? And how much correctly with coretemp(4) to receive the general temperature (one number as in Bios) if average(sum(core temperature)) / (num of core) ? Thanks in advance!