BMC Control-M8.0服務器 安裝(三)

接着上一篇,此次安裝Control-M的另一個組件CTM-Server

五、安裝Agent
1.服務器配置
以root用戶登錄Agent服務器(192.168.38.10),創建ctmagent用戶:
注:ctmagent使用bash

useradd -d /home/ctmagent -s /bin/bash -m ctmagent

設置密碼: passwd ctmagent(default123)

[root@Mr-MoJi home]# passwd ctmagent
Changing password for user ctmagent.
New password: 
Retype new password: 
passwd: all authentication tokens updated successfully.

b.修改主機名稱
a.若未建立(Mr-MoJi),則修改主機名稱,否則跳過此步驟
vi /etc/sysconfig/network

[root@Mr-MoJi ~]# cat /etc/sysconfig/network
# Created by anaconda
NETWORKING=yes
HOSTNAME=Mr-MoJi

b.確認啓動修改的主機名稱:

[root@Mr-MoJi ~]# hostname
Mr-MoJi

c.配置安裝目錄屬組及用戶權限

chmod -R 755 /home/ctmagent
chown -R ctmagent:ctmagent /data/tools/Control-M(Agent安裝文件存放目錄)

2.Agent安裝
以ctmagent用戶登錄服務器(192.168.38.10),切換至安裝文件所在目錄,設置環境變量: export INSTALL_AGENT_LINUX_X86_64=Y

[root@Mr-MoJi ~]# su - ctmagent
[ctmagent@Mr-MoJi ~]$ cd /data/tools/Control-M_V8.0/Agent/
[ctmagent@Mr-MoJi Agent]$ pwd
/data/tools/Control-M_V8.0/Agent
[ctmagent@Mr-MoJi Agent]$ ls -l
total 84
drwxrwxrwx 21 ctmagent ctmagent  4096 Sep  9  2015 ctm
drwxrwxrwx  5 ctmagent ctmagent   108 Sep  2  2015 FORMS
-rwxrwxrwx  1 ctmagent ctmagent 72280 Oct 17  2012 setup.exe
-rwxrwxrwx  1 ctmagent ctmagent  5381 Jun  6  2012 setup.sh
drwxrwxrwx 11 ctmagent ctmagent   153 Sep  2  2015 UNIX
drwxrwxrwx  5 ctmagent ctmagent    85 Sep  2  2015 Windows

[ctmagent@Mr-MoJi ~]$ export INSTALL_AGENT_LINUX_X86_64=Y

執行./setup.sh
安裝流程如下所示:

步驟1:同意在非圖形模式下安裝
輸入y並回車

Starting graphical user interface...

The $DISPLAY environment variable is not defined.

Install will continue in non graphical mode.
Are you sure you want to continue?
== <N> No  <Y> Yes ==

Enter command:
y

步驟2:同意安裝許可協議

輸入s並回車跳過閱讀條款
輸入y並回車同意許可條款

=== License Agreement ===


END USER LICENSE AGREEMENT
BY OPENING THE PACKAGE, INSTALLING, PRESSING "AGREE" OR "YES" OR USING THE PRODUCT, THE ENTITY OR INDIVIDUAL ENTERING INTO THIS AGREEMENT AGREES TO BE BOUND BY THE FOLLOWING TERMS. IF YOU DO NOT AGREE WITH ANY OF THESE TERMS, DO NOT INSTALL OR USE THE PRODUCT, PROMPTLY RETURN THE PRODUCT TO BMC OR YOUR BMC RESELLER, AND IF YOU ACQUIRED THE LICENSE WITHIN 15 DAYS OF THE DATE OF YOUR ORDER CONTACT BMC OR YOUR BMC RESELLER FOR A REFUND OF LICENSE FEES PAID. IF YOU REJECT THIS AGREEMENT, YOU WILL NOT ACQUIRE ANY LICENSE TO USE THE PRODUCT. 
This Agreement ("Agreement") is between the entity or individual entering into this Agreement ("Customer") and the BMC Entity for the applicable Territory as described in Section 19 ("BMC"). In addition to the restrictions imposed under this Agreement, any other usage restrictions contained in the Product installation instructions or release notes shall apply to your use of the Product. 
Territory: The country where Customer acquired the license. 
1.GENERAL DEFINITIONS. 
"Affiliate" is an entity that controls, is controlled by or shares common control with BMC or Customer, where such control arises from either (a) a direct or indirect ownership interest of more than 50% or (b) the power to direct or cause the direction of the management and policies, whether through the ownership of voting stock by contract, or otherwise, equal to that provided by a direct or indirect ownership of more than 50%. 
"Documentation" means the technical publications relating to the software, such as release notes, reference, user, installation, systems administrator and technical guidelines, included with the Product.
"Licensed Capacity" is the amount of each Product licensed as established in the Order. 
"Order" is an agreed written or electronic document, subject to the terms of this Agreement that identifies the Products to be licensed and their Licensed Capacity and/or the Support to be purchased and the fees to be paid. 
"Product" is the object code of the software and all accompanying Documentation delivered to Customer, including all items delivered by BMC to Customer under Support. 
"Support" is the support services program as further specified in this Agreement.

Press <Enter> to continue or <S> to skip: s

Do you accept and agree to the terms of this Software License Agreement (Y/N)?y

步驟3:配置Agent參數
由於3、4選擇已經默認輸入完畢,故沒有特殊要求可以不需要改動
a.輸入’1’並回車,然後輸入CTM-Server服務器的主機名稱(Mr-MoJi)
b.輸入’2’並回車,然後輸入CTM-Server服務器的備機名稱(Mr-MoJi)
選項’1’、'2’填寫完畢後,輸入回車,若服務器可以正常聯通,則會進行到下一步

注意:這裏填寫的屙屎CTM-Server服務器的主機名稱(只能是主機名稱,不能是IP),而不是agent的,在分佈式部署方式中需求留意。

=== Product Settings : Control-M/Agent parameters ===


1 : Primary Control-M/Server host: 

2 : Authorized Control-M/Server hosts: 

3 : Agent-to-Server port number: 7005

4 : Server-to-Agent port number: 7006


== <C> Cancel <P> Previous Panel <N>/<Enter> Next Panel ==

Enter command or item number you wish to change: 1

Enter a new value for Primary Control-M/Server host: Mr-MoJi

=== Product Settings : Control-M/Agent parameters ===


1 : Primary Control-M/Server host: Mr-MoJi

2 : Authorized Control-M/Server hosts: 

3 : Agent-to-Server port number: 7005

4 : Server-to-Agent port number: 7006


== <C> Cancel <P> Previous Panel <N>/<Enter> Next Panel ==

Enter command or item number you wish to change: 2

Enter a new value for Authorized Control-M/Server hosts: Mr-MoJi

=== Product Settings : Control-M/Agent parameters ===


1 : Primary Control-M/Server host: Mr-MoJi

2 : Authorized Control-M/Server hosts: Mr-MoJi

3 : Agent-to-Server port number: 7005

4 : Server-to-Agent port number: 7006


== <C> Cancel <P> Previous Panel <N>/<Enter> Next Panel ==

Enter command or item number you wish to change: 

步驟4:確認配置信息,若無需修改直接輸入回車即可,進行下一步

=== Summary ===


  You are about to install Control-M/Agent version 8.0.00  

Destination Folder: /data/tools/Control-M_V8.0/Agent 

Primary Control-M/Server Host: Mr-MoJi 

Control-M/Server Hosts: Mr-MoJi 

Agent To Server Port: 7005 

Server To Agent Port: 7006 
 
 You are installing the agent in non root  mode. 
 In this mode you may need to define job owners passwords in Control-M/Server.
 For more information see the installation guide. 

== <C> Cancel <P> Previous Panel <I>/<Enter> Install <G> Generate an automatic installation configuration file ==

Enter command: 

步驟5:開始安裝,安裝完成後,程序自動退出
注意:我這裏在安裝時,總是會報這個創建連接報錯的信息,不斷輸入r(‘Retry’)後,可以安裝成功。

=== Installation ===


[ Starting to unpack ]
[ Processing package: Control-M/Agent files ]
[ Processing package: Configure Control-M/Agent ]
[ Processing package: Create softlinks for Control-M/Agent ]

Error in Control-M/Agent 8.0.00 Installation

The following error occurred: java.io.IOException: Create link '/data/tools/Control-M_V8.0/Agent/ctm/exe' for '/data/tools/Control-M_V8.0/Agent/ctm/exe_800' failed.

...#這裏省略了一些報錯信息


Enter command: r
[ Processing package: Cleanup ]
[ Processing package: Create softlinks for Control-M/Agent ]
[ Processing package: Start agent processes ]
[ Processing package: The installed-versions.txt update. ]
[ Processing package: Write uninstaller ]
[ Unpacking finished ]

=== Installation Result - Success ===


Installation has completed successfully.

Supplementary information:

1. To start working with Control-M/Agent 8.0.00, you must close 
 the current session and open a new one.

2. If you plan to run jobs whose owner is different than 'ctmagent',
perform the following steps after exiting the installation:
a. Login as root user, execute the '/data/tools/Control-M_V8.0/Agent/ctm/scripts/set_agent_mode' script
and enable non-root mode.
b. Define job owners passwords in Control-M using CCM or ctmsetown utility.

3. If you want the agent to start as user 'ctmagent' when the host is restarted,
implement the '/data/tools/Control-M_V8.0/Agent/ctm/scripts/rc.agent_user' script
or replace any existing startup script with it.
For more information, refer to the Installation Guide.

至此,Control-M的Agnet組件安裝結束。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章