How to change Agent Port after Installation


Steps to change the Agent Port Number :

1: stop the agent

[oracle@test bin]$ ./emctl stop agent
Oracle Enterprise Manager Cloud Control 13c Release 2
Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.
Stopping agent ... stopped.

2. Modify the $AGENT_HOME/sysman/config/emd.properties file in the EMAgent home directory:
For example:
#  EMD main servlet URL
EMD_URL=https://test.virkz.com:3873/emd/main/



Modify the <port number> in the EMD_URL property so the EMAgent uses a new unused port on the target host.
#  EMD main servlet URL
EMD_URL=https://test.virkz.com:3873/emd/main/



3. Start the EMAgent.
[oracle@test bin]$ ./emctl start agent
Oracle Enterprise Manager Cloud Control 13c Release 2
Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.
Starting agent .................................. started.
[oracle@test bin]$ ./emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 2
Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version          : 13.2.0.0.0
OMS Version            : 13.2.0.0.0
Protocol Version       : 12.1.0.1.0
Agent Home             : /u01/app/oracle/product/agent13c/agent_inst
Agent Log Directory    : /u01/app/oracle/product/agent13c/agent_inst/sysman/log
Agent Binaries         : /u01/app/oracle/product/agent13c/agent_13.2.0.0.0
Core JAR Location      : /u01/app/oracle/product/agent13c/agent_13.2.0.0.0/jlib
Agent Process ID       : 28906
Parent Process ID      : 28876
Agent URL              : https://test.virkz.com:3873/emd/main/
Local Agent URL in NAT : https://test.virkz.com:3873/emd/main/
Repository URL         : https://FCISCOPRDOEM.fcicanada.com:4903/empbs/upload
Started at             : 2017-06-16 16:17:17
Started by user        : oracle
Operating System       : Linux version 4.1.12-61.1.25.el6uek.x86_64 (amd64)
Number of Targets      : 4
Last Reload            : (none)
Last successful upload                       : 2017-06-16 16:17:34
Last attempted upload                        : 2017-06-16 16:17:34
Total Megabytes of XML files uploaded so far : 0.01
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 85.14%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2017-06-16 16:17:31
Last successful heartbeat to OMS             : 2017-06-16 16:17:31
Next scheduled heartbeat to OMS              : 2017-06-16 16:18:32

---------------------------------------------------------------
Agent is Running and Ready
[oracle@test bin]$



here we changed port no from 3872 to 3873


No comments:

Post a Comment