[oracle@edsir4p1-PROD2 ~]$ mkdir -p /u01/app/agentbase
[oracle@edsir4p1-PROD2 ~]$ cd /u01/app/agentbase
[oracle@edsir4p1-PROD2 agentbase]$ cp /home/oracle/Desktop/agentDownload.linux .
[oracle@edsir4p1-PROD2 agentbase]$ chmod +x agentDownload.linux
[oracle@edsir4p1-PROD2 agentbase]$ ll
total 40
-rwxr-xr-x 1 oracle oinstall 38525 Nov 6 01:46 agentDownload.linux
[oracle@edsir4p1-PROD2 agentbase]$ ./agentDownload.linux
agentDownload.linux invoked on Mon Nov 6 01:46:55 UTC 2017 with Arguments ""
agentDownload.linux: Invalid Invocation
Usage: agentDownload.linux -b[cdhimnoprtuvxyNR]
b - Base installation location for Agent Oracle home
d - Do NOT initiate automatic target discovery
h - Usage (this message)
i - Inventory pointer location file
l - To specify as local host (pass -local to runInstaller)
m - Management Service host name for downloading the Management Agent software
n - Cluster name
o - Old Oracle Home location during Upgrade
p - Static port list file
r - Port for connecting to the Management Service host
t - Do NOT start the Agent
u - Upgrade
v - Inventory directory location
x - Debug output
c - CLUSTER_NODES
N - Do NOT prompt for Agent Registration Password
R - To use virtual hostname(ORACLE_HOSTNAME) for this installation. If this is being used along with more than one cluster nodes through -c option, then -l option also needs to be passed.
y - Decline Security Updates.
[oracle@edsir4p1-PROD2 agentbase]$ ./agentDownload.linux -b /u01/app/agentbase -m edsir1p8.us.oracle.com -r 7799 -y
agentDownload.linux invoked on Mon Nov 6 01:49:01 UTC 2017 with Arguments "-b /u01/app/agentbase -m edsir1p8.us.oracle.com -r 7799 -y"
Platform=Linux.i686, OS=linux
GetPlatform:returned=0, and os is set to: linux, platform=Linux.i686
Creating /u01/app/agentbase/agentDownload11.1.0.1.0Oui ...
LogFile for this Download can be found at: "/u01/app/agentbase/agentDownload11.1.0.1.0Oui/agentDownload.linux110617014901.log"
Running on Selected Platform: Linux.i686
Installer location: /u01/app/agentbase/agentDownload11.1.0.1.0Oui
Downloading Agent install response file ...
Downloading Agent install response file ...
Executing wget_get_file
。。。。。。。。。。省略部分。。。。。。
Finished Downloading agent_download.rsp with Status=0
Response file check Complete - Success
Checking the writable permission for baseDir - passed
Provide the Agent Registration password so that the Management Agent can communicate with Secure Management Service.
Note: You may proceed with the installation without supplying the password; however, Management Agent can be secured manually after the installation.
If Oracle Management Service is not secured, agent will not be secured, so continue by pressing Enter Key.
Enter Agent Registration Password: <<<<=输入密码
Downloading Oracle Installer ...
Executing wget_get_file https://edsir1p8.us.oracle.com:7799/agent_download/11.1.0.1.0/linux/oui/oui_linux.jar
using the url https://edsir1p8.us.oracle.com:7799/agent_download/11.1.0.1.0/ to access OMS
。。。。。。。。。。省略部分。。。。。。
Configuration assistant "Agent Configuration Assistant" Succeeded
AgentPlugIn:agent configuration finished with status = true
Running Configuration assistant "Agent Add-on Plug-in"
Configuration assistant "Agent Add-on Plug-in" Succeeded
Querying Agent status: Agent is running
Removing the copied stuff.....
Removed: /u01/app/agentbase/agentDownload11.1.0.1.0Oui/oui_linux.jar
Removed: /u01/app/agentbase/agentDownload11.1.0.1.0Oui/agent_download.rsp
Removed:/u01/app/agentbase/agentDownload11.1.0.1.0Oui/Disk1
Log name of installation can be found at: "/u01/app/agentbase/agentDownload.linux110617014901.log"
/u01/app/agentbase/agent11g/root.sh needs to be executed by root to complete this installation.
[oracle@edsir4p1-PROD2 agentbase]$ sudo /u01/app/agentbase/agent11g/root.sh
[oracle@edsir4p1-PROD2 agentbase]$ ll
total 80
drwxr-xr-x 40 oracle oinstall 4096 Nov 6 01:53 agent11g
drwxr-xr-x 2 oracle oinstall 4096 Nov 6 01:53 agentDownload11.1.0.1.0Oui
-rwxr-xr-x 1 oracle oinstall 38525 Nov 6 01:46 agentDownload.linux
-rw-r--r-- 1 oracle oinstall 78 Nov 6 01:46 agentDownload.linux110617014655.log
-rw-r--r-- 1 oracle oinstall 24908 Nov 6 01:53 agentDownload.linux110617014901.log
[oracle@edsir4p1-PROD2 agentbase]$ cd agent11g/bin/
[oracle@edsir4p1-PROD2 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 : /u01/app/agentbase/agent11g
Agent binaries : /u01/app/agentbase/agent11g
Agent Process ID : 26954
Parent Process ID : 26914
Agent URL : https://edsir4p1.us.oracle.com:3872/emd/main/
Repository URL : https://edsir1p8.us.oracle.com:4900/em/upload
Started at : 2017-11-06 01:53:15
Started by user : oracle
Last Reload : 2017-11-06 01:53:15
Last successful upload : 2017-11-06 01:55:13
Total Megabytes of XML files uploaded so far : 17.86
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0.00
Available disk space on upload filesystem : 83.54%
Last successful heartbeat to OMS : 2017-11-06 01:57:20
---------------------------------------------------------------
Agent is Running and Ready
[oracle@edsir4p1-PROD2 bin]$
|