Subject: Re: how to get lm sensor data?
To: paul <pkdb1@attbi.com>
From: Greywolf <greywolf@starwolf.com>
List: port-i386
Date: 02/09/2002 19:33:10
/dev/sysmon's not there?

cd /dev
sh MAKEDEV sysmon

On Sat, 9 Feb 2002, paul wrote:

# Date: Sat, 09 Feb 2002 19:15:36 -0800
# From: paul <pkdb1@attbi.com>
# To: port-i386@netbsd.org
# Subject: Re: how to get lm sensor data?
#
#
#
# Greywolf wrote:
# > You can also collect the data via envstat(8).
# >
# > On Fri, 8 Feb 2002, paul wrote:
# >
# > # excellent: thanks. lmmon is in the freebsd ports collection: not
# > # sure what the moral equivalent of it is in netbsd.
# >
#
# this doesn't seem to work: I start it and nothing happens.I don't
# have /dev/sysmon, if that makes a difference.
#
# the running kernel has lm0 and viaenv compiled in, as well.
#
# here's what ktruss output looks like . . . .
#
#    9615 ktruss   emul(netbsd)
#                   9615 ktruss   "/usr/libexec/ld.elf_so"
#   JUSTRETURN                     9615 envstat  emul(netbsd)
#                                                 9615 envstat
# __sysctl(0xbfbfd74c, 0x2, 0x4805d280, 0xbfbfd748, 0, 0) = 0
# 9615 envstat  mmap(0, 0x8000, 0x3, 0x1002, 0xffffffff, 0, 0, 0) =
# 1208344576
#    9615 envstat  geteuid                            = 501
#    9615 envstat  getuid                             = 501
#    9615 envstat  getegid                            = 100
#    9615 envstat  getgid                             = 100
#    9615 envstat  open("/etc/ld.so.conf", 0, 0x4805c5f4) = 3
#    9615 envstat  __fstat13(0x3, 0xbfbfd880)         = 0
#    9615 envstat  mmap(0, 0x37, 0x3, 0x2, 0x3, 0, 0, 0) = 1208377344
#    9615 envstat  close(0x3)                         = 0
#    9615 envstat  munmap(0x48066000, 0x37)           = 0
#    9615 envstat  __stat13("/usr/lib/libc.so.12", 0xbfbfd7e0) = 0
#    9615 envstat  open("/usr/lib/libc.so.12", 0, 0x4805c5f4) = 3
#    9615 envstat  read(0x3, 0xbfbfd7ac, 0x34)        = 52
#         "\^?ELF\^A\^A\^A\0\0\0\0\0\0\0\0\0\^C\0\^C\0\^A\0\0\0
# W\^A\0004\0\0\0"
#    9615 envstat  close(0x3)                         = 0
#    9615 envstat  open("/usr/lib/libc.so.12", 0, 0x4805c5f4) = 3
#    9615 envstat  __fstat13(0x3, 0xbfbfd81c)         = 0
#    9615 envstat  read(0x3, 0xbfbfc7f8, 0x1000)      = 4096
#    9615 envstat  mmap(0, 0x8b000, 0x5, 0x2, 0x3, 0, 0, 0) = 1208377344
#    9615 envstat  mmap(0x480e2000, 0x4000, 0x3, 0x12, 0x3, 0,
# 0x7b000, 0) = 1208885248
#    9615 envstat  mmap(0x480e6000, 0xb000, 0x3, 0x1012, 0xffffffff,
# 0, 0, 0) = 1208901632
#    9615 envstat  close(0x3)                         = 0
#
# I guess having sysmon would be a good start . . . .
#
#


				--*greywolf;
--
NetBSD: The power to Connect