9 Replies Latest reply on Jan 30, 2009 6:49 AM by mnazim-Oracle

    virtual agent at active passive cluster

    679788
      hi,
      i have a host with one local agent (only for the host) and one virtual agent (on the VIP for DB).
      both of the agents are shown at the OMS.
      the problem is the virtual agent do not discover the host which he belong to (it is changing due to failover),
      so when i open from the DB home page, the "HOST" appears unavailable. if i click the unavailable (host) i receive an error : "Error finding target Unavailable from the repository. The target does not exist or you may not have the access to the target"

      is there any possibility to add a virtual host to a virtual agent?
        • 1. Re: virtual agent at active passive cluster
          mdecker77
          Did you have a look at the documentation. It is fairly well documented how to set up OEM in active/passive environments:

          http://download.oracle.com/docs/cd/B19306_01/em.102/b40002/actpass_env.htm#sthref282

          Best regards,
          Martin Decker
          http://www.ora-solutions.net
          • 2. Re: virtual agent at active passive cluster
            679788
            Hi,
            thank you very much,
            i have read this document and follow the guidelines, yet there is a problem.
            after installing the virtual agent , it is appear in the console only as an agent , and not as a host or virtual host.
            how can i discover or add a virtual host to the virtual agent?
            • 3. Re: virtual agent at active passive cluster
              mdecker77
              So, you have 3 agents installed:

              * 1 Agent on HostA
              * 1 Agent on HostB
              * 1 Agent on virtual IP

              Can you paste the output of this command from all 3 agents

              export ORACLE_HOME=... patch to agent home ...
              emctl status agent

              Can you paste the targets.xml file from all 3 agents?

              Did you run ./runInstaller HOSTNAME=<Logical IP address or hostname>
              and did you install the AGENT_HOME of the virtual agent on a mount point, which can be reloacted on the second node?

              Regards,
              Martin Decker
              http://www.ora-solutions.net
              • 4. Re: virtual agent at active passive cluster
                679788
                hi,
                here is the data you requested:

                HOST A - emctl status agent :

                Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0.
                Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
                ---------------------------------------------------------------
                Agent Version : 10.2.0.4.0
                OMS Version : 10.2.0.4.0
                Protocol Version : 10.2.0.4.0
                Agent Home : /u01/app/oracle/Grid_Agent/OracleHomes/agent10g
                Agent binaries : /u01/app/oracle/Grid_Agent/OracleHomes/agent10g
                Agent Process ID : 16642
                Parent Process ID : 16593
                Agent URL : https://HFARHEL1.amee.corp.zim.com:3872/emd/main/
                Repository URL : https://HFAVLOGCP001.amee.corp.zim.com:1159/em/upload
                Started at : 2009-01-25 12:16:21
                Started by user : oracle
                Last Reload : 2009-01-25 15:38:46
                Last successful upload : 2009-01-25 16:08:47
                Total Megabytes of XML files uploaded so far : 17.79
                Number of XML files pending upload : 0
                Size of XML files pending upload(MB) : 0.00
                Available disk space on upload filesystem : 35.86%
                Last successful heartbeat to OMS : 2009-01-25 16:15:47
                ---------------------------------------------------------------
                Agent is Running and Ready

                __HOST B- emctl status agent :__
                Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0.
                Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
                ---------------------------------------------------------------
                Agent Version : 10.2.0.4.0
                OMS Version : 10.2.0.4.0
                Protocol Version : 10.2.0.4.0
                Agent Home : /u01/app/oracle/Grid_Agent/OracleHomes/agent10g
                Agent binaries : /u01/app/oracle/Grid_Agent/OracleHomes/agent10g
                Agent Process ID : 3785
                Parent Process ID : 3759
                Agent URL : https://HFARHEL2.amee.corp.zim.com:3872/emd/main/
                Repository URL : https://HFAVLOGCP001.amee.corp.zim.com:1159/em/upload
                Started at : 2009-01-25 14:07:16
                Started by user : oracle
                Last Reload : 2009-01-25 15:41:57
                Last successful upload : 2009-01-25 16:12:01
                Total Megabytes of XML files uploaded so far : 9.01
                Number of XML files pending upload : 0
                Size of XML files pending upload(MB) : 0.00
                Available disk space on upload filesystem : 65.78%
                Last successful heartbeat to OMS : 2009-01-25 16:21:32
                ---------------------------------------------------------------
                Agent is Running and Ready

                VIRTUAL AGENT:
                Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0.
                Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
                ---------------------------------------------------------------
                Agent Version : 10.2.0.4.0
                OMS Version : 10.2.0.4.0
                Protocol Version : 10.2.0.4.0
                Agent Home : /u08/RDS_Grid_Agent/agent10g
                Agent binaries : /u08/RDS_Grid_Agent/agent10g
                Agent Process ID : 29737
                Parent Process ID : 29711
                Agent URL : https://rds.amee.corp.zim.com:1830/emd/main/
                Repository URL : https://HFAVLOGCP001.amee.corp.zim.com:1159/em/upload
                Started at : 2009-01-25 15:42:40
                Started by user : oracle
                Last Reload : 2009-01-25 15:42:40
                Last successful upload : 2009-01-25 16:18:15
                Total Megabytes of XML files uploaded so far : 7.35
                Number of XML files pending upload : 0
                Size of XML files pending upload(MB) : 0.00
                Available disk space on upload filesystem : 56.60%
                Last successful heartbeat to OMS : 2009-01-25 16:19:48
                ---------------------------------------------------------------
                Agent is Running and Ready
                • 5. Re: virtual agent at active passive cluster
                  679788
                  hi,
                  here is the target.xml :

                  host a:
                  <Targets AGENT_TOKEN="babaaab1417080d8525bc3c67f9233606677286b">
                  <Target TYPE="oracle_emd" NAME="HFARHEL1.amee.corp.zim.com:3872" />
                  <Target TYPE="host" NAME="HFARHEL1.amee.corp.zim.com" />
                  </Targets>

                  virtual host :
                  <Targets AGENT_TOKEN="dd2e6947744bc16e92ea0dff9b9e01af6870a99c">
                  <Target TYPE="oracle_emd" NAME="rds.amee.corp.zim.com:1830" />
                  <Target TYPE="host" NAME="HFARHEL1.amee.corp.zim.com" />
                  - <Target TYPE="oracle_database" NAME="RDS2_HFARHEL1.amee.corp.zim.com">
                  <Property NAME="OracleHome" VALUE="/u01/app/oracle/10.2" />
                  <Property NAME="UserName" VALUE="e167c19b89a7994e" ENCRYPTED="TRUE" />
                  <Property NAME="MachineName" VALUE="HFARHEL1.amee.corp.zim.com" />
                  <Property NAME="Port" VALUE="1521" />
                  <Property NAME="SID" VALUE="RDS2" />
                  <Property NAME="ServiceName" VALUE="RDS2" />
                  </Target>
                  - <Target TYPE="oracle_listener" NAME="LISTENER_DWHTST_HFARHEL1.amee.corp.zim.com">
                  <Property NAME="ListenerOraDir" VALUE="/u01/app/oracle/10.2/network/admin" />
                  <Property NAME="LsnrName" VALUE="LISTENER_DWHTST" />
                  <Property NAME="Machine" VALUE="10.1.2.220" />
                  <Property NAME="OracleHome" VALUE="/u01/app/oracle/10.2" />
                  <Property NAME="Port" VALUE="1526" />
                  </Target>
                  - <Target TYPE="oracle_database" NAME="dwh_HFARHEL1.amee.corp.zim.com">
                  <Property NAME="OracleHome" VALUE="/u01/app/oracle/10.2" />
                  <Property NAME="UserName" VALUE="e167c19b89a7994e" ENCRYPTED="TRUE" />
                  <Property NAME="MachineName" VALUE="10.1.2.220" />
                  <Property NAME="Port" VALUE="1526" />
                  <Property NAME="SID" VALUE="dwh" />
                  <Property NAME="ServiceName" VALUE="" />
                  </Target>
                  - <Target TYPE="oracle_database" NAME="TT2_HFARHEL1.amee.corp.zim.com">
                  <Property NAME="OracleHome" VALUE="/u01/app/oracle/10.2" />
                  <Property NAME="UserName" VALUE="e167c19b89a7994e" ENCRYPTED="TRUE" />
                  <Property NAME="MachineName" VALUE="HFARHEL1.amee.corp.zim.com" />
                  <Property NAME="Port" VALUE="1521" />
                  <Property NAME="SID" VALUE="TT2" />
                  <Property NAME="ServiceName" VALUE="" />
                  </Target>
                  - <Target TYPE="oracle_database" NAME="DGM_HFARHEL1.amee.corp.zim.com">
                  <Property NAME="OracleHome" VALUE="/u01/app/oracle/10.2" />
                  <Property NAME="UserName" VALUE="e167c19b89a7994e" ENCRYPTED="TRUE" />
                  <Property NAME="MachineName" VALUE="HFARHEL1.amee.corp.zim.com" />
                  <Property NAME="Port" VALUE="1521" />
                  <Property NAME="SID" VALUE="DGM" />
                  <Property NAME="ServiceName" VALUE="" />
                  </Target>
                  - <Target TYPE="oracle_database" NAME="RDS_HFARHEL1.amee.corp.zim.com">
                  <Property NAME="OracleHome" VALUE="/u01/app/oracle/10.2" />
                  <Property NAME="UserName" VALUE="e167c19b89a7994e" ENCRYPTED="TRUE" />
                  <Property NAME="MachineName" VALUE="HFARHEL1.amee.corp.zim.com" />
                  <Property NAME="Port" VALUE="1521" />
                  <Property NAME="SID" VALUE="RDS" />
                  <Property NAME="ServiceName" VALUE="" />
                  </Target>
                  - <Target TYPE="oracle_database" NAME="TST_HFARHEL1.amee.corp.zim.com">
                  <Property NAME="OracleHome" VALUE="/u01/app/oracle/10.2" />
                  <Property NAME="UserName" VALUE="e167c19b89a7994e" ENCRYPTED="TRUE" />
                  <Property NAME="MachineName" VALUE="HFARHEL1.amee.corp.zim.com" />
                  <Property NAME="Port" VALUE="1521" />
                  <Property NAME="SID" VALUE="TST" />
                  <Property NAME="ServiceName" VALUE="" />
                  </Target>
                  </Targets>

                  host b :

                  <Targets AGENT_TOKEN="bbabdd4c2fe5b06f34b049da43ac6d22dbe68b15">
                       <Target TYPE="oracle_emd" NAME="HFARHEL2.amee.corp.zim.com:3872"/>
                       <Target TYPE="host" NAME="HFARHEL2.amee.corp.zim.com"/>
                  </Targets>


                  thank you very much.
                  • 6. Re: virtual agent at active passive cluster
                    mdecker77
                    I can see that the problem is within targets.xml of the virtual host. The "host" entry in the virtual host targets.xml should be removed. Documentation states:

                    "Use the Grid Control console to delete any targets that will not move between hosts in a switchover or failover scenario. These might be targets that are not attached to this logical IP address for failover or are not configured for redundancy."

                    This statement applies to the target "<Target TYPE="host" NAME="HFARHEL1.amee.corp.zim.com" /> " of the virtual agent. It is clear that in case of a failover of this virtual agent to host B, it can not monitor the host A.

                    I would recommend to remove the target via Grid Control GUI: Setup -> Agents -> choose rds.amee.corp.zim.com:1830. Now you see all configured targets for the virtual agent. Then select the host A configuration from the target list and select "remove".


                    Best Regards,
                    Martin Decker
                    www.ora-solutions.net
                    • 7. Re: virtual agent at active passive cluster
                      679788
                      hi,
                      thank you,
                      1. isn't the virtual agent suppose to appear as a host in the gc gui? all the fail over targets like db and listeners should be configure with the hostname of the virtual which will move with the fail over.

                      2. is the command emctl deploy agent is relevant also to linux ?
                      • 8. Re: virtual agent at active passive cluster
                        mdecker77
                        1) No, I don´t think that the virtual agent should appear as a host. Both hosts are monitored via their dedicated agents. The virtual agent is reponsible for monitoring the targets, which can run on both hosts.

                        2) Yes, you can use emctl deploy agent on Linux.

                        Regards,
                        Martin
                        • 9. Re: virtual agent at active passive cluster
                          mnazim-Oracle
                          Yes it should. You need to install agent on virtual host by passing ORACLE_HOSTNAME

                          ./runInstaller ORACLE_HOSTNAME=<virtual hostname>