Re: Agent Implimentation
Joao Miguel Ferreira <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 2007-04-03 at 12:16 -0700, Reza Salehi wrote: > Hi, > > I have a question about implementing a MIB in agent side .Right now > for adding and implementing each MIB I need to compile the agent and > add my code to that. Is there anyway that I can run my code separately > and just refresh some variables (MIBS object) on agent. > Is there any sample code for that? I've had that situation before. Your application runs appart from the agent and you need the agent to fetch OIDs that reside primarilly on your application. Is this right ? What I did was design my application to listen on a UNIX socket for requests from the agent. Then, in the agent code I simply create a socket, connect it to the server an retrieve the information. This is a synchronous approach as the agent will always get the information when it needs it. Similar to this, you have the AgentX approach, fully suported by net-snmp in which you would not have to code the agent. Your application would need to act as an agentX though (there is an API for that). Check the documentation. There is Perl if you like it (I do :-)) Another option is your application would write the information to a common file on disk and then program the agent to read from that file (this is not a good approach for big mibs or for many OIDs) Well, I hope I helped. Cheers joao jmf > > Appreciate your help, > Reza > > > > ______________________________________________________________________ > Need Mail bonding? > Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ 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 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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