On Fri, 2005-12-16 at 13:16 +0530, Ravi Kumar wrote: > Background of the Agent: > ------------------------------------- > I have got some application running on the linux box.. > One of my APPLICATION will be running and get the > information about the player. > > Row Addition: > -------------- > when a new channel is started then i will get the > Player ID and rest of the information. so this application > will send a set request to the sub agent what we are doing.
That feels like a mis-design to me, and is probably the source of most of your problems. As far as SNMP is concerned, the application *IS* the subagent. The code that deals with detecting new channels (and deleted ones) can communicate directly with the code that implements the MIB. It doesn't have to go through SNMP requests - you can define whatever API calls or data structures are needed. The subagent MIB code can work with the same data structures as the main activity of the application, or hold its own representation of the table - that's up to you. The subagent-master communication is concerned with how the "outside world" interrogates/controls the status of the application. But the internal code isn't limited by that. > ROW Deletion > --------------------- > When user switch offs the channel then the APPLICATION can only > identify the PlayerID of the channel. So how do I handle this. By calling whatever (internal) API you've provided to remove a row from the table. Either manipulating the list of active channels that actually controls the box itself, or searching the subagent's internal copy for the matching playerID, and deleting that row. But you don't have to do this via SNMP SET requests. (And I'm not convinced that the dataset helper is the best choice in this particular case). 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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users