On Mon, Dec 3, 2012 at 6:51 AM, <[email protected]> wrote:
> I must ask, is this mailing list dead for some reason, or is people
> just very busy? Or perhaps I have been nagging the mailing list so
> many times with questions.
>
No, its probably because if nobody knows the right answer (for sure)
they will probably not answer. But let me give you what I know.
> My SNMP AgentX application is nearly complete, but I need help to
> answer some standing questions that I'm struggling with.
>
> I would appreciate it very much if anyone could answer the following
> emails I sent to the mailing list.
> * Textual enumeration in MIB (this is actually more of a SMIv2 problem
> than SNMP)
>
There is no such thing as an enumeration represented as text.
They are always integers. The name equivalent you assign to the number
is for the benefit of somebody's source code or for the display on an NMS.
So what you have to have is:
param2 OBJECT-TYPE
SYNTAX INTEGER { stopped (0), ready (1), running(2) }
* Choosing the right ASN type
>
Here you asked two questions:
unfortunately, the agents I've been writing have been AgentX (using my Perl
and/or Java
sub-agent library, but...
1/ about integer32, I'd say use ASN_UNSIGNED, from my poor memory...
I don't have my reference information in front of me, but the differences
are:
- numbers from -2 gig to +2 gig
- numbers from 0 to 4 gig
- a things that are only allowed to 'increase'
2/ and the whole business of OPAQUE or float is true.
I don't believe there is a _real_ standard for floats, and OPAQUE is a way
to encode 'other stuff', but you can't count on it being usable anywhere
else, but in your code. Where ever I have needed something code
to a float, I redefine it as an integer to avoid the problem. I.e Instead
of saying 3.5 seconds, I use 3500 milliseconds.
In addition I am wondering about the agent mode MODE_SET_BEGIN. When
> issuing an snmpset this mode is never entered into. It would be great
> to have such a mode available. When I issue an snmpset with multiple
> OIDs, I would like the handler to do some initial work only once
> before SET_RESERVER1, SET_RESERVER2, SET_ACTION on the various OIDs in
> the request.
>
And since I can't speak intelligently about this... I won't.
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
BUILD Helping you discover the best ways to construct your parallel projects.
http://goparallel.sourceforge.net
_______________________________________________
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