Re: NetSNMP::agent help

Fulko Hew <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
As Dave Shield always says:

"Please do *NOT* send me private mail directly.  All requests for support
with the Net-SNMP software should be via the mailing list."

On Mon, Mar 22, 2010 at 5:03 AM, Milena <[email protected]> wrote:

> Hi,
>
> I have already read this tutorial, and a want to run a sub-agent as an
> embedded agent.
> I have FreeBSD, and I want to use bsnmpd daemon.
>

I have to assume that bsnmpd _is_ the net-snmp daemon.
...Actually a quick search on the internet showed me a man page that
implies that bsnmpd is NOT the net-snmp's snmpd.

And according to that man page... bsnmpd doesn't support this type/format of
extensibility.

I add "perl do 'path/to/file.pl';" in my snmpd.config file,
> I try to strat the agen with command
>   bsnmpd -d -c
> /usr/home/milena/workspace/CMS/other_scripts/testing/SNMPAgent/snmpd.config
> -D dump -m .
>
> and I have error:
>
> /    snmpd[57157]: '=' expected
>   snmpd[57157]:   in file
> /usr/home/milena/workspace/CMS/other_scripts/testing/SNMPAgent/snmpd.config
> line 118
>   snmpd[57157]: error in config file/
>

If you are not using the net-snmpd's darmon, then that would explain why the
'do'
command would cause an error message when paring your config file.



On Thu, Mar 18, 2010 at 11:06 AM, Milena <[email protected] <mailto:
> [email protected]>> wrote:
>
>    Hi ,
>    I want to run SNMP Sub-agent, but I don't know how.
>
>    Can you help me?
>    My SNMP Sub-agent source is perl source code and it is equal to the
>    example on
>    http://search.cpan.org/~HARDAKER/NetSNMP-agent-5.0401/agent.pm#EXAMPLES<http://search.cpan.org/%7EHARDAKER/NetSNMP-agent-5.0401/agent.pm#EXAMPLES>
>    <
> http://search.cpan.org/%7EHARDAKER/NetSNMP-agent-5.0401/agent.pm#EXAMPLES
> >.
>
>
>
> As that page says... there are two ways of using Perl to make a sub-agent:
>
> 1/ as an AgentX based sub-agent
> 2/ as an embedded agent
>
> The first example in that URL is the AgentX approach.
> Put that 'stuff' into a file and execute it.  It will/should attach
> to the snmpd daemon (which you must already have running
> (and enabled/configured to support AgentX).
>
> The second example is almost identical to the first, but in that case
> you need to add a line to your snmpd.conf file  (like it says at the top
> of that example), and then restart your snmpd.
>
> If you are still having problems, perhaps you can explain
> which approach you are trying to use, and what your exact
> symptoms (or problems) are.
>
>
>
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
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.