agentca getting the wrong hostname
- From: Dba DBA <oracledbaquestions@xxxxxxxxx>
- To: oracle-l@xxxxxxxxxxxxx
- Date: Wed, 15 Jun 2011 11:17:26 -0400
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) = @ARGV;
require "$emdRoot/sysman/admin/scripts/semd_common.pl";
print "<Targets>\n";
nmep_printHostTarget();
print "</Targets>\n";
Other related posts:
- » agentca getting the wrong hostname - Dba DBA