Re: standalone perl agent

Wes Hardaker <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Sparta
Message-ID <[email protected]>
>>>>> On Fri, 01 May 2009 18:54:06 +0200, [email protected] said:

b> Is it possible to write a perl agent - a standalone perl agent - not
b> started by snmp* daemon ?  By standalone I mean the agent can be
b> started from shell prompt with "/opt/acme/bin/perl
b> /opt/acme/bin/my-snmp-agent"

Yes, you can.

If you read the documentation for the NetSNMP::agent module you'll see
that the first example creates an agent object with the AgentX parameter
set to 1.  You should be able to set that to 0 and then it'll act as
it's own master agent.  Everything else should work the same way.

[that being said, I haven't tried it recently so it should *still* work ;-]

-- 
Wes Hardaker
Cobham Analytic Solutions

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.