Hello, that was a long time ago ;) but the problem further on exist. I will try to explain in detail. I have a agent on a Simis platform ( is a railwail system ) that has agent implement something similar to snmp. A kind of MiB tree with some node. The special subtree im working on implement a subagent structure on the simis hw like this :
Simis OID Name Value 12.12.3 get_agent_list = 3 12.12.3.1 get_agent_fnc1 = OID 4.4 12.12.3.2 get_agent_fnc2 = OID 12.12 12.12.3.3 get_agent_fnc3 = OID 9.9 in common: 12.12.3 = max_value 12.12.1 = ... ... 12.12.max_value = ... This structure get created on bootup. The problem is that the Simis HW could get restarted sometimes, but the "real" snmp agent on a linux box is still running. So i need to reindex the table, and thats impossible as far as i know with snmp. So i need to track down which agent was the old 12.12.3.1 and if not exist as yet , its need added to the end. More then 20 agents on the simis hw are not expected. The problem is that get_agent_list is the number of registered subagent on the Simis HW but the snmp tree on the linux box could somethink like this : 12.12.3 = 2 12.12.1 = value 12.12.2 = empty 12.12.3 = value if sometime ago subagent 1-3 are running and after a reboot 1 agent was gone. As far as i know now, the only think that can handle this would be a table, but at the moment i stuck at scalars ;) so any idea's are welcome. Another problem is the MiB itself , is there a way i could define a kind of dynamic value ? or didnt i need that ? In a "normal" language i would use a linked list for that, but that didnt exist in ASN or ? I could simply define get_agent_list as a integer and the same for the table index , so that both variables have no relationship. Its that the only way ? I hope this time u could anwser i little bit faster ;) Mfg Baumgart P.S. sorry for my real poor english, im also bad at my native language , but good at mathematic. -----Original Message----- From: Dave Shield [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 29. Dezember 2004 21:28 To: Baumgart Alexander Cc: Net-Snmp Users (E-mail) Subject: Re: Build my own MIB [ Sorry for the delay in responding to this ] > im new to SNMP, need to build my own MiB. I used NET-SNMP-EXAMPLE-MIB as > assistents. My problem is i need a "dynamic MIB tree". To illustrated: > > i have 12.1 ::= getList (number of getList entries from a Subagent) and > would do somethink like 12.3 ::= GetList. 12.3.1 ::= GetListAgent1 ... > 12.3.getList ::= GetListAgentn. Can i do that ? The first requirement is probably to get the abstract MIB structure sorted out. It's not particularly clear what you're trying to do, but the MIB structure that you describe doesn't feel to be valid. Perhaps if you could illustrate the sort of data that you're trying to model? Dave ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ 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
