Oracl 10G snmp-peer and Net-SNMP
Eric Gandt <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to configure net-snmp to be able to forward mibs from the Oracle SNMP sub-agent. Saddly the Oracle documentation for lack of a better term is useless. From what I understand the Oracle snmp agent is made up of 3 processes: master-peer: encap-peer: subagent: From what I can make out from the nearly useless documentation: master-peer runs on port 161:UDP and is responsible for sending traps to a defined snmp port in the case of oracle 1161 by default encap-peer: forwards the results for the oracle mibs requests that come from a known port by default 1161 and of comunity public for the following mibs, it runs on the port 1162:UDP 1.3.6.1.2.1.1, 1.3.6.1.2.1.2, 1.3.6.1.2.1.3, 1.3.6.1.2.1.4, 1.3.6.1.2.1.5, 1.3.6.1.2.1.6, 1.3.6.1.2.1.7, 1.3.6.1.2.1.8, subagent: seems to directly connect to the snmp agent and handles requests to 1.3.6.1.4.1.111 My snmp agent is net-snmp (the default on most linux systems), and is running on port 1161, using the config file: rwcommunity public 10.120.16.41 rwcommunity public 10.120.16.44 trapcommunity public I'm starting by running: /usr/sbin/snmpd -a -f -Lf snmpd.out -d -C -c snmpd.conf 10.120.16.41:1161 The default config file that oracle tries to use looks like: trap 10.120.16.44 10.120.16.41 managers 10.120.16.44 10.120.16.41 trap-community public Which does not even apear to be a valid configuration. Once I have started all 4 programs the following ports are inuse: udp 0 0 0.0.0.0:161 0.0.0.0:* udp 0 0 0.0.0.0:1162 0.0.0.0:* udp 0 0 10.120.16.41:1161 0.0.0.0:* Attempts to walk the mib 1.3.6.1.4.1.111, or any of those handled by encap-peer result in the messages below: Sending 41 bytes to UDP: [10.120.16.41]:1161 0000: 30 27 02 01 01 04 06 70 75 62 6C 69 63 A0 1A 02 0'.....public... 0016: 04 0B 84 15 FC 02 01 00 02 01 00 30 0C 30 0A 06 ...........0.0.. 0032: 06 2B 06 01 04 01 6F 05 00 .+....o.. Received 41 bytes from UDP: [10.120.16.41]:1161 0000: 30 27 02 01 01 04 06 70 75 62 6C 69 63 A2 1A 02 0'.....public... 0016: 04 0B 84 15 FC 02 01 00 02 01 00 30 0C 30 0A 06 ...........0.0.. 0032: 06 2B 06 01 04 01 6F 80 00 .+....o.. SNMPv2-SMI::enterprises.111 = No Such Object available on this agent at this OID What is appears to be is that the oracle sub-agent is not comunicating with net-snmp, but then thats just a guess in fact I might have what each process does wrong as oracle can not or will not explain how SNMP is suppose to work, only that you set it up by running there script and poof! everything works, yea right! Basicly I expect that other people use oralce 10G and have snmp working with net-snmp and since 3 weeks of back and foth with oracle have lead me nowhere (why would suppot that you pay for ever help). I'm going to ask teh question here how to setup Oracle 10G with net-snmp, and hope that some kind soul can share a set of working configs or at least an explination of what does what and which process talsk to net-snmp and how. Thanks, ERIC GANDT