Re: 回复: 回复: Can snmp sup port nested tables?
"飞飞" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
------------------ Original ------------------ From: "Dave Shield"<[email protected]>; Date: Fri, Dec 11, 2009 05:28 PM To: "飞飞"<[email protected]>; Cc: "net-snmp-users"<[email protected]>; Subject: Re: 回复: 回复: Can snmp support nested tables? I was actually hoping for a textual description of the actual But from what I can make out from your description, the overall MIB structure needs to have entries for two types of "things" - "ge things" and "bond things". Yes? ------No,there are some other entries in the same level with "ge things" ------and"bond things" But the syntax and semantics of the information held for each type of thing is the same (i.e. three IP addresses, representing interface, gateway and netmask). Yes? ------Yes If that's the case, then I think you can simply use a single table for everything. Something like myIndex INTEGER myAddress IpAddress myGateway IpAddress myNetmask IpAddress myType INTEGER { ge(1), bond(2) } myDescr AdminString -----Yeah,I think here is very wonderful,It seems we need a judge somewhere. plus any other columns that they have in common, That fact that you tend to regard the two IP-triplets as distinct structures, is not actually important for modelling this within SNMP. The syntax of the data is the same. If the types of the two structures were different, then you'd model this using three tables - one for the ge-specific columns, one for the bond-specific columns, and one for the information held in common. But all three tables would be indexed by the same MIB object (part of the common table). The other two tables would "augment" this basic table. -----Actually,they are different. See the hrDeviceTable (and related) in the Host Resources MIB for an example of this. But for what you've described so far, that's probably overkill. You can actually work with just one table. -----LOL,Happy weekend! Dave ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ 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