Kamis, 30 Mei 2013

CARA GANTI PORT AGENT EM12C (CHANGE PORT AGENT IN EM12C)

Huy guys ketemu lagi nch kite, kali ini ane mau bahas tentang begimana ya cara ganti port pada em12c, kasih tau gk ya, mmmm wani piro ? hahahah gini gan caranye, buka google cari dech, haah gk sejahat itu ane gan, gini nch gan caranye

1. Stop the EMAgent.
   $ $AGENT_HOME/bin/emctl stop agent

2. ganti pada $AGENT_HOME/sysman/config/emd.properties file ini ada di direktori home EMAgent:
    For example:
    EMD_URL=http://donalbebek.com:3872/emd/main

    ganti dech portnya EM menjadi :
    EMD_URL=http://donalbebek.com:3873/emd/main

3. Start the EMAgent.
    $ $AGENT_HOME/bin/emctl start agent

4. Cek status agent
    bash-3.00$ ./emctl status agent
   Oracle Enterprise Manager Cloud Control 12c Release 2  
   Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
   ---------------------------------------------------------------
   Agent Version     : 12.1.0.2.0
   OMS Version       : (unknown)
   Protocol Version  : 12.1.0.1.0
   Agent Home        : /home/oracle/agent_home/agent12cr2
   Agent Binaries    : /home/oracle/agent_home/agent12cr2/core/12.1.0.2.0
   Agent Process ID  : 4167
   Parent Process ID : 4160
   Agent URL         : https://donalbebek.com:3873/emd/main/
   Repository URL    : https://pgridcc12.donalbebek.com:4903/empbs/upload
   Started at        : 2013-05-31 09:05:55
   Started by user   : oracle
   Last Reload       : (none)
   Last successful upload                       : (none)
   Last attempted upload                        : (none)
   Total Megabytes of XML files uploaded so far : 0
   Number of XML files pending upload           : 158
   Size of XML files pending upload(MB)         : 0.53
   Available disk space on upload filesystem    : 74.23%
   Collection Status                                      : Collections enabled
   Heartbeat Status                                      : OMS is unreachable
   Last attempted heartbeat to OMS              : 2013-05-31 09:09:02
   Last successful heartbeat to OMS             : (none)
   Next scheduled heartbeat to OMS              : 2013-05-31 09:09:32
   ---------------------------------------------------------------
   Agent is Running and Ready

   waduh gan gagal, haduh gimana nch gan statusnya kok OMS is unreachable, ini tantangannya gan
5. masuk ke Web console EM12c, masuk sebagai user sysman, kemudian ke Setup > manage cloud control > agents
6. pilih agent yang statusnya adalah blocked, kemudian klik agent tersebut
7. pada kiri atas terdapat agent > Resynchronization > checklist Unblock agent on successful completion of agent resynchronization > continue, tunggu hingga process selesai
8. jika process gagal, dapat dilakukan dengan cara :
9. ./emctl stop agent
10. /home/oracle/agent_home/agent12cr2/sysman/emd
11. rm -rf state/ upload/
12 ./emctl clearstate agent
13. ./emctl secure agent (masukan password sysman)
14. ./emctl start agent
15. bash-3.00$ ./emctl status agent
     Oracle Enterprise Manager Cloud Control 12c Release 2  
    Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
    ---------------------------------------------------------------
    Agent Version     : 12.1.0.2.0
   OMS Version       : 12.1.0.2.0
   Protocol Version  : 12.1.0.1.0
   Agent Home        : /home/oracle/agent_home/agent12cr2
   Agent Binaries    : /home/oracle/agent_home/agent12cr2/core/12.1.0.2.0
   Agent Process ID  : 9156
   Parent Process ID : 9125
   Agent URL         : https://donalbebek.com:3873/emd/main/
   Repository URL    : https://pgridcc12.donalbebek.com:4903/empbs/upload
   Started at        : 2013-05-31 09:31:23
   Started by user   : oracle
   Last Reload       : (none)
   Last successful upload                       : 2013-05-31 09:32:17
   Last attempted upload                        : 2013-05-31 09:32:17
   Total Megabytes of XML files uploaded so far : 0.11
   Number of XML files pending upload           : 9
   Size of XML files pending upload(MB)         : 0
   Available disk space on upload filesystem    : 74.23%
  Collection Status                                           : Collections enabled
  Heartbeat Status                                         : Ok
  Last attempted heartbeat to OMS              : 2013-05-31 09:31:54
  Last successful heartbeat to OMS             : 2013-05-31 09:31:54
  Next scheduled heartbeat to OMS              : 2013-05-31 09:32:54
   ---------------------------------------------------------------
  Agent is Running and Ready
  bash-3.00$ ./emctl upload agent
  Oracle Enterprise Manager Cloud Control 12c Release 2  
  Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
  ---------------------------------------------------------------

  EMD upload completed successfully


SELESAI DEH GAN, KLW DI CONSOLE UDAH IJO LAGI LOGONYA ARTINYA SUKSESS

   

Tidak ada komentar:

Posting Komentar