Issue: Received Agent is Unreachable
(REASON = masisa01) but the host is reachable
Verified agent logs,It is down after daylight saving time changed last night
Tried
to start agent, it got failed
[oracle@Hostname
bin]$ ./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.
The
agentTZRegion value in /oracle/agent11g/agent11g/sysman/config/emd.properties
is not in agreement with what agent thinks it should be.Please verify your
environment to make sure that TZ setting has not changed since the last start
of the agent.
If you
modified the timezone setting in the environment, please stop the agent and exectute 'emctl resetTZ agent'
and also execute the script
mgmt_target.set_agent_tzrgn(<agent_name>, <new_tz_rgn>) to get the
value propagated to repository.
Consult
the log files in: /oracle/agent11g/agent11g/sysman/log
Tried to reset time zone , failed
[oracle@Hostname
bin]$./emctl resetTZ agent
Oracle
Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright
(c) 1996, 2010 Oracle Corporation. All rights reserved.
Updating
/oracle/agent11g/agent11g/sysman/config/emd.properties...
-----
Mon Oct 3 12:06:01 2016::tzOffset for Australia/Sydney is 600(min), but
agent is runnning with tzOffset 660(min)
-----
-----
Mon Oct 3 12:06:01 2016::trying again after waiting for 1 sec to account
for daylight transition
-----
----- Mon Oct 3 12:06:01
2016::tzOffset for Australia/Sydney is 600(min), but agent is runnning with
tzOffset 660(min)
-----
resetTZ failed.
The
agentTZRegion in:
/oracle/agent11g/agent11g/sysman/config/emd.properties
is not
in agreement with what the agent thinks it should be.
Fix
your environment.
Pick a
TZ value that corresponds to time zone settings listed in:
/oracle/agent11g/agent11g/sysman/admin/supportedtzs.lst
Changed
TZ environment variable
grep
TZ /oracle/agent11g/agent11g/sysman/config/emd.properties
agentTZRegion=Australia/Sydney
[oracle@Hostname bin]$ export TZ=Australia/Sydney+1
Reset
TIMEZONE completed successfully
[oracle@Hostname bin]$ ./emctl resetTZ agent
Oracle Enterprise Manager 11g Release 1 Grid
Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation.
All rights reserved.
Updating
/oracle/agent11g/agent11g/sysman/config/emd.properties...
Successfully updated
/oracle/agent11g/agent11g/sysman/config/emd.properties.
Login as the em repository user and run the
script:
exec mgmt_target.set_agent_tzrgn('Hostname:3872','GMT')
and commit the changes
This can be done for example by logging into
sqlplus and doing
SQL> exec mgmt_target.set_agent_tzrgn('Hostname:3872','GMT')
SQL> commit
Started
Agent
[oracle@Hostname bin]$ ./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 .... started.
[oracle@Hostname bin]$ ./emctl status agent
Oracle Enterprise Manager 11g Release 1 Grid
Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation.
All rights reserved.
---------------------------------------------------------------
Agent Version : 11.1.0.1.0
OMS Version :
11.1.0.1.0
Protocol Version : 11.1.0.0.0
Agent
Home : /oracle/agent11g/agent11g
Agent binaries :
/oracle/agent11g/agent11g
Agent Process ID : 28284
Parent Process ID : 28264
Agent
URL : https://Hostname:3872/emd/main/
Repository URL : https://masoemHost.XX.XXX.ad:1159/em/upload
Started
at : 2016-10-03 01:18:51
Started by user : oracle
Last Reload :
2016-10-03 01:18:51
Last successful
upload
: 2016-10-03 01:19:26
Total Megabytes of XML files uploaded so far
: 1.11
Number of XML files pending
upload
: 0
Size of XML files pending upload(MB)
: 0.00
Available disk space on upload
filesystem : 50.19%
Last successful heartbeat to
OMS :
2016-10-03 01:19:24
---------------------------------------------------------------
Agent is Running and Ready
No comments:
Post a Comment