Hi Dave,
 okay,If the config file "snmpd.conf" is not relevant to the NMS, why does
it reside in NMS? Will this be used by the other end(Agent) or something?


I am working as root in the Manager and another user(but with admin powers)
in Agent.

 Before starting:
[(flash)r...@sunsp-xxxxxxxxxxxx:/etc/snmp]# ps -ef | grep snmp
root     16597     1  0 04:17 ?        00:00:01 /bin/bash /etc/snmp/snmpd.sh
start
root     16227 16597  0 10:56 ?        00:00:00 /bin/bash /etc/snmp/snmpd.sh
start
root     16228 16227  0 10:56 ?        00:00:00 /bin/bash /etc/snmp/snmpd.sh
start
root     16235 29492  0 10:56 pts/0    00:00:00 grep snmp

I start the command in my start script like the following:
[(flash)r...@sp-xxxxxxxxxxxx:~]# ps -ef | grep snmp
root       554     1  0 Jan04 ?        00:00:14 /bin/bash /etc/snmp/snmpd.sh
start
root     19229   554  0 Jan04 ?        00:00:02 /usr/local/bin/snmpd -A -f
-Le -p /var/run/snmpd.pid -C
-c/etc/snmp/snmpd.static.conf,/etc/snmp/snmpd.sysobjectid.conf,/conf/snmpd.local.conf,/conf/snmpd.conf
udp:161,udp6:161
root     19230   554  0 Jan04 ?        00:00:00 /bin/bash /etc/snmp/snmpd.sh
start
root      2128  1017  0 02:40 pts/0    00:00:00 grep snmp

This is the error:
[(flash)r...@sunsp-xxxxxxxxxxxx:~]# vi /var/log/snmpd.log
....
Error opening specified endpoint "udp6:161"
/conf/snmpd.local.conf: line 8: Warning: Unknown token: com2sec6.
/conf/snmpd.local.conf: line 14: Warning: Unknown token: com2sec6.
init_local_cache:local cache initializing
Error opening specified endpoint "udp6:161"
Server Exiting with code 1

In tcpdump I am able to see GetRequest going from NMS to Agent. But no
response from Agent. I have enabled IPv6 in the agent configuration. But now
I seriously think that there is more to do on the Agentside. Any cue?

Thanks,
Karthika.


On Fri, Aug 28, 2009 at 3:19 AM, Dave Shield <[email protected]>wrote:

> 2009/8/28 Karthika Arunkumar <[email protected]>:
> > 1)snmpd.local.conf (I edited agentaddress udp:161   to
> >    agentaddress udp:161,udp6:161 )
>
> > 2) shell script which invokes my snmpd. I invoke it as snmpd
> >     udp:161,udp6:161 instead of snmpd udp:161
>
>
> These two have the same effect.
> You should only need one of them.
>
>
> > On the NMS side I edited the snmpd.conf (should i add agentaddress
> here?).
>
> The config file "snmpd.conf" is not relevant to the NMS.
> It is purely concerned with the configuration of the SNMP agent.
>   (Hence the name - "snmpd")
>
>
>
> > But when I do only for IPV4, snmp works fine. But when I put both or only
> > ipv6, then both ipv4 and ipv6 are not working in snmp.
> > It says error opening endpoint udp:161 (but when there is no udp6:161
> given,
> > then this doesnot error)
>
> How exactly are you starting the agent?   What is the full command?
> Who are you working as - root or another user?
>
> Is there another agent running?
> What does "ps -ef | grep snmp" report before trying to start the agent?
>
>
> Dave
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to