Hi Dejan,

On Wed, 9 Sep 2009 16:32:39 +0200
Dejan Muhamedagic <deja...@fastmail.fm> wrote:

> 
> It would be great if the plugin could lookup the firmware release
> in wti_mpc_new() and decide which MIB version to use.

I'm not sure if it is possible at all. There are exist sysDescr
variable, that identifies kernel version and build number and there are
no other ways, to retrieve other version information by SNMP (at least i
do not know proper oids). sysDescr contains string with the kernel
version, kernel build number and other stuff. 
So i have to write a mapping between all possible sysDescr
strings (or kernel versions/builds) and firmware versions and this is
impossible. I know nothing about MIB v2 and can't find it on the WTI
website and i do not have all of the firmware builds. So it is
impossible to create such mapping.

On the other hand, we could try to ask the MPC device for every known
GROUP_NAMES oid for example, but this is unsafe. In the future same oids
could have different meanings, resulting in undefined behaviour of a
plugin. Not good :)

I even had idea to use mnemonic oid names from MIBs, but it means that
user should use the same firmware on all of his MPCs and this could be
quite unacceptable.

-- 
                                                Denis Chapligin
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to