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<mailto: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<mailto:pranes...@gmail.com>]
Sent: Wednesday, February 18, 2009 6:22 PM
To: Raghu Ramaraj
Cc: Dave Shield; 
net-snmp-users@lists.sourceforge.net<mailto: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<mailto: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> 
[mailto: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<mailto: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<mailto: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<mailto: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
------------------------------------------------------------------------------
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