How To Turn SNMP On/Off ? [ID 472530.1]

zhouwf0726發表於2019-05-21
How To Turn SNMP On/Off ? [ID 472530.1]

修改時間 12-DEC-2008 型別 HOWTO 狀態 PUBLISHED

In this Document
Goal
Solution
References


Applies to:

Oracle Net Services - Version: 9.2.0.1.0 to 11.1.0.6.0
Information in this document applies to any platform.

Goal

How to turn SNMP on or off, so that it shows when using lsnrctl utility to get listener status?

$ lsnrctl status

LSNRCTL for IBM/AIX RISC System/6000: Version 9.2.0.8.0 - Production on 12-DEC- 2007 11:52:28

Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=IPC)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for IBM/AIX RISC System/6000: Version 9.2.0.8.
0 - Production
Start Date 30-NOV-2007 15:21:35
Uptime 11 days 20 hr. 30 min. 53 sec
Trace Level off
Security OFF
SNMP ON
Listener Parameter File /app/network/admin/listener.ora
Listener Log File /app//network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=IPC)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sample.com)(PORT=1521)))
Services Summary...
Service "ORCL" has 2 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

Solution

SNMP refers to Simple Network Management Protocol. The SNMP status appearing in Listener status output indicates whether the Unix SNMP agent, the Peer master agent and encapsulator services are running. Oracle communicates with the Unix SNMP agents through the Oracle IntelligentAgent (dbsnmp). SNMP is a protocol used for gathering node status and task information.

To start the agent and Peer services on Unix, issue the follwing commands as a superuser (e.g. root):

cd $ORACLE_HOME/network/snmp/peer
su root
./start_peer -a

When SNMP is reported as ON, this indicates that the SNMP and Peer services are running on the node.
Use the ps commands to determine whether these processes are running:

ps -ef |grep peer
ps -ef |grep snmpd
ps -ef |grep snmp

Once the SNMP and Peer agent services are shutdown, the Listener status will change to a value of 'OFF'.

Please note that if the listener is started after the snmp agent it may show incorrect information about the SNMP status. This issue has been reported in Bug 4243679 Lsnrctl stop leaves tnslsnr process running if OS SNMPD is running


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/756652/viewspace-736068/,如需轉載,請註明出處,否則將追究法律責任。

相關文章