----- Original Message -----
From: "Robert Story" <[EMAIL PROTECTED]>
To: "Dan Miller (Kromos)" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Wednesday, January 16, 2008 09:50
Subject: Re: how do I determine which device is being accessed??
> On Tue, 15 Jan 2008 17:38:50 -0800 Dan wrote:
> DM(> 1. The init function generated netsnmp_register_scalar() calls for
> the
> first dozen fields in my mib, but stopped at the DevTblEntry which
> defines all my actual cards in the system. Do I have to call something
> else
> to register those structs??
>
> Yes, you need to use another handler type for tables (vs scalars).
Is there a way to tell mib2c to handle the SEQUENCE entry in my MIB?
It just stopped when it reached:
ip3DevTblEntry ::= SEQUENCE {
(BTW, I'm using net-snmp 5.4.1, I should have stated that in original
message)
>
> DM(> 2. in the init function, how do I tell it about multiple devices??
>
> You need to structure your mib to deal with multiple devices.
My mib *is* structured to deal with multiple devices, or at least it did in
the past.
The problem is that our existing code was for UCD snmpd, and doesn't compile
into net-snmp (even when I change headers to use the ucd syntax, though I
may well be "doing it wrong", since I didn't write the original modules).
>
> DM(> 3. When my individual handler is called, how do I know which device
> the
> request is for??
>
> That depends on the mib structure and the handler you are using.
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders