Net-SNMP 5.5 on Windows Server 2008 with own subagent, can"t set scalar
Julian Cebulla <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <6FB3B6199FD7754699E03FD87E9653480506CBCA@exchange2010.hq.ferrari-electronic.de> |
Hello all, I have running Net-SNMP on a Windows Server 2008 R2. First I have installed the Windows SNMP and disabled it. Then I installed Net-SNMP 5.5 (with the Windows extensions). But I don't registered it as a service. I run the snmpd.exe like this "snmpd.exe -I-udp,udpTable,tcp,tcpTable,icmp,ip,interfaces,system_mib,sysORTable -m ALL -d -f" to see everything. With "snmpwalk.exe -v 2c -m all -c public localhost sysdesc" I get : "SNMPv2-MIB::sysDescr.0 = STRING: Hardware: Intel64 Family 6 Model 23 Stepping 6 AT/AT COMPATIBLE - Software: Windows Version 6.1 (Build 7600 Multiprocessor Free)" But my big problem is my own subagent. A workmate and me wrote this subagent. The subagent should work on Windows and Linux. At Linux is everything fine, the subagent, connected to the snmpd on the same Linux, sets some scalars at a specific Enterprise OID. And when I make a snmpwalk at .1.3.6.1.4.1 I get what I want. But only on the Linux side. Now we come to the dark side, the Windows side. I connect the Master with the subagent over tcp (agentxSocket @ Master and netsnmp_ds_set_string @ subagent). >From my subagent comes the message "NET-SNMP version 5.5 AgentX subagent connected" and I see that the snmpd gets packets over tcp. But when I make a snmpwalk at .1.3.6.1.4.1 I doesn't get anything from my enterprise OID. With a snmpwalk at .1 and a search over the output I find the number of my enterprise but only in the NET-SNMP-AGENT-MIB. Looks like he registered the subagent there. I don't know where my failure is, or is it a known bug? Please help me and my workmate! NOTE: The code of the subagent is for Linux and Windows a little bit different, but until the command "init_snmp" everything relating for Net-SNMP is the same! When I connect the subagent on Linux with the snmpd on Windows over tcp and make a snmpwalk, I get my scalars at the enterprise OID. Here the order of the important snmp functions from the code of my subagent: --------------------------------------------------------- SOCK_STARTUP //initialize tcp netsnmp_ds_set_string() //to set IP and Port of MasterAgent //now initialize the tables with functions generated by mib2c . . . // set some scalars . . . init_mib_scalar() init_snmp() --------------------------------------------------------- Am I right that the MasterAgent now should know the scalars I set in my subagent? I'm grateful for every help I get. P.S: Sorry for my bad English, but I'm practicing :) Thanks Julian Cebulla ________________________________ Ferrari electronic AG Ruhlsdorfer Str. 138 14513 Teltow (bei Berlin) Handelregister Potsdam: HRB 12091 Vorstand: Johann Deutinger, Ulrich Dziergwa, Dr. Hartmut Fetzer Aufsichtsrat: Peter Mark Droste (Vorsitzender) ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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