On Mon, 19 Dec 2005 09:17:03 +0000 Dave Shield <[EMAIL PROTECTED]> wrote:
> > Is there an OID to check if an IDE drive is active/idle or standby? > Probably not. I was already afraid it wasn't :( > In principle, I suppose HOST-RESOURCES-MIB::hrDeviceStatus could > perhaps be used in this way. But our current implementation > doesn't try to do so. > > The first question would be whether it's possible to detect this > difference programmatically. Do you happen to know if there's a > system call or ioctl or similar API that can report this status? I don't know the syscall, but a "hdparm -C $DEVICE" will tell you if the drive is active/idle or standby: # hdparm -C /dev/hdb /dev/hdb: drive state is: active/idle # hdparm -y /dev/hdb /dev/hdb: issuing standby command # hdparm -C /dev/hdb /dev/hdb: drive state is: standby R. -- ___________________________________________________________________ It is better to remain silent and be thought a fool, than to speak aloud and remove all doubt. +------------------------------------------------------------------+ | Richard Lucassen, Utrecht | | Public key and email address: | | http://www.lucassen.org/mail-pubkey.html | +------------------------------------------------------------------+ ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users