Antwort: [AGENT++] Walking table row by row using SNMP++

Jens Engel Jens.Engel at marconi.com
Wed May 2 08:31:56 CEST 2007


Hello Altaf,

Altaf> Is there a way to get the data row by row or 
Altaf> does this depend on agent implementation?

1. snmpbulkwalk/snmpwalk all use the same table traversal algorithm that 
corresponds (or uses) to SNMP GetNextRequests.

2. You can access the table contents by row by using a 2-step procedure:
    a. Discover which rows of a table exist (normally by using a reference 
column that must always be implemented, 
        like the RowStatus column)
    b. After knowing the RowOids (OID postfix after Column OID), you can 
retrieve the columns of interest for each row
         by using SNMP GetRequest (direct access by concatenating Column 
OIDs with the RowOid postfix for each row).

NOTE: This table retrieval is more efficient than walking over the 
complete table,
expecially when the number of columns of interest is rather small compared 
to the number of table columns.

Ciao,
Jens Engel






More information about the AGENTPP mailing list