IBM Maximo: Instalação do Maximo no Linux via Linha de Comando

From Wiki

Essa instalação é muito simples, somente para meu testes

Colocar os arquivos seguintes arquivos em um diretórios:

  • agent.installer.linux.gtk.x86_64_1.9.2.2.zip
  • was.repo.90501.nd.zip
  • MAM_7.6.1.0_LINUX64.tar.gz
  • MAMMTFP7613IMRepo-signed.zip
  • DB2_AWSE_REST_Svr_11.1_Lnx_86-64.tar.gz
  • v11.1.4fp7_linuxx64_server_t.tar.gz

Instalação WAS

Exportar variável local dos arquivos

export BINFILES=/BinaryFiles

Instalar o IIM

mkdir /InstIIM && cd /InstIIM && unzip $BINFILES/

./installc -log /IM_Install_Unix.xml -acceptLicense

cd $BINFILES && rm -fr /InstIIM

Instalar o WAS 9.0.5.1

/opt/IBM/InstallationManager/eclipse/tools/imcl -acceptLicense install com.ibm.websphere.ND.v90 com.ibm.java.jdk.v8  \
-repositories $BINFILES/was.repo.90501.nd.zip,$BINFILES/sdk.repo.8035.java8.linux.zip \
-installationDirectory /opt/IBM/WebSphere/AppServer \
-preferences com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts=false 

Criar o Profile do WAS

Criar o response file

cd /opt/IBM/WebSphere/AppServer/bin/

cat > maxappserver.rsp  <<EOF
create
profileName=AppSrv01
profilePath=/opt/IBM/WebSphere/AppServer/profiles/AppSrv01
serverName=maxappserver
templatePath=/opt/IBM/WebSphere/AppServer/profileTemplates/default
nodeName=ctgNode01
enableAdminSecurity=true
adminUserName=wasadmin
adminPassword=passw0rd
personalCertValidityPeriod=15
signingCertValidityPeriod=15
EOF

Criar o profile

./manageprofiles.sh -response maxappserver.rsp

Instalação DB2

Exportar variável local dos arquivos

export BINFILES=/BinaryFiles

Bibliotecas Necessárias

yum -y install libstdc++.i686 pam.i686

mkdir /DB2Inst && cd /DB2inst && tar -zxpf $BINFILES/DB2_AWSE_REST_Svr_11.1_Lnx_86-64.tar.gz

Response file

cat > db2awse.rsp  <<EOF
LIC_AGREEMENT=ACCEPT
PROD=DB2_SERVER_EDITION
FILE=/opt/ibm/db2/V11.1
INTERACTIVE=NONE
INSTALL_TYPE=CUSTOM
COMP=JDBC_DATA_SOURCE_SUPPORT
COMP=TEXT_SEARCH
LANG=EN
EOF

Instalando o DB2

./server_awse_o/db2setup -r ./db2awse.rsp -f sysreq

Pós Install

/opt/ibm/db2/V11.1/adm/db2licm -a ./server_awse_o/db2/license/db2awse_o.lic 

rm -rf /DB2Inst/*

Aplicando o fix

tar -zxpf $BINFILES/v11.1.4fp7_linuxx64_server_t.tar.gz

./server_t/installFixPack -n -b /opt/ibm/db2/V11.1 -f NOTSAMP -f update -f nobackup  -f sysreq

Criando a instância

IBM Maximo: Criando a database manualmente para o Maximo

Instalar o Maximo Asset Management

Instalar o MAM 7.6.1.0

mkdir /Launchpad && cd /Launchpad && tar -xpvf $BINFILES/MAM_7.6.1.0_LINUX64.tar.gz

sed -i 's/IBMIMShared/IMShared/g' /Launchpad/SilentResponseFiles/Unix/ResponseFile_MAM_Install_Unix.xml

export BYPASS_PRS=True

/opt/IBM/InstallationManager/eclipse/tools/imcl -input /Launchpad/SilentResponseFiles/Unix/ResponseFile_MAM_Install_Unix.xml \ 
-acceptLicense -log /tmp/MAM_Install_Unix.xml


Instalar o MAM 7.6.1.3

/opt/IBM/InstallationManager/eclipse/tools/imcl install  com.ibm.tivoli.tpae.base.tpae.main \
-repositories $BINFILES/MAMMTFP7613IMRepo-signed.zip  -installationDirectory /opt/IBM/SMP \
-log /tmp/FP_Install_Unix.xml -acceptLicense 

/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.tivoli.tpae.base.mam.main \
-repositories $BINFILES/MAMMTFP7613IMRepo-signed.zip  -installationDirectory /opt/IBM/SMP \
-log /tmp/FP_Install_Unix2.xml -acceptLicense

Configuration --- Rascunho

cat > /root/maximo-config.properties <<EOF
MW.Operation=Configure
# Maximo Configuration Parameters
mxe.adminuserloginid=maxadmin
mxe.adminPasswd=passw0rd
mxe.system.reguser=maxreg
mxe.system.regpassword=passw0rd
mxe.int.dfltuser=mxintadm
maximo.int.dfltuserpassword=passw0rd
MADT.NewBaseLang=EN
MADT.NewAddLangs=pt_BR,ES
mxe.adminEmail=root@localhost
mail.smtp.host=localhost
mxe.db.user=maximo
mxe.db.password=passw0rd
mxe.db.schemaowner=maximo
mxe.useAppServerSecurity=0

# Database Configuration Parameters
Database.Vendor=DB2
Database.DB2.DatabaseName=maxdb76
Database.DB2.ServerHostName=maxdb
Database.DB2.ServerPort=50005
Database.DB2.DataTablespaceName=MAXDATA
Database.DB2.TempTablespaceName=MAXTEMP
Database.DB2.IndexTablespaceName=MAXINDEX
Database.DB2.Vargraphic=true
Database.DB2.TextSearchEnabled=false

# WebSphere Configuration Parameters
ApplicationServer.Vendor=WebSphere
WAS.ND.AutomateConfig=true
WAS.DeploymentManagerHostName=localhost
WAS.NodeName=ctgNode01

WAS.InstallLocation=/opt/IBM/WebSphere/AppServer

WAS.ClusterAutomatedConfig=false
WAS.DeploymentManagerRemoteConfig=true
#WAS.DeploymentManagerProfileName=${WAS_DM_PROFILE_NAME}
#WAS.DeploymentManagerNodeName=${WAS_DM_NODE_NAME}
#WAS.DeploymentManagerRemoteHostName=${WAS_DM_FQDN}
#WAS.DeploymentManagerRemoteHostPort=${DMGR_PORT}
WAS.AdminUserName=wasadmin
WAS.AdminPassword=passw0rd
WAS.VirtualHost=maximo_host
EOF

Configure PAE

/opt/IBM/SMP/ConfigTool/scripts/reconfigurePae.sh -action deployConfiguration -inputfile /root/maximo-config.properties -automatej2eeconfig -deployDemoData

Ver também