Re: writing a subagent -- newbie help

"[email protected]" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Matt,

maybe we should try it together. ;) Do you have to write it in c++ or c,  
too?

Tomorrow (that is in about 12 hours for me) I can send you some code which  
was working for me (maybe you can find it if you are searching in the  
mailing list for my name), but I used it only as a Master Agent right now.  
But as far as I know, only the boolean must be set to subagent to get it  
working.

It would be really cool, if we could create a simple working example, I  
think that is the biggest missing part on all the tutorials. The tutorials  
are nice, but many important things are missing and if I as a newbie look  
on the working code (like snmpd) than it is too much (it has soooooooooo  
many features implemented).

REALLY nice would be to have a simple compiling example, how to create a  
program which can act as trapsender, client and server at once. It must  
not have all features and implement every feature of SNMP, but just work.  
I hope that some of the guys here may help us.

Ciao

Seb

Am 27.09.2010, 18:47 Uhr, schrieb Matt Flanzer <[email protected]>:

> Hello all --
>
> I've installed NET-SNMP on my Mac (via macports) and I'm trying to write  
> a
> subagent. I've followed the wiki instructions, but I can't get it to  
> work.
> Basically, no matter what I've tried I get the response:
> No Such Object available on this agent at this OID
>
> I've also tried the demo subgent from
> http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_Subagent
>
> No luck there either. I get the same response. *snmptranslate* works just
> fine, so it's not a MIB issue (I think).
>
> I've also edited the *snmpd.conf* file to include the *com2sec* lines as
> described in the wiki as well, but that's no it.
>
> So I am now at a loss. If I had to guess, I'd think that the subagent  
> (mine
> or the tutorial) is not connecting to the snmpd master agent. But, who
> knows.
>
> I turn to you, internet lords, for help.
>
> Thanks,
> Matt

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.