Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

CPU sensor reading progrm in OEL 5.3

661723Sep 7 2009 — edited Sep 14 2009
where is a sensor reading program to measure CPU temp in oel 5?is there any available for this?

Edited by: mango_boy on Sep 7, 2009 9:43 AM

Comments

684264
[kido@kido ~]$ which sensors
/usr/local/bin/sensors
Make sure you run 'sensors-detect' first.

kido
661723
no such file or directory
what to do?
684264
[kido@kido ~]$ rpm -qa|grep sensors
lm_sensors-2.10.7-4.el5
[kido@kido ~]$ 
If this query returns nothing for you, then you need to install lm_sensors rpm.

kido
661723
sorry i miss-spelled sensors as sensor
[root@localhost ~]# /usr/bin/sensors
Can't access procfs/sysfs file
Unable to find i2c bus information;
For 2.6 kernels, make sure you have mounted sysfs and libsensors
was compiled with sysfs support!
For older kernels, make sure you have done 'modprobe i2c-proc'!
its not giving any temparature related informations what to do then?

Edited by: mango_boy on Sep 7, 2009 11:55 AM
661723
[root@localhost ~]# grep sysfs /etc/mtab
sysfs /sys sysfs rw 0 0
[root@localhost ~]# lsmod
Module                  Size  Used by
vfat                   46401  1 
fat                    85873  1 vfat
usb_storage           116769  1 
netloop                40129  0 
netbk                 129153  0 [permanent]
blktap                148709  2 [permanent]
blkbk                  54009  0 [permanent]
ipt_MASQUERADE         36801  1 
iptable_nat            40773  1 
ip_nat                 53101  2 ipt_MASQUERADE,iptable_nat
bridge                 91889  0 
autofs4                57289  2 
hidp                   83521  2 
rfcomm                104809  0 
l2cap                  89281  10 hidp,rfcomm
bluetooth             118597  5 hidp,rfcomm,l2cap
sunrpc                197769  1 
ip_conntrack_ftp       41489  0 
ip_conntrack_netbios_ns    36033  0 
ipt_REJECT             38849  3 
xt_state               35265  13 
ip_conntrack           91237  6 ipt_MASQUERADE,iptable_nat,ip_nat,ip_conntrack_ftp,ip_conntrack_netbios_ns,xt_state
nfnetlink              40457  2 ip_nat,ip_conntrack
iptable_filter         36161  1 
ip_tables              55329  2 iptable_nat,iptable_filter
ip6t_REJECT            38849  1 
xt_tcpudp              36417  34 
ip6table_filter        36033  1 
ip6_tables             50049  1 ip6table_filter
x_tables               50377  8 ipt_MASQUERADE,iptable_nat,ipt_REJECT,xt_state,ip_tables,ip6t_REJECT,xt_tcpudp,ip6_tables
ib_iser                66873  0 
libiscsi               63425  1 ib_iser
scsi_transport_iscsi    67153  2 ib_iser,libiscsi
ib_srp                 65033  0 
ib_sdp                114589  0 
ib_ipoib              112417  0 
rdma_ucm               47041  0 
ib_ucm                 50633  0 
ib_uverbs              68849  2 rdma_ucm,ib_ucm
ib_umad                50665  0 
rdma_cm                67285  3 ib_iser,ib_sdp,rdma_ucm
ib_cm                  67561  4 ib_srp,ib_ipoib,ib_ucm,rdma_cm
iw_cm                  43465  1 rdma_cm
ib_addr                41929  1 rdma_cm
ib_sa                  74569  4 ib_srp,ib_ipoib,rdma_cm,ib_cm
ib_mad                 70757  3 ib_umad,ib_cm,ib_sa
ib_core                92609  13 ib_iser,ib_srp,ib_sdp,ib_ipoib,rdma_ucm,ib_ucm,ib_uverbs,ib_umad,rdma_cm,ib_cm,iw_cm,ib_sa,ib_mad
ipv6                  420609  18 ip6t_REJECT,ib_ipoib
xfrm_nalgo             43845  1 ipv6
crypto_api             42177  1 xfrm_nalgo
dm_mirror              60745  0 
dm_multipath           52945  0 
dm_mod                 99864  2 dm_mirror,dm_multipath
video                  53197  0 
sbs                    49921  0 
backlight              39873  1 video
i2c_ec                 38593  1 sbs
button                 40545  0 
battery                43849  0 
asus_acpi              50917  0 
ac                     38729  0 
parport_pc             62313  0 
lp                     47121  0 
parport                73293  2 parport_pc,lp
sr_mod                 50789  0 
cdrom                  68713  1 sr_mod
floppy                 92905  0 
snd_hda_intel          55905  1 
snd_hda_codec         308929  1 snd_hda_intel
snd_seq_dummy          37061  0 
snd_seq_oss            65473  0 
snd_seq_midi_event     41025  1 snd_seq_oss
snd_seq                87905  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device         41557  3 snd_seq_dummy,snd_seq_oss,snd_seq
i2c_i801               41685  0 
snd_pcm_oss            77633  0 
i2c_core               56129  2 i2c_ec,i2c_i801
snd_mixer_oss          49985  1 snd_pcm_oss
pcspkr                 36289  0 
serio_raw              40517  0 
tulip                  85889  0 
snd_pcm               116809  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
sg                     69865  0 
shpchp                 70509  0 
snd_timer              57289  2 snd_seq,snd_pcm
snd                    96105  11 snd_hda_intel,snd_hda_codec,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore              41825  1 snd
snd_page_alloc         44113  2 snd_hda_intel,snd_pcm
serial_core            55233  0 
pata_marvell           41025  0 
ata_piix               54981  11 
libata                192217  2 pata_marvell,ata_piix
sd_mod                 56257  15 
scsi_mod              188793  9 usb_storage,ib_iser,libiscsi,scsi_transport_iscsi,ib_srp,sr_mod,sg,libata,sd_mod
ext3                  166993  10 
jbd                    93617  1 ext3
uhci_hcd               57561  0 
ohci_hcd               54621  0 
ehci_hcd               65869  0 
[root@localhost ~]# 
how to use it now?
Tommy.Reynolds-Oracle
Please read the documentation in the {font:Courier}/usr/share/doc/lm_sensors-*/{font} directory.
# /usr/sbin/sensors-detect
# /sbin/chkconfig lm_sensors on
# /sbin/service lm_sensors start
# /usr/bin/sensors
661723
# /sbin/service lm_sensors start
fails.
# sensors-detect revision 1.413 (2006/01/19 20:28:00)

This program will help you determine which I2C/SMBus modules you need to
load to use lm_sensors most effectively. You need to have i2c and
lm_sensors installed before running this program.
Also, you need to be `root', or at least have access to the /dev/i2c-*
files, for most things.
If you have patched your kernel and have some drivers built in, you can
safely answer NO if asked to load some modules. In this case, things may
seem a bit confusing, but they will still work.

It is generally safe and recommended to accept the default answers to all
questions, unless you know what you're doing.

 We can start with probing for (PCI) I2C or SMBus adapters.
 You do not need any special privileges for this.
 Do you want to probe now? (YES/no): yes
Probing for PCI bus adapters...
Sorry, no PCI bus adapters found.

We will now try to load each adapter module in turn.
If you have undetectable or unsupported adapters, you can have them
scanned by manually loading the modules before running this script.

 To continue, we need module `i2c-dev' to be loaded.
 If it is built-in into your kernel, you can safely skip this.
 i2c-dev is not loaded. Do you want to load it now? (YES/no): yes
 Module loaded succesfully.

 We are now going to do the adapter probings. Some adapters may hang halfway
 through; we can't really help that. Also, some chips will be double detected;
 we choose the one with the highest confidence value in that case.
 If you found that the adapter hung after probing a certain address, you can
 specify that address to remain unprobed. That often
 includes address 0x69 (clock chip).

Next adapter: SMBus I801 adapter at 1c20
Do you want to scan it? (YES/no/selectively): yes
Client found at address 0x08
Client found at address 0x30
Client found at address 0x32
Client found at address 0x44
Probing for `Maxim MAX6633/MAX6634/MAX6635'... Failed!
Client at address 0x50 can not be probed - unload all client drivers first!
Client at address 0x52 can not be probed - unload all client drivers first!
Client found at address 0x69

Some chips are also accessible through the ISA bus. ISA probes are
typically a bit more dangerous, as we have to write to I/O ports to do
this. This is usually safe though.

Do you want to scan the ISA bus? (YES/no): yes
Probing for `National Semiconductor LM78'
  Trying address 0x0290... Failed!
Probing for `National Semiconductor LM78-J'
  Trying address 0x0290... Failed!
Probing for `National Semiconductor LM79'
  Trying address 0x0290... Failed!
Probing for `Winbond W83781D'
  Trying address 0x0290... Failed!
Probing for `Winbond W83782D'
  Trying address 0x0290... Failed!
Probing for `Winbond W83627HF'
  Trying address 0x0290... Failed!
Probing for `Winbond W83627EHF'
  Trying address 0x0290... Failed!
Probing for `Silicon Integrated Systems SIS5595'
  Trying general detect... Failed!
Probing for `VIA Technologies VT82C686 Integrated Sensors'
  Trying general detect... Failed!
Probing for `VIA Technologies VT8231 Integrated Sensors'
  Trying general detect... Failed!
Probing for `ITE IT8712F'
  Trying address 0x0290... Failed!
Probing for `ITE IT8705F / SiS 950'
  Trying address 0x0290... Failed!
Probing for `IPMI BMC KCS'
  Trying address 0x0ca0... Failed!
Probing for `IPMI BMC SMIC'
  Trying address 0x0ca8... Failed!

Some Super I/O chips may also contain sensors. Super I/O probes are
typically a bit more dangerous, as we have to write to I/O ports to do
this. This is usually safe though.

Do you want to scan for Super I/O sensors? (YES/no): yes
Probing for `ITE 8702F Super IO Sensors'
  Failed! (0xf411)
Probing for `ITE 8705F Super IO Sensors'
  Failed! (0xf411)
Probing for `ITE 8712F Super IO Sensors'
  Failed! (0xf411)
Probing for `Nat. Semi. PC87351 Super IO Fan Sensors'
  Failed! (0xf4)
Probing for `Nat. Semi. PC87360 Super IO Fan Sensors'
  Failed! (0xf4)
Probing for `Nat. Semi. PC87363 Super IO Fan Sensors'
  Failed! (0xf4)
Probing for `Nat. Semi. PC87364 Super IO Fan Sensors'
  Failed! (0xf4)
Probing for `Nat. Semi. PC87365 Super IO Fan Sensors'
  Failed! (0xf4)
Probing for `Nat. Semi. PC87365 Super IO Voltage Sensors'
  Failed! (0xf4)
Probing for `Nat. Semi. PC87365 Super IO Thermal Sensors'
  Failed! (0xf4)
Probing for `Nat. Semi. PC87366 Super IO Fan Sensors'
  Failed! (0xf4)
Probing for `Nat. Semi. PC87366 Super IO Voltage Sensors'
  Failed! (0xf4)
Probing for `Nat. Semi. PC87366 Super IO Thermal Sensors'
  Failed! (0xf4)
Probing for `Nat. Semi. PC87372 Super IO Fan Sensors'
  Failed! (0xf4)
Probing for `Nat. Semi. PC87373 Super IO Fan Sensors'
  Failed! (0xf4)
Probing for `Nat. Semi. PC87591 Super IO'
  Failed! (0xf4)
Probing for `Nat. Semi. PC87371 Super IO'
  Failed! (0xf4)
Probing for `Nat. Semi. PC97371 Super IO'
  Failed! (0xf4)
Probing for `Nat. Semi. PC8739x Super IO'
  Failed! (0xf4)
Probing for `Nat. Semi. PC8741x Super IO'
  Failed! (0xf4)
Probing for `Nat. Semi. PCPC87427 Super IO'
  Failed! (0xf4)
Probing for `SMSC 47B27x Super IO Fan Sensors'
  Failed! (0xf4)
Probing for `SMSC 47M10x/13x Super IO Fan Sensors'
  Failed! (0xf4)
Probing for `SMSC 47M14x Super IO Fan Sensors'
  Failed! (0xf4)
Probing for `SMSC 47M15x/192/997 Super IO Fan Sensors'
  Failed! (0xf4)
Probing for `SMSC 47S42x Super IO Fan Sensors'
  Failed! (0xf4)
Probing for `SMSC 47S45x Super IO Fan Sensors'
  Failed! (0xf4)
Probing for `SMSC 47M172 Super IO'
  Failed! (0xf4)
Probing for `SMSC LPC47B397-NC Super IO'
  Failed! (0xf4)
Probing for `SMSC SCH5307-NS Super IO'
  Failed! (0xf4)
Probing for `VT1211 Super IO Sensors'
  Failed! (0xf4)
Probing for `Winbond W83627HF Super IO Sensors'
  Failed! (0xf4)
Probing for `Winbond W83627THF Super IO Sensors'
  Failed! (0xf4)
Probing for `Winbond W83637HF Super IO Sensors'
  Failed! (0xf4)
Probing for `Winbond W83687THF Super IO Sensors'
  Failed! (0xf4)
Probing for `Winbond W83697HF Super IO Sensors'
  Failed! (0xf4)
Probing for `Winbond W83697SF/UF Super IO PWM'
  Failed! (0xf4)
Probing for `Winbond W83L517D Super IO'
  Failed! (0xf4)
Probing for `Fintek F71805F/FG Super IO Sensors'
  Failed! (0xf411)
Probing for `Winbond W83627EHF/EHG Super IO Sensors'
  Failed! (0xf411)

Do you want to scan for secondary Super I/O sensors? (YES/no): no

 Sorry, no chips were detected.
 Either your sensors are not supported, or they are
 connected to an I2C bus adapter that we do not support.
 See doc/FAQ, doc/lm_sensors-FAQ.html, or
 http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/doc/lm_sensors-FAQ.html
 (FAQ #4.24.3) for further information.
 If you find out what chips are on your board, see
 http://secure.netroedge.com/~lm78/newdrivers.html for driver status.


[root@localhost ~]# # /sbin/chkconfig lm_sensors on
[root@localhost ~]# # /sbin/service lm_sensors start
[root@localhost ~]# # /usr/bin/sensors
[root@localhost ~]# 
1 - 7
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 12 2009
Added on Sep 7 2009
7 comments
1,403 views