This is a discussion on Should row_prep() return error code when "some" row data can not be within the SNMP Coders forums, part of the Networking and Network Related category; --===============1859533831== Content-Type: multipart/alternative; boundary="0-1500142807-1182531394=:33621" Content-Transfer-Encoding: 8bit --0-1500142807-1182531394=:33621 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============1859533831==
Content-Type: multipart/alternative; boundary="0-1500142807-1182531394=:33621" Content-Transfer-Encoding: 8bit --0-1500142807-1182531394=:33621 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Lets say I have four fields(columns) in a row. When the row_prep() routine is called I plan on calling four individual API routines (one for each field) to get the data to populate into the row. If the first two API calls return valid data, but the third API call has trouble getting the data, then what would you recommend would be a "normal" SNMP response to the overall request? a) set the third field to some init value, try to get the data for the fourth data field and then return MFD_SUCCESS from row_prep() b) set the third field to some init value, do NOT try to get the data for the fourth data field and then return some MFD ERROR response code value from row_prep()? c) make sure the complete row (all fields) are cleared of data (so the row does not have good and bad data populated at once) and return some MFD ERROR response code value from row_prep()? d) something else perhaps? If (b) or (c), then will you please indicate what type of error code should be returned from row_prep() if (d), then please explain what "normal" SNMP handling would be in the case where all data fields can not be populated with valid data. --------------------------------- Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. --0-1500142807-1182531394=:33621 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit <br>Lets say I have four fields(columns) in a row. When the row_prep() routine is called I plan on calling four individual API routines (one for each field) to get the data to populate into the row. If the first two API calls return valid data, but the third API call has trouble getting the data, then what would you recommend would be a "normal" SNMP response to the overall request?<br><br>a) set the third field to some init value, try to get the data for the fourth data field and then return MFD_SUCCESS from row_prep() <br><br>b) set the third field to some init value, do NOT try to get the data for the fourth data field and then return some MFD ERROR response code value from row_prep()? <br><br>c) make sure the complete row (all fields) are cleared of data (so the row does not have good and bad data populated at once) and return some MFD ERROR response code value from row_prep()? <br><br>d) something else perhaps?<br><br>If (b) or (c), then will you please indicate what type of error code should be returned from row_prep()<br><br>if (d), then please explain what "normal" SNMP handling would be in the case where all data fields can not be populated with valid data.<br><br><br> <br><p> <hr size=1>Looking for earth-friendly autos? <br> <a href="http://autos.yahoo.com/green_center/;_ylc=X3oDMTE4MGw4Z2hlBF9TAzk3MTA3MDc2BHNlYwNtYWls dGFncwRzbGsDZ3JlZW5jZW50ZXI-">Browse Top Cars by "Green Rating"</a> at Yahoo! Autos' Green Center. --0-1500142807-1182531394=:33621-- --===============1859533831== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --===============1859533831== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders --===============1859533831==-- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|