- 论坛徽章:
- 0
|
Oracle previous guide has some problem to cofigure it with window snmp. the following are my steps.
Oracle version: ora9i
Windows version: windows2000 with sp4
===========================
1.C:WINNTsystem32driversetc
edit the service file to modify the port of snmp(161M1161)
#change by tango to support snmp
snmp 1161/udp snmp #SNMP
snmptrap 1162/udp snmp-trap #SNMP trap
2.Modify the C:oracleora92
etworkadmin
#edit the master.cfg for master agent entry.
TRANSPORT ordinary SNMP
OVER UDP SOCKET
AT PORT 161
COMMUNITY public
ALLOW ALL OPERATIONS
USE NO ENCRYPTION
MANAGER 127.0.0.1
SEND ALL TRAPS
WITH COMMUNITY public
#edit the encaps.cfg for sub agent entry.
AGENT AT PORT 1161 WITH COMMUNITY public
SUBTREES 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,
1.3.6.1.4.1.77,
1.3.6.1.4.1.111,
1.3.6.1.2.1
FORWARD ALL TRAPS;
3.check the log file:
C:oracleora92
etworklogdbsnmp.log
C:oracleora92
etworklogOracleOraHome92Agent.nohup
4. test snmp (snmputil is a 3rd party tool)
snmputil get "127.0.0.1" public .1.3.6.1.2.1.1.1.0
#the last number is defined in the C:oracleora92
etworkadminsnmp_ro.ora
snmputil get "127.0.0.1" public .1.3.6.1.4.1.111.4.1.6.1.1.5
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/9924/showart_46839.html |
|