register_scalar_group question

Glenn MacGregor <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi All,

I am well on my way to finishing my subagent, thanks for all the help! I am now
looking into processing getnext requests, I know there are helpers to transform
a getnext into a get. 

My MIB is all scalars, so I figured I could use the register_scalar_group, but
it seems I can't.

Registration base oid = .1.3.6.1.4.1.2286.85.1.1.4 (snmpSubAgent)

Current MIB:

saVaraibles ::= { snmpSubAgent 1 }
saRestart OBJECT-TYPE
  SYNTAX INTEGER
....
::= { saVariables 1 }
saCount OBJECT-TYPE
  SYNTAX COUNTER
....
::= { saVariables 2 }


saObjects ::= { snmpSubAgent 2 }
saObject1 ::= { saObjects 1 }
saObject1Inst ::= { saObject1 1 }

saObject1P1 OBJECT-TYPE
  SYNTAX INGETER
...
::= { saObject1Inst 1 }


So as you can see any oid I may ask for is my base registration oid plus
multiple subid's.

.1.3.6.1.4.1.2286.85.1.1.4.2.1.1.1.0 == saObject1P1

The register_scalar_group function only allows me to pass the start and end
subid directly after the base oid. If I register 1, 2 for the start and end,
then execute a get query on .1.3.6.1.4.1.2286.85.1.1.4.2.1.1.1.0 it never gets
into my handler.

Is there a way to register a scalar group which will match all the oids under a
subid?

Thanks

 Glenn



Glenn MacGregor
HighStreet Networks

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
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.