From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dave Simmonds Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: get_info system call Date: Fri, 15 Oct 2004 13:34:20 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <001b01c4b2b3$4c5c6430$0301a8c0@lhd.fortel.com> Reply-To: Dave.Simmonds@pawis.com NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1097843484 17011 80.91.229.6 (15 Oct 2004 12:31:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Oct 2004 12:31:24 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Oct 15 14:31:09 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1CIREi-0000j8-00 for ; Fri, 15 Oct 2004 14:31:09 +0200 Original-Received: (qmail 25052 invoked by uid 5); 15 Oct 2004 12:30:29 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 25037 invoked by uid 49501); 15 Oct 2004 12:30:29 -0000 Original-Received: from Dave.Simmonds@pawis.com by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.86.17):SA:0(-4.9/5.0):. Processed in 0.745171 secs); 15 Oct 2004 12:30:29 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 15 Oct 2004 12:30:28 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I5M00HXKLEMNN@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 15 Oct 2004 08:30:27 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute2.cind.ornl.gov by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0I5M00C02LE5VF@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 15 Oct 2004 08:30:12 -0400 (EDT) Original-Received: from crichton.netkonect.net (crichton.netkonect.co.uk [194.62.44.62]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I5M007GHLE0V7@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 15 Oct 2004 08:30:05 -0400 (EDT) Original-Received: from klingon.netkonect.net (crichton.netkonect.net [194.62.44.62]) by crichton.netkonect.net (Postfix) with ESMTP id 0734515A00 for ; Fri, 15 Oct 2004 13:29:59 +0100 (BST) Original-Received: from dsimmonds ([194.164.233.24]) by klingon.netkonect.net (8.12.10/8.12.10) with SMTP id i9FCTwUp013096 for ; Fri, 15 Oct 2004 13:29:58 +0100 (BST) In-reply-to: Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal X-Envelope-From: X-ORNL-Envelope-To: tru64-unix-managers@sws1.ctd.ornl.gov rfc822;tru64-unix-managers@ornl.gov Xref: main.gmane.org gmane.os.tru64.managers:7668 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:7668 I got quite a few responses - Thanks guys! Didn't manage to find out how to get at get_info. It's in the kernel, and I even tried dlopen'ing that, but it wouldn't let me. You can do that on AIX. Best solution was to use cfg_subsys_query. The temperature is also obtainable with sysconfig -q envmon, but I wanted to do it from within a C program (efficiently!) Dave -----Original Message----- From: Dave Simmonds [mailto:Dave.Simmonds@pawis.com] Sent: 14 October 2004 16:00 To: 'tru64-unix-managers@ornl.gov' Subject: get_info system call Hi, I wanted to use the get_info system call (specifically to get the system temperature). Presumably it's in a library somewhere. Does anyone know which library to link against? Or do I have to load another development kit? Any pointers in the right direction would be appreciated. Thanks, Dave Simmonds