I got the below messages if run

spils/linux/target snmp # /usr/local/sbin/snmpd -f -L -Dagnetx -C -c raghu.conf
registered debug token agnetx, 1
raghu.conf: line 11: Warning: Unknown token: master.
raghu.conf: line 12: Warning: Unknown token: agentXSocket.
NET-SNMP version 5.4.2

Thanks & Regards,

Raghu

-----Original Message-----
From: Ragesh V [mailto:vrag...@hcl.in]
Sent: Thursday, February 19, 2009 10:45 AM
To: Raghu Ramaraj; Pranesh Kulkarni
Cc: net-snmp-users@lists.sourceforge.net
Subject: RE: Vs: net-snmp-5.4.2.1-mips core


The snmpd.conf file looks fine to me.
My run with your conf gave the below out put.

/usr/local/sbin/snmpd -f -L -Dagnetx -C -c Raghu.conf
registered debug token agnetx, 1
Turning on AgentX master support.
NET-SNMP version 5.4.2


Can you please use -C -c for confirming your conf is picked?

Regards
-Ragesh

________________________________________
From: Raghu Ramaraj [mailto:raghu_rama...@mindtree.com]
Sent: Thursday, February 19, 2009 10:32 AM
To: Pranesh Kulkarni
Cc: net-snmp-users@lists.sourceforge.net
Subject: RE: Vs: net-snmp-5.4.2.1-mips core

Hi,

 I just kept the below things are in snmpd.conf

trap2sink  localhost public
trapcommunity  public
authtrapenable  1

rocommunity  public localhost
rwcommunity  private localhost

syslocation  Right here
syscontact   root

master agentx
agentXSocket    /var/agentx/master
out puts are..............................

spils/linux/target snmp # snmpd -f -L -Dagnetx
registered debug token agnetx, 1
/usr/local/share/snmp/snmpd.conf: line 11: Warning: Unknown token: master.
/usr/local/share/snmp/snmpd.conf: line 12: Warning: Unknown token: agentXSocket.
NET-SNMP version 5.4.2


In other window

spils/linux/target ~ # snmpget -v1 -c public localhost system.sysName.0
SNMPv2-MIB::sysName.0 = STRING: spils/linux/target
spils/linux/target ~ # snmpget -v1 -c public localhost 
NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0


Thanks & Regards,
Raghu

-------------------------------------------------------------------------------------
From: Pranesh Kulkarni [mailto:pranes...@gmail.com]
Sent: Wednesday, February 18, 2009 6:57 PM
To: Raghu Ramaraj
Cc: Dave Shield; net-snmp-users@lists.sourceforge.net
Subject: Re: Vs: net-snmp-5.4.2.1-mips core


For testing , take a backup of your snmpd.conmf and  please keep these lines 
only  in snmpd.conf

-------------------------------------------------------------------------------------

trap2sink  localhost public
trapcommunity  public
authtrapenable  1

rocommunity  public localhost
rwcommunity  private localhost

syslocation  Right here
syscontact   root

master agentx
agentXSocket    /var/agentx/master

--------------------------------------------------------------------------------------

and run the agent , and check the output

On Wed, Feb 18, 2009 at 6:39 PM, Raghu Ramaraj <raghu_rama...@mindtree.com> 
wrote:
Added "agentXsocket  /var/agentx/master " line in snmd.conf

Then it is giving like this

spils/linux/target ~ # snmpd -f -L -d
/usr/local/share/snmp/snmpd.conf: line 202: Warning: Unknown token: exec.
/usr/local/share/snmp/snmpd.conf: line 253: Warning: Unknown token: disk.
/usr/local/share/snmp/snmpd.conf: line 282: Warning: Unknown token: load.
/usr/local/share/snmp/snmpd.conf: line 409: Warning: Unknown token: master.
/usr/local/share/snmp/snmpd.conf: line 410: Warning: Unknown token: master.
/usr/local/share/snmp/snmpd.conf: line 411: Warning: Unknown token: 
agentXsocket.
NET-SNMP version 5.4.2

Thanks & Regards,
Raghu

________________________________________
From: Pranesh Kulkarni [mailto:pranes...@gmail.com]
Sent: Wednesday, February 18, 2009 6:22 PM
To: Raghu Ramaraj
Cc: Dave Shield; net-snmp-users@lists.sourceforge.net

Subject: Re: Vs: net-snmp-5.4.2.1-mips core

in your snmpd.conf
   add these two lines

master agentx ( you have added this line only)
agentXsocket  /var/agentx/master .


the do the  command  "ls /var/agentx" to check really the agentx connection 
exists ???/

On Wed, Feb 18, 2009 at 5:47 PM, Raghu Ramaraj <raghu_rama...@mindtree.com> 
wrote:
Hi Dave
         Pls find the attached file which has the snmpd.conf

I did only two changes in conf file that are 1) added democommunity 2) added 
master agentx.
If do ls /var/agent it is giving ->no such file or dir




Thanks & Regards,
Raghu

-----Original Message-----
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Wednesday, February 18, 2009 2:47 PM
To: Raghu Ramaraj
Cc: manu kumar; net-snmp-users@lists.sourceforge.net
Subject: Re: Vs: net-snmp-5.4.2.1-mips core
2009/2/18 Raghu Ramaraj <raghu_rama...@mindtree.com>:
> I just started with the following link
> "http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_Subagent";
> Even I used the example here also.
> I am getting here like this
>
> spils/linux/target subagent # snmpgetnext -v1 -c democommunity localhost 
> NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0
> SNMP-FRAMEWORK-MIB::snmpEngineID.0 = Hex-STRING: 80 00 1F 88 80 38 81 F2 27 
> 3D 46 6D 38
>
>
> spils/linux/target subagent # snmpgetnext -v1 -c democommunity localhost 
> NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject
> SNMP-FRAMEWORK-MIB::snmpEngineID.0 = Hex-STRING: 80 00 1F 88 80 38 81 F2 27 
> 3D 46 6D 38
> spils/linux/target subagent #


Are you sure that the agent is actually listening for AgentX subagents?
What does
   ls /var/agentx
        report?

What is in your snmpd.conf file?

Dave
http://www.mindtree.com/email/disclaimer.html

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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


________________________________________
http://www.mindtree.com/email/disclaimer.html


________________________________________
http://www.mindtree.com/email/disclaimer.html

DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------


http://www.mindtree.com/email/disclaimer.html

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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

Reply via email to