Control-M 9 升级 安装 (四)~~ Agent组件安装

4. 安装Agent

 

4.1 关闭防火墙

       安装前需要确认防火强已经关闭

 

4.2 修改服务器hosts映射

       配置hosts文件,添加EM、CTM、Agent、Oracle服务器主机的hostname与IP的映射(由于EM与CTM部署在同一台服务器上、Agent部署在ETL服务器上、元数据资料库用户部署在Oracle服务器上,因此hosts中只需要增加三条记录):

 

       注:必须按照以下形式修改


[root@Mr-MoJi-Agent ~]# cat /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6



192.168.38.11    Mr-MoJi-Agent  Mr-MoJi-Agent.localhost   #此为Agent服务器信息

192.168.38.10    Mr-MoJi-Server    #此为EM、CTM服务器信息

192.168.38.12    Mr-MoJi-DB     #此为资料库Oracle服务器信息

 

4.3 准备安装文件

        Control-M 9.0.19版本Agent安装文件压缩包名称DRKAI.9.0.19.200_Linux-x86_64.z,首先创建文件夹Control-M9.0.19存放压缩包,然后将压缩文件上传至服务器/data/tools/Control-M9.0.19/目录下,并进行解压。


[root@Mr-MoJi-Agent tools]# id

uid=0(root) gid=0(root) groups=0(root)

[root@Mr-MoJi-Agent tools]# pwd

/data/tools

[root@Mr-MoJi-Agent tools]# mkdir Control-M9.0.19

[root@Mr-MoJi-Agent tools]

        执行解压缩:

[root@Mr-MoJi-Agent tools]# cd Control-M9.0.19/

[root@Mr-MoJi-Agent Control-M9.0.19]# ls -l

total 570308

-rw-r--r-- 1 root root 583992411 Sep 30 11:19 DRKAI.9.0.19.200_Linux-x86_64.z

[root@Mr-MoJi-Agent Control-M9.0.19]# tar -zxvf DRKAI.9.0.19.200_Linux-x86_64.z

CheckReq/

CheckReq/Setup_files/

CheckReq/Setup_files/ulimit.sh

CheckReq/Setup_files/XML_TestParsingDefinition.xml

CheckReq/Setup_files/InternalTestDefinitions.xsd

CheckReq/Setup_files/check_req_oracle_db.sql

CheckReq/Setup_files/XML_testParsingDefinitiongSchema.xsd

CheckReq/Setup_files/CheckReq.jar

CheckReq/Setup_files/XML_DefinitionsSunOS.xml

CheckReq/Setup_files/ProductTestDefinitions.xml

CheckReq/Setup_files/XML_DefinitionsAIX.xml

CheckReq/Setup_files/XML_DefinitionsAIXAgent.xml

CheckReq/Setup_files/InternalTestDefinitions.xml

CheckReq/Setup_files/XML_DefinitionsSunOSAgent.xml

CheckReq/Setup_files/XML_DefinitionsLinux.xml

CheckReq/Setup_files/XML_DefinitionsLinuxAgent.xml

CheckReq/checkReqRun.sh

…… #省略部分解压输出

Setup_files/sharch

Setup_files/setagstate.sh

Setup_files/AdditionalCommonVariables.ini

setup.sh

[root@Mr-MoJi-Agent Control-M9.0.19]#

[root@Mr-MoJi-Agent Control-M9.0.19]# ls -l

total 570328

drwxrwxr-x 3  584  324        47 Dec 25  2019 CheckReq

-rw-r--r-- 1 root root 583992411 Sep 30 11:19 DRKAI.9.0.19.200_Linux-x86_64.z

drwxrwxr-x 5  584  324       114 Dec 25  2019 FORMS

drwxrwxr-x 4  584  324      4096 Dec 25  2019 Setup_files

-rwxr-xr-x 1  584  324     12338 Dec 10  2019 setup.sh

[root@Mr-MoJi-Agent Control-M9.0.19]#

 

4.4 创建用户

        以root用户登录Agent服务器,创建ctmagent9用户:

        注:ctmagent9使用bash


[root@Mr-MoJi-Agent home]#  useradd -d /home/ctmagent9 -s /bin/bash -m ctmagent9

        设置密码:passwd ctmagent9(ctmagent9)


[root@Mr-MoJi-Agent home]# passwd ctmagent9

Changing password for user ctmagent9.

New password:

Retype new password:

passwd: all authentication tokens updated successfully.

[root@Mr-MoJi-Agent home]#

 

4.5 配置用户属性

        配置安装目录属组及用户权限

  chmod -R 755 /home/ctmagent9

  chown -R ctmagent9:ctmagent9 /data/tools/Control-M9.0.19 (安装文件存放目录)

 

4.6 Agent安装步骤

        以ctmagent9用户登录服务器,切换至安装文件所在目录。

[root@Mr-MoJi-Agent Control-M9.0.19]# su - ctmagent9

[ctmagent9@Mr-MoJi-Agent ~]$ ls -l

total 0

[ctmagent9@Mr-MoJi-Agent ~]$ pwd

/home/ctmagent9

[ctmagent9@Mr-MoJi-Agent home]$ cd /data/tools

[ctmagent9@Mr-MoJi-Agent tools]$ ls -l

total 0

drwxrwxr-x 5 ctmagent9 ctmagent9 109 Sep 30 11:20 Control-M9.0.19

[ctmagent9@Mr-MoJi-Agent tools]$ cd Control-M9.0.19/

[ctmagent9@Mr-MoJi-Agent Control-M9.0.19]$ ls -l

total 570328

drwxrwxr-x 3 ctmagent9 ctmagent9        47 Dec 25  2019 CheckReq

-rwxrwxr-x 1 ctmagent9 ctmagent9 583992411 Sep 30 11:19 DRKAI.9.0.19.200_Linux-x86_64.z

drwxrwxr-x 5 ctmagent9 ctmagent9       114 Dec 25  2019 FORMS

drwxrwxr-x 4 ctmagent9 ctmagent9      4096 Dec 25  2019 Setup_files

-rwxrwxr-x 1 ctmagent9 ctmagent9     12338 Dec 10  2019 setup.sh

        执行./setup.sh

        安装流程如下所示:


[ctmagent9@Mr-MoJi-Agent Control-M9.0.19]$ ./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?

==  No   Yes ==



Enter command:

y

       步骤2:

             同意安装许可协议

             a.输入s并回车跳过阅读条款

             b.输入y并回车同意许可条款


=== Control-M/Agent 9.0.19.200 Installation ===





=== License Agreement ===





END USER LICENSE AGREEMENT



BY OPENING THE PACKAGE, DOWNLOADING OR 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 RETURNED 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 Region where Customer acquired the License as described in Section 18 ("BMC").

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, license entitlement descriptions, 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 the 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.

"Territory" means the country(ies) where Customer is licensed to install the Product as specified in the Order.

2.SCOPE. Licenses are granted, and Support is obtained, solely by execution of Orders. Each Order is deemed to be a discrete contract, separate from each other Order, unless expressly stated otherwise therein, and in the event of a direct conflict between any Order and the terms of this Agreement, the terms of the Order will control only if the Order is agreed to by each party. Orders may be entered under this Agreement by and between (a) BMC or an Affiliate of BMC; and (b) the Customer or an Affiliate of Customer. With respect to an Order, the terms "BMC" and "Customer" as used in this Agreement will be deemed to refer to the entities that execute that Order, the Order will be considered a two party agreement between such entities, and BMC or its authorized reseller will separately invoice the Customer named in the Order for the associated License fees and Support fees. Neither execution of this Agreement, nor anything contained herein, shall obligate either party to enter into any Orders. In the event an Order is proposed by BMC and is deemed to constitute an offer, then acceptance of such offer is limited to its terms. In the event Customer proposes an Order by submitting a purchase order, then regardless of whether BMC acknowledges, accepts or fully or partially performs under such purchase order, BMC OBJECTS to any additional or different terms in the purchase order.



Press  to continue or  to skip: s



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

       步骤3:

             配置agent参数

             由于3、4选项已经默认输入完毕,故没有特殊要求可以不需要改动

             5、6选项是设置JRE的配置项,默认使用Control-M产品自带的JRE即可,不需要改动

             a.输入”1”并回车,然后输入CTM服务器的主机名称()

             b.输入”2”并回车,然后输入CTM服务器备机的名称()

             选项”1”、”2”填写完毕后,输入回车,若服务器可以正常联通,则会进行到下一步

 

       注意:这里填写的CTM服务器的主机名称(只能是主机名称,不能是IP)。

=== Control-M/Agent 9.0.19.200 Installation ===





=== 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



5 : (x) Dedicated JRE (uses OpenJDK as default)



6 : ( ) External JRE (select an alternative JRE)





==  Cancel 

Previous Panel / Next Panel == Enter command or item number you wish to change: 1 Enter a new value for Primary Control-M/Server host: Pre-SJPT-DEV2 === Control-M/Agent 9.0.19.200 Installation === === Product Settings : Control-M/Agent parameters === 1 : Primary Control-M/Server host: Pre-SJPT-DEV2 2 : Authorized Control-M/Server hosts: 3 : Agent-to-Server port number: 7005 4 : Server-to-Agent port number: 7006 5 : (x) Dedicated JRE (uses OpenJDK as default) 6 : ( ) External JRE (select an alternative JRE) == Cancel

Previous Panel / Next Panel == Enter command or item number you wish to change: 2 Enter a new value for Authorized Control-M/Server hosts: Pre-SJPT-DEV2 === Control-M/Agent 9.0.19.200 Installation === === Product Settings : Control-M/Agent parameters === 1 : Primary Control-M/Server host: Pre-SJPT-DEV2 2 : Authorized Control-M/Server hosts: Pre-SJPT-DEV2 3 : Agent-to-Server port number: 7005 4 : Server-to-Agent port number: 7006 5 : (x) Dedicated JRE (uses OpenJDK as default) 6 : ( ) External JRE (select an alternative JRE) == Cancel

Previous Panel / Next Panel == Enter command or item number you wish to change:

       步骤4:

             确认配置信息,若无需修改直接输入回车即可,进行下一步

=== Control-M/Agent 9.0.19.200 Installation ===





=== Summary ===





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



Destination Folder: /data/tools/Control-M9.0.19



Primary Control-M/Server Host: Pre-SJPT-DEV2



Control-M/Server Hosts: Pre-SJPT-DEV2



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.



==  Cancel 

Previous Panel / Install Generate an automatic installation configuration file == Enter command:

       步骤5:

             开始安装,安装完成后,程序自动退出。

=== Control-M/Agent 9.0.19.200 Installation ===





=== Installation ===





[ Starting to unpack ]

[ Processing package: Check pre-requirements for Control-M/Agent ]

[ Processing package: Control-M/Agent files ]

[ Processing package: Configure Control-M/Agent ]

[ Processing package: Create softlinks for Control-M/Agent ]

[ Processing package: Start and enable Control-M Agent ]

[ Processing package: The installed-versions.txt update. ]

[ Processing package: Write uninstaller ]

[ Unpacking finished ]ler



=== Control-M/Agent 9.0.19.200 Installation ===





=== Installation Result - Success ===





Installation has completed successfully.



Note:



1. To start working with Control-M/Agent 9.0.19.200, you must close

 the current session and open a new one.



2. If you plan to run jobs whose owner is different than 'ctmagent9',

perform the following steps after exiting the installation:

a. Login as root user, execute the '/data/tools/Control-M9.0.19/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 'ctmagent9' when the host is restarted,

implement the '/data/tools/Control-M9.0.19/ctm/scripts/rc.agent_user' script

or replace any existing startup script with it.

For more information, refer to the Installation Guide.





[ctmagent9@Mr-MoJi-Agent Control-M9.0.19]$

 

         注意:目前此种安装模式是non root模式,在配置调度任务是需要设置执行调度任务的操作系统用户密码,若采用root模式,则不需要输入密码。non root与root模式可以互相切换,可以根据实际需要进行调整。

 

        至此,Control-M的Agent组件安装结束。

你可能感兴趣的:(Control-M)