2009/4/7 sanjaykumar <sanjay.ku...@globaledgesoft.com>: > Is it possible to implement the Ether-Like mib , rfc 3635 using the "ethtool" > ?
Hmmm... That might be possible, I suppose. My immediate reaction was to invoke "ethtool" via a shell script (registered using the "pass" directive). But there are two major problems with such an approach. a) The Ether-Like MIB is significantly more complex than most pass-based scripts, and it would be very fiddly to get right. b) This would be extremely inefficient, since it would involve running a sub-command for every single individual OID. A better approach would probably be to write a cache-based MIB module to implement the Ether-Like MIB in C code, and invoke "ethtool" from within the cache loading routine, to provide the raw data. (Plus to handle SET requests). The most efficient approach would normally be to use the source code of ethtool as the basis of coding a self-contained implementation of the Ether-Like MIB. The one problem here is that ethtool is distributed under the GPL, which means that no code from this package can be included within the Net-SNMP project. Using it as a source of ideas *might* be allowable - I'm really not sure. It's definitely an interesting idea for a project, though. All we need now is a volunteer :-) Dave ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ 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