tracking agentx communication to find out lack of answer reason
Julian Kania <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello everyone. I have a difficulty with netsnmp 5.4.3 running on hpux11.23: snmpd doesn't answer to agentx request, and I want to know how to force snmpd to log why it doesn't answer. The subagent supporting agentX is a legacy, closed-code software. It's a simple application: supports localhost connection only, and have no useful debuging capabilities. However it for sure can work, as it communicates over agentX with a master agent based on AGENT++ (another snmp package). The problem is that my subagent communicates "Failed to initialize SNMP subagent" at first try, while with AGENT++ it reports success, and later works correctly. With strace (tusc) I've checked that the subagent sends following data over socket: write(18, 0x6000000000388080, 40) .................................................... = 40 0101\0\0\0\0\0\0\0\0\0\0\0\0\001\0\0\01405\0\0\002\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 and doesn't receive any answer (no read() calls after), in contrary to AGENTX++ communication. It's hard to monitor network traffic on loopback interface in hpux, thus my question is: How to set snmpd to log the communication over agentx? Or, how to force it to log the reason of lack of answer? The snmd is started in following way: /usr/local/sbin/snmpd -A -c /usr/local/share/snmp/snmpd.conf -Le -d -V and /usr/local/share/snmp/snmpd.conf is following: syslocation Lubinowa syscontact [email protected] sysservices 76 com2sec localhost 127.0.0.1 public com2sec readwrite default public rocommunity public rwcommunity public master agentx agentxsocket tcp:127.0.0.1:7162 authtrapenable 1 thanks, Julian ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ 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