agentca getting the wrong hostname

From: Dba DBA <oracledbaquestions_at_gmail.com>
Date: Wed, 15 Jun 2011 11:17:26 -0400
Message-ID: <BANLkTim5tfO5_yV=66QiOOLS4MRX_oGyRg_at_mail.gmail.com>



oms: 10.2.0.5
agent: 10.2.0.3 (will be upgraded)
oms host: linux redhat 4
agent host: hp-unix

I noticed that my targets.xml file had he wrong hostname for all of the targets. I do not know how the server was configured. So I re-created the targets.xml file and followed the note listed below. Same problem. So I started reading the agentca.pl script and found another note that lead me to host.pl, but I don't know perl. Does anyone know how oracle discovers the host?

Here are the notes I used and then I will list the oracle scripts I am reading.

Grid Control Target Maintenance: How To Recreate the Targets.xml File in Grid Control 10.2.x Using 'agentca' Commands [ID 365252.1]   *Grid Control Target Maintenance: Overview of Target Discovery in 10g Grid Control [ID 239224.1]*

Scripts

$ORACLE_HOME/bin/agentca.pl
$ORACLE_HOME/sysman/admin/discover/host.pl

Here is what I think is doing the discovery, but I can't find, nmep_printHostTarget(). I checked the library below, but don't see it. It may be part of oraPerl, but I don't know where to find that. This is in the host.pl script:

($emdRoot,$hostName,$crsHome) = _at_ARGV; require "$emdRoot/sysman/admin/scripts/semd_common.pl"; print "<Targets>\n";
nmep_printHostTarget();
print "</Targets>\n";

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Jun 15 2011 - 10:17:26 CDT

Original text of this message