On 7/2/08, Dave Shield <[EMAIL PROTECTED]> wrote:
>
> 2008/7/2 deka aditia <[EMAIL PROTECTED]>:
>> I would suggest that you concentrate on developing a MIB
> >> module for your particular needs, and use this within the
> >> existing Net-SNMP agent framework.
>
>
> > Now i got what you want,
> > you suggest me to develop a sub agent in existing agent, right ?
>
>
> That's one approach, certainly.
> But what I would actually suggest is that you start by implementing
> the code for a MIB module, and compile this directly within the
> SNMP agent itself. I.e.
>
> configure --with-mib-modules=yourModule
> make
> make install
>
>
>
>
>
> > 1.) I just try to run this program on my PC (i'm using opensuse 11.0)
> > but it got a message that the program can't communicate with the main
> agent
>
>
> And that's why I suggest you start with a static agent.
> It avoids all the hassle of communications between the master
> agent and your subagent.
>
> The code you develop can be re-compiled into a subagent (or a
> dynamically loadable module) later, without needing to change a
> thing. But if you start by compiling it within the main agent,
> that's by far the simplest approach.
Anyone know how to write mib module for a scalar object ?
just by using mib2c -c mib2c.scalar.conf $name just producing 2 file ..
(object.c and object.h)
i dont know what should i do ..., it's completely different when reproduce
mib module using table object ...
where should i put get and set method, when there is such operation ?
i have to read some external file to read and write the value of this object
...
please guys help me ....
Dave
>
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders