>From my NMS host (176.27.81.18) I can do a walk on the master (snmpwalk
-v2c -d -c 'community string' 176.27.81.145 iftable), but I want to
verify that it is actually serving up data from the sub-agent.  If I do
a tcpdump on the sub-agent's interface while I am running this snmpwalk
command I do not see any packets traverse port 705.  I am under the
assumption that if this is working correctly, and I am pulling snmp data
from the master, I am actually getting data from the sub-agent, in which
case I should see data packets from the sub-agent.  I am a newbie
(obviously :-)) so I hope this clears things up.  Below is some info
from my hosts.  

 

Thanks for your help.

 

Master Agent:

OS - Fedora Core 2

Kernel - 2.6.10

NetSNMP - 5.2.1

 

ps -ef | grep snmpd

root     22671     1  0 14:51 ?        00:00:01 /usr/sbin/snmpd -x
10.222.1.1:705

 

cat /etc/snmp/snmpd.conf | grep master

master agentx

 

netstat -an | grep :705

tcp        0      0 10.222.1.1:705          0.0.0.0:*
LISTEN

tcp        0      0 10.222.1.1:705          10.222.2.3:55684
ESTABLISHED

tcp        0      0 10.222.1.1:705          10.222.2.4:57562
ESTABLISHED

 

netstat -an | grep :161

udp        0      0 0.0.0.0:161             0.0.0.0:*

 

eth0    inet addr: 176.27.81.145 Bcast:176.27.81.255 Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:709496 errors:0 dropped:0 overruns:0 frame:0

          TX packets:142438 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:67707916 (64.5 Mb)  TX bytes:54483760 (51.9 Mb)

 

eth2    inet addr:10.222.1.1  Bcast:10.222.255.255  Mask:255.255.0.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:474906 errors:0 dropped:0 overruns:0 frame:0

          TX packets:683522 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:37691579 (35.9 Mb)  TX bytes:888492164 (847.3 Mb)

 

Debug output for agentx:

agentx/master: handle pdu (req=0x45b197f,trans=0x0,sess=0xb)

agentx/master: send response, stat 0 (req=0x45b197f,trans=0x0,sess=0xb)

agentx_build: packet built okay

 

 

Sub-Agent:

OS - Gentoo

Kernel - 2.6.15

Net-SNMP - 5.2.1.2

 

ps -ef | grep snmpd

323 root       2764 S   /sbin/snmpd -f -X -x 10.222.1.1:705 -Lsd -c
/etc/snmp

 

eth0    inet addr:10.222.2.4  Bcast:10.222.255.255  Mask:255.255.0.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:22027 errors:0 dropped:0 overruns:0 frame:0

          TX packets:12075 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:31769843 (30.2 MiB)  TX bytes:924256 (902.5 KiB)

          Base address:0xdcc0 Memory:fe6e0000-fe700000

 

Debug output for agentx:

agentx_build: packet built okay

agentx/subagent: synching input, op 0x01

agentx/subagent: session 0x9d185d0 responded to ping

 

 

 

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Shield
Sent: Monday, February 05, 2007 4:03 PM
To: Lacatena, Andrew
Cc: [email protected]
Subject: Re: FW: agentx sub-agent setup

 

On 05/02/07, Lacatena, Andrew <[EMAIL PROTECTED]> wrote:

> Now that this is setup and running, I am unable to do a snmpwalk on
the

> sub-agent.  When I run, snmpwalk -v2c -c 'community string' 'hostname'

> iftable against my sub-agent I do not get any output.  Doing it
against

> a host that isn't configured as a sub-agent, I get the expected
output.

 

Can you confirm exactly what you're trying here?

You wouldn't normally contact an AgentX subagent directly.

Instead you'd contact the master agent, which would pass

the requests on to the appropriate subagent(s).

 

It's not totally clear whether that's what you are doing or not.

 

Dave

 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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

Reply via email to