2009/4/24 B V Narasimhulu <[email protected]>: > Can I have the different Context string assigned to some > rows of a MIB table ? Is it possible to do so ?
That's probably not the best way to think of the context string. The most useful way to approach this is to regard different contexts as representing completely separate parallel copies of the full OID tree. These don't necessarily contain exactly the same sets of information (let alone what that data actually is). So one context might well be much more complete than another. But they're essentially two separate trees of information. So you might have one copy of the ifTable registered under the default context, and a second (relatively sparse) copy registered under a different context. And there might be some rows in the default table that are not in the second table, and vice versa. (As well as rows with the same index in both tables - which can have either the same or different values). > I mean to say that I wanted to register the few rows of the ifTable > with the different Context string. Don't think of it in those terms. You are registering the ifTable in both contexts - giving you two copies of the same table. You'd then insert particular rows into one or other copy of this table (or both). The effect is essentially the same, but it's a very different way of looking at it. > How can I assign the context string in this case ? Register the table twice - once in each context. Note that the MIB modules in the Net-SNMP agent aren't really designed with this in mind, so you're probably going to have to do a fair bit of work to get this in place. But think of these as two separate tables, that just happen to use the same OID. Dave ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
