On 01/03/05 Michael P. Soulier did say:

> Hello,
> 
> I'm new to working with snmp, so I apologize if this is obvious, but if the
> OID requested corresponds to a table row, how does one return an entire table
> row using an external script called via pass_persist? 
> 
> I think there may be a disconnect in my understanding of snmp queries against
> tables. 

And indeed there was. Looking at snmpwalk output I believe I understand now. 

IF-MIB::ifNumber.0 = INTEGER: 7
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
IF-MIB::ifIndex.6 = INTEGER: 6
IF-MIB::ifIndex.7 = INTEGER: 7

So rows are never returned in whole, each full OID includes the index by which
you know which row the requestor is asking for. 

If I'm wrong, please tell me. 

Mike

-- 
Michael P. Soulier <[EMAIL PROTECTED]>, 613-592-2122 x2522
6000/6010/60* Development, Mitel Corporation
"...the word HACK is used as a verb to indicate a massive amount of nerd-like
effort." -Harley Hahn, A Student's Guide to Unix

Attachment: signature.asc
Description: Digital signature

Reply via email to