EM GC11.1.0.1 Agent Startup on AIX Fails with Error: nmectl_validate_1386861.1

rongshiyuan發表於2014-08-04



EM 11g: Enterprise Manager Grid Control 11.1.0.1 Agent Startup on AIX Fails with Error: nmectl_validateTZRegion, agentTZoffset =480,and testTZoffset for +08:00:0 do not match (Doc ID 1386861.1)


In this Document

Symptoms
Cause
Solution
References


Applies to:

Enterprise Manager Base Platform - Version 11.1.0.1 to 11.1.0.1 [Release 11.1]
IBM AIX on POWER Systems (64-bit)
Checked for relevance on 29-Aug-2013

Symptoms

Installing the Grid Control 11g Management Agent on AIX 7.1, agent startup fails with this timezone error:

$ ./emctl start agent
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Starting agent ........................................................................................................................... failed.
Consult the log files in: /oracle/agent11g/agent11g/sysman/log



From the /sysman/log/emagent.trc file, this timezone error is logged:

2011-11-15 09:36:38,399 Thread-1 ERROR : Signalled to Exit with status 55. OMS requested shutdown
2011-11-15 09:36:38,399 Thread-1 ERROR pingManager: Did not receive valid response to ping "SHUTDOWN AGENT_TZ_MISMATCH"
2011-11-15 09:41:18,571 Thread-1 ERROR pingManager: OMS decided to shutdown the agent because of the following reason sent from OMS: AGENT_TZ_MISMATCH
2011-11-15 09:41:18,571 Thread-1 ERROR : Signalled to Exit with status 55. OMS requested shutdown
2011-11-15 09:41:18,571 Thread-1 ERROR pingManager: Did not receive valid response to ping "SHUTDOWN AGENT_TZ_MISMATCH"



From the /sysman/log/emdctl.trc file, this additional timezone error is logged:

2011-11-15 14:44:04,908 Thread-1 ERROR main: nmectl.c: nmectl_validateTZRegion, agentTZoffset =480,and testTZoffset for +08:00:0 do
not match
2011-11-15 14:44:05,632 Thread-1 WARN http: nmehl_connect_internal: connect failed to (ractest2:3872): Connection refused (error =
79)
2011-11-15 14:44:05,633 Thread-1 ERROR main: nmectla_agentctl: Error connecting to https://ractest2:3872/emd/main. Returning status
code 1
2011-11-15 14:44:05,909 Thread-1 ERROR util.dates: ldigtzd failed with ret=1804
2011-11-15 14:44:05,909 Thread-1 ERROR main: nmectl.c: nmectl_validateTZRegion, agentTZoffset =480,and testTZoffset for +08:00:0 do
not match
2011-11-15 14:44:06,705 Thread-1 WARN http: nmehl_connect_internal: connect failed to (ractest2:3872): Connection refused (error =79)


Furthermore, from /sysman/log/emagent.nohup, this timezone error is logged:

----- Tue Nov 15 09:41:17 2011::Agent Launched with PID 6357196 at time Tue Nov 15 09:41:17 2011 -----
----- Tue Nov 15 09:41:17 2011::Time elapsed between Launch of Watchdog process and execing EMAgent is 1 secs -----
(pid=6357196): starting emagent version 11.1.0.1.0
OMS decided to shutdown the agent because of the following reason sent from OMS: AGENT_TZ_MISMATCH(pid=6357196): emagent now exiting abnormally - initialization failure. Consult '.trc' and '.log' files.
----- Tue Nov 15 09:41:21 2011::Checking status of EMAgent : 6357196 -----
----- Tue Nov 15 09:41:21 2011::EMAgent exited at Tue Nov 15 09:41:21 2011 with return value 55. -----
----- Tue Nov 15 09:41:21 2011::EMAgent has exited due to initialization failure. -----
----- Tue Nov 15 09:41:21 2011::Stopping other components. -----
----- Tue Nov 15 09:41:21 2011::Commiting Process death. -----
----- Tue Nov 15 09:41:21 2011::Exiting watchdog loop
-----
--- Shared agent
----- Tue Nov 15 10:55:38 2011::tzOffset for +08:00 is 0(min), but agent is runnning with tzOffset 480(min)
-----
----- Tue Nov 15 10:55:38 2011::trying again after waiting for 1 sec to account for daylight transition
-----
----- Tue Nov 15 10:55:38 2011::tzOffset for +08:00 is 0(min), but agent is runnning with tzOffset 480(min)
-----
----- Tue Nov 15 10:55:39 2011::Mismatch detected between timezone in env (UTC) and in /oracle/app/oracle/agent11g/ractest2/sysman/config/emd.properties (+08:00). Forcing value to latter.. -----
Quantifier follows nothing in regex; marked by line 1.







Cause

The environment parameter TZ is set to BEIST-8, which does not match the WBEIST-8/GMT setting for the agent (in /sysman/config/emd.properties):

$ grep -v "^#" /etc/environment | grep TZ
TZ=BEIST-8
$ echo $TZ
BEIST-8

$ date
Tue Nov 15 09:38:13 BEIST 2011
$ date -u
Tue Nov 15 01:38:21 GMT 2011


Solution


Set the agentTZregion value to GMT-8 in emd.properties and start agent.

1. Backup and edit /(node#_for_RAC)/sysman/config/emd.properties and set following parameter value to GMT-8:

agentTZRegion=GMT-8



2) Ensure there are no emagent or emwd processes active from agent_home:

$ps -ef | grep emagent
$ps -ef | grep agent11g
$ps -ef | grep emwd
$netstat -an| grep


3) Connect to the repository database as sysman and set the agent TZ :

SQL> select * from mgmt_targets where target_name like '%agentname%' and target_type='oreacle_emd';
SQL> exec mgmt_target.set_agent_tzrgn('','GMT-8');
SQL> commit;
SQL> select * from mgmt_targets where target_name like '%agentname%' and target_type='oreacle_emd';


4) Now start agent and take a status to confirm successful operation and upload:

$./emctl start agent
$./emctl status agent



Note:
If using agentTZregion=GMT-8 also results in failure, then start the agent with this setting in emd.properties:

$ export TZ=Etc/GMT-8
$ emctl resettz agent


and execute the steps (3) and (4).

References

NOTE:412160.1 - Updated DST transitions and new Time Zones in Oracle Time Zone File patches
NOTE:825933.1 - Grid Control Agent Startup Fails on AIX Server due to Invalid Timezone Setting at the OS

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1244918/,如需轉載,請註明出處,否則將追究法律責任。

相關文章