On Wed, 2006-01-11 at 12:09 +0200, Makavy, Erez (Erez) wrote: > 1) Does the mib2c(or other conf) create helpers which support > RowStatus handling?
I don't know what you mean by "other conf" - mib2c is the only code-generation tool that we supply, and it comes with a selection of config templates. And yes - most of these support RowStatus handling. Why don't you actually try *using* them and look at the code generated, rather than asking me? > 2) Do these helpers automatically deal with CreateAndWait, > CreateAndGo scenarios? Very few of the mib2c configs generate complete code - the purpose is to provide a code *template*, leaving you to fill in the details. One of these details is how to tell whether a row is ready to go active or not. This is a matter of semantics (your responsibility) rather than bare syntax. So they won't "automatically" deal with C&W vs C&G, but they will (typically) include the skeleton framework to do so, > The mib2c.create-dataset.conf stub, has an empty handler function. > The comment sais the request was handled, and we get a chance to > act on it. The dataset helper is one of the few that can do "everything" automatically. This includes row creation/deletion. > I guess that means that Row creation was handled by the > table_data_set_helper. It can do - yes. As long as the table initialisation specifies which is the RowStatus column, the helper will handle creating and deleting rows. > 3) How did the helper check that the set values are valid? > Is that something we have to do in our handler? Yes. That's something you have to do. The helper will check assignments against the syntax of the MIB objects, but can't determine what are semantically invalid requests (or combinations). That's your job. Dave ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
