SA-DBA

Jul 9 2009   4:31PM GMT

Silent Install of Oracle EM Agent 10.2.0.4

Richard Evans Richard Evans Profile: Richard Evans

I install a lot of Oracle EM Agents… it’s time consuming and I never seem to do it quite the same way. So I decided to do what any lazy computer guy would do and spend a day configuring various response files so I don’t ever have to work again! Well, at least so I don’t have to manually install EM Agent 10.2.0.4 again :-0

I changed was the base directory and the OMSConnectInfo variables. I think that was it… double check the file though.

[oracle: /oracle] vi /group/software/oracle/stage/102_64/Agents/10.2.0.4/solaris/response/additional_agent.rsp

BASEDIR=/oracle/OracleHomes
sl_OMSConnectInfo={“omsapp”,”1159″}

cd /group/software/oracle/stage/102_64/Agents/10.2.0.4/solaris/agent

./runInstaller -silent -responseFile /group/software/oracle/stage/102_64/Agents/10.2.0.4/solaris/response/additional_agent.rsp -force

Next, what I like to do is setup the Agent environment so we can use it’s $ORACLE_HOME variables. I put the agent information in /var/opt/oracle/oratab so I can easily assume it’s environment:

echo “agt:/oracle/OracleHomes/agent10g:Y” >> /var/opt/oracle/oratab

[oracle: /oracle] grep agt /var/opt/oracle/oratab
agt:/oracle/OracleHomes/agent10g:Y

[oracle: /oracle] oraenv
ORACLE_SID = [DDSC1] ? agt

Check if the agent is running, if so, shut it down!

[oracle: /oracle/OracleHomes/agent10g] ps -ef | grep ora
oracle 19566 17696 0 16:26:42 pts/8 0:00 /oracle/OracleHomes/agent10g/perl/bin/perl /oracle/OracleHomes/agent10g/bin/emw
oracle 20102 12101 0 16:27:39 pts/8 0:00 ps -ef
oracle 7585 7207 0 16:10:39 pts/1 0:00 -ksh
oracle 20103 12101 0 16:27:39 pts/8 0:00 grep ora
oracle 19574 19566 0 16:26:43 pts/8 0:03 /oracle/OracleHomes/agent10g/bin/emagent
root 18306 17696 0 14:39:11 ? 0:00 /usr/lib/dmi/snmpXdmid -s orastc1
oracle 12101 12088 0 16:16:15 pts/8 0:00 -ksh
oracle 15290 17696 0 16:19:18 ? 0:00 /oracle/STC1/102_64/bin/tnslsnr LISTENER -inherit

[oracle: /oracle/OracleHomes/agent10g] emctl stop agent
Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0.
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
Stopping agent … stopped.

To secure an Agent when the OMS has already been secured. Reference Note 283091.1 on Metalink.

vi /oracle/OracleHomes/agent10g/sysman/config/emd.properties

Make sure you change the following lines to read https not http.

EMD_URL=https://oradtc1:3872/emd/main/
REPOSITORY_URL=https://omsapp:1159/em/upload/
emdWalletSrcUrl=https://omsapp:1159/em/wallets/emd[/code]

Now secure the agent!!

[oracle: /oracle] emctl secure agent
Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0.
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
Enter Agent Registration password :
Agent is already stopped… Done.
Securing agent… Started.
Requesting an HTTPS Upload URL from the OMS… Done.
Requesting an Oracle Wallet and Agent Key from the OMS… Done.
Check if HTTPS Upload URL is accessible from the agent… Done.
Configuring Agent for HTTPS in CENTRAL_AGENT mode… Done.
EMD_URL set in /oracle/OracleHomes/agent10g/sysman/config/emd.properties
publicKeyFile = /oracle/OracleHomes/agent10g/sysman/config/nmosudo.props
Generating RSA keys.

Saving private key in wallet.
SaveKeyWallet: Cannot open wallet (error=28759): file:/oracle/OracleHomes/agent10g/sysman/config
SaveKeyWallet: Re-creating wallet.

Reading private key from wallet.

Saving public key into file.

Reading public key from file.

Encrypting clear-text: gensudoprops pass.

Decrypting encrypted-text.
Decrypted Text: gensudoprops pass
Securing agent… Successful.

Fire the bad boy back up!

[oracle: /oracle] emctl start agent

Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0.
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
Starting agent …… started.

If this happens…

[oracle: /oracle] emctl start agent
Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0.
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
Starting agent ….. failed.
Failed to start HTTP listener.
Consult the log files in: /oracle/OracleHomes/agent10g/sysman/log

Re-run the secure command…

[oracle: /oracle/OracleHomes/agent10g/sysman/config] emctl secure agent
Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0.
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
Enter Agent Registration password :
Agent is already stopped… Done.
Securing agent… Started.
Requesting an HTTPS Upload URL from the OMS… Done.
Requesting an Oracle Wallet and Agent Key from the OMS… Done.
Check if HTTPS Upload URL is accessible from the agent… Done.
Configuring Agent for HTTPS in CENTRAL_AGENT mode… Done.
EMD_URL set in /oracle/OracleHomes/agent10g/sysman/config/emd.properties
publicKeyFile = /oracle/OracleHomes/agent10g/sysman/config/nmosudo.props
Generating RSA keys.

Saving private key in wallet.

Reading private key from wallet.

Saving public key into file.

Reading public key from file.

Encrypting clear-text: gensudoprops pass.

Decrypting encrypted-text.
Decrypted Text: gensudoprops pass
Securing agent… Successful.

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: