Hi Dave.

Thanks for your reply.
I know it more clearly now.

But I still have a problem.
That is how agent mapping integer index value to a noninteger index 
value(ex: ip)?
Or ip can not be a index? Each table should only has integer index value?


Thanks,

永鈦鑫   iTAS Corporation
新竹市水源街75號
NO. 75,Shuiyuan St., Hsinchu City, Taiwan, R.O.C.
Tel:03-5716099 Ext.1208
E-mail:[EMAIL PROTECTED]
----- Original Message ----- 
From: "Dave Shield" <[EMAIL PROTECTED]>
To: "Tewen Hsieh" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Friday, June 27, 2008 4:24 PM
Subject: Re: multiple indexes


> 2008/6/27 Tewen Hsieh <[EMAIL PROTECTED]>:
>> ex: when agent receive a request with oid: 1.3.6.1.4.1.7788.100.1.idx,
>> it can use idx to find the correct row and get data.
>
> That OID cannot be a valid instance of a MIB table.
> It would need to be of the form   1.3.6.1.4.1.7788.100.1.column.idx
> (assuming that 1.3.6.1.4.1.7788.100 is the OID of the table itself).
>
>
>
>> But if my table is indexed by multiple indexes (ex: ip and vlan), how can
>> agent mapping  1.3.6.1.4.1.7788.100.1.idx to the correct row?
>
> It cannot,
> Even with the missing column subidentifier added,
> this OID does not map to an instance of a multi-indexed table.
>
> The agent would need an OID of the form
>
>    1.3.6.1.4.1.7788.100.1.column.idx1.idx2
>
> That's what multiple indexes means - the OIDs must
> include multiple index values.
>
> Dave
>
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to