Re: query on system voltage & disk information

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue Feb 11 2003 at 01:07, Venkatesh Krishnamurthi wrote:

(in reply to Govindharaju Palani)

> > I have following queries.
> > #1    How to get the system voltage coming into the system. ..?
> 
>   lm_sensors (http://secure.netroedge.com/~lm78/).

Also, try running /usr/sbin/sensors-detect -- it will tell you how
to set things up so that you load the right modules.  Once you've
done that, then the /usr/bin/sensors will give you all the
information you want to know (and more besides:)

Note that you probably don't want or need to load the eeprom driver,
it is used to give information about installed ram (and, I assume,
get access to the cmos).  (At least this is my observation and
assumption about what it is for).

And do make sure that you run "sensors -s" after you load the
required modules.  (I have it as a "post-install" parameter in
/etc/modules.conf).

One hint... you can automatically have your lm-sensors drivers
loaded when you modprobe i2c-proc.  For example I use this:

add above	i2c-dev		i2c-proc
add above	i2c-proc	i2c-viapro 
add above	i2c-viapro	w83781d
post-install	i2c-w8381d	/usr/bin/sensors -s
alias		eeprom		off

  (Obviously have a VIA chipset on my m'board, and don't want/need
  the eeprom module loaded at all.  I also have some more magic in
  there to automatically load the bttv drivers for my tv capture
  card).

I do "modprobe i2c-dev" in /etc/rc.d/rc.local and the lm-sensors
modules are then automagically loaded at bootup.  Very cool :)

> > #2    Given a IP address of a machine how to get the HARD DISK
> > informations like
> >          capacity , free space ,etc.
> 
>   How about running a SNMP agent on the target machines and querying
> the host resources MIB (RFC2790)?

Yep, excellent suggestion... it is amazing just how much information
can be obtained with snmp.  Simply enable the daemon on the target
boxes and use "snmpwalk <ip> public" on another box to get _lots_ of
information out of it.  (The parameters can be fine-tuned to get
specific information).

Just be aware of the security issues involved, in particular know
that snmpd uses tcp_wrappers.  The ports should be firewalled from
the internet anyway - especially if you are using the protocol.

> Venkatesh

Cheers
Tony



_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux