Instalando o Lotus Sametime Gateway 8.5 no Linux
ARTIGO ATUALIZADO PARA A VERSÃO 8.5.1
RESUMO
Nesta série de artigos estarei mostrando como instalar o IBM Lotus Sametime Gateway 8.5.1 no Linux.
OBS.:USANDO APENAS O MODO TEXTO
Pacotes Necessários Software
- CZII5ML - IBM Lotus Sametime Gateway Server 8.5.1 AIX Linux Solaris Multilingual
- CZA6UML - WebSphere Application Server Network Deployment V7.0.0.3 Customized Installation Package Linux x86 for Sametime 8.5.1 Multilingual
- CZLF5ML - IBM WebSphere V7.0.0.3 iFixes para Sametime V8.5.1 Windows, AIX, Linux x86, zLinux, Solaris, IBM i Multilingual.
Pré-requisitos
Informações do LDAP
- Todos os nomes de servidores devem ser resolvidos via DNS (or via arquivo HOSTS)
- Tenhas em mãos as seguintes informações do LDAP
- LDAP Hostname
- LDAP Port
- LDAP Bind User
- LDAP Bind User Password
- LDAP BaseDN
Instalando os pacotes Necessários
Instale os seguintes pacotes ao seu linux:
- rpm - rpm-build - popt
se você estiver utilizando o yum faça o seguinte:
> yum -y install rpm rpm-build popt
Passos para a Instalação
Criando a base no DB2
Com o usuário root desempacto os arquivos de instalação dentro do diretório do db2admin ou db2inst1
# cd /home/db2admin # mkdir gw # cd gw # tar -xvf /root/CZII5ML.tar # cd .. # chown -R db2admin.db2admin gw
Faça o login com o usuário db2admin e execute a criação da base
# su - db2admin $ cd /home/db2admin/gw/database/db2 $ db2 -tvf createDb.sql
Instalando o Sametime Gateway 8.5.1
Extrair o arquivo
# mkdir STGW # cd STGW # tar -xvf /root/CZII5ML.tar]
Verificando o resultado
# ls database HTML installi5OS.bat install.sh dist install.bat installresponse.txt
Iniciando a instalação
# ./install.sh -console
OCO Source Materials L-KBIM-82KJG5 (c) Copyright IBM Corp. 2010 The source code for this program is not published or other- wise divested of its trade secrets, irrespective of what has been deposited with the U.S. Copyright Office. Reminder: Attempting to use the console interface to install directly from the CD-ROM can cause the CD drive to become unmountable. To avoid this problem, copy the CD locally and run it from there. See the IBM Lotus Sametime Gateway Information Center for more details.
Escolha o idioma
Initializing Wizard........ Launching InstallShield Wizard........ ------------------------------------------------------------------------------- Select a language to be used for this wizard. [X] 1 - English [ ] 2 - French [ ] 3 - German [ ] 4 - Italian [ ] 5 - Japanese [ ] 6 - Korean [ ] 7 - Portuguese (Brazil) [ ] 8 - Simplified Chinese [ ] 9 - Spanish [ ] 10 - Traditional Chinese To select an item enter its number, or 0 when you are finished: [0]
Tecle Enter
Aceite a licença
To select an item enter its number, or 0 when you are finished: [0] International License Agreement for Non-Warranted Programs ... Press Enter to continue viewing the license agreement, or, Enter "1" to accept the agreement, "2" to decline it or "99" to go back to the previous screen, "4" Read Non-IBM Terms.
Tecle 1 e Enter
Selecione o Tipo de instalação, no nosso caso Standalone
------------------------------------------------------------------------------- Installation for IBM Lotus Sametime Gateway 8.5.1 Select the type of installation. 1. Standalone server 2. Primary node 3. Deployment Manager 4. Secondary node 5. SIP and XMPP proxy servers Select the type of installation. [1]
Tecle Enter Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]
Tecle Enter
Informe o diretório dos arquivos do WASND
------------------------------------------------------------------------------- Installation for IBM Lotus Sametime Gateway 8.5.1 Enter the root path to the installation files for WebSphere Application Server. Installation files: [] /root/WASND Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]
Tecle Enter
Aceite o diretório de instalação do WAS
------------------------------------------------------------------------------- Installation for IBM Lotus Sametime Gateway 8.5.1 To install WebSphere Application Server in this location, choose Enter. To install WebSphere Application Server to a different location, enter the new location and choose Enter. Space required: 1 GB. Install location: [/opt/IBM/WebSphere/AppServer] Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]
Tecle Enter
Informe o Nome do Node,Cell,hostname ou aceite o default
------------------------------------------------------------------------------- Installation for IBM Lotus Sametime Gateway 8.5.1 Enter the properties for the profile to create for this Sametime Gateway server. Node and cell names must be unique. Do not use the same cell name for each node in a cluster. Do not use a localhost or loopback address. Node: [stgw01Node] Cell: [stgw01Cell] Host name: [stgw01.empresax.com.br] Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]
Tecle Enter
Informe o Administrador e Senha
------------------------------------------------------------------------------- Installation for IBM Lotus Sametime Gateway 8.5.1 Create the administrative user ID and password for the WebSphere Application Server. The administrative user name must not exist in your LDAP directory. This user ID is only used to access WebSphere Application Server. The user ID is not related to any user name used to access the operating system itself. User ID: [stgwadmin] Password: Confirm Password: Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]
Tecle Enter
Informe o Local de instalação do Sametime Gateway
------------------------------------------------------------------------------- Installation for IBM Lotus Sametime Gateway 8.5.1 To install Sametime Gateway in this location, choose Enter. To install Sametime Gateway to a different location, enter the new location and choose Enter. Space required: 250 MB. Install location: [/opt/IBM/WebSphere/STgateway] Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]
Tecle Enter
Informe as propriedades do DB2
------------------------------------------------------------------------------- Installation for IBM Lotus Sametime Gateway 8.5.1 DB2 Properties: Specify the DB2 database properties. The installer uses this information to create the JDBC provider and connect to the database for Sametime Gateway. Host name: [stgw01.empresax.com.br] db2server.empresax.com.br Port: [50000] Database name: [stGW] Application user ID: [] db2admin Application password: Schema user ID: [] db2admin Schema password: Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]
Tecle Enter
Configurando o acesso ao LDAP parte 1
------------------------------------------------------------------------------- Installation for IBM Lotus Sametime Gateway 8.5.1 LDAP Configuration Sametime Gateway uses LDAP to identify users and groups that have access to Sametime Gateway. This wizard configures a non-SSL connection to an LDAP server. If your LDAP requires an SSL connection or you choose to configure your LDAP after the installation, use the Integrated Solutions Console. 1. Configure LDAP now 2. Configure LDAP after the installation [1] Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]
Tecle Enter
Configurando o acesso ao LDAP parte 2
------------------------------------------------------------------------------- Installation for IBM Lotus Sametime Gateway 8.5.1 LDAP Server Connection Specify the LDAP host name and port to enable Sametime Gateway to connect to LDAP. You can choose the host name and port from the registered list or enter them separately. Host name: [] ldap.empresax.com.br Port: [389] Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]
Tecle Enter
Configurando o acesso ao LDAP parte 3
------------------------------------------------------------------------------- Installation for IBM Lotus Sametime Gateway 8.5.1 LDAP Authenticated Bind Required Enter the the bind distinguished name and password to authenticate the Sametime Gateway server with LDAP. Example for bind distinguished name: cn=John Smith, ou=Product Development, o=Acme, st=Minnesota, c=US Bind distinguished name (DN): [] CN=LDAPUSER,O=EmpresaX Bind password: Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]
Tecle Enter
Confirmando os dados
------------------------------------------------------------------------------- Installation for IBM Lotus Sametime Gateway 8.5.1 IBM Lotus Sametime Gateway is ready to install. To change any settings, choose Previous. If you are satisfied with the settings, choose Next to begin copying files. Products to install: WebSphere Application Server 7.0.0.3 (1 GB) /opt/IBM/WebSphere/AppServer Sametime Gateway 8.5.1 (250 MB) /opt/IBM/WebSphere/STgateway Installation details: Installation type: Standalone server WebSphere Application Server settings: Cell: stgw01Cell Node: stgw01Node Host name: stgw01.empresax.com.br Profile name: RTCGW_Profile Server name: RTCGWServer User ID: stgwadmin DB2 Properties: Host name: db2server.empresax.com.br Port: 50000 Database name: stGW Application user ID: db2admin Schema user ID: db2admin LDAP settings: LDAP type: DOMINO73 LDAP realm: o=LDAPRealm LDAP repository: LDAPRepository Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]
Tecle Enter
------------------------------------------------------------------------------- Installation for IBM Lotus Sametime Gateway 8.5.1 Installing IBM Lotus Sametime Gateway 8.5.1. Please wait... |-----------|-----------|-----------|------------| 0% 25% 50% 75% 100% |||||||||||||||||||||||||||||||||||||||||||||||||| Creating profile ... Installing IBM Lotus Sametime Gateway 8.5.1. Please wait... Configuring Sametime Gateway ... Configuring database ... Installing IBM Lotus Sametime Gateway 8.5.1. Please wait... Configuring LDAP ... Installing IBM Lotus Sametime Gateway 8.5.1. Please wait... Creating uninstaller...
Aplicando o Fixes no 8.5.1
Instalando o WAS Update Installer
Com o usuário root desempacto os arquivos de instalação dentro do diretório /root
# cd # unzip CZLF5ML.zip # cd UpdateInstallers # unzip wsupdLinux_7.0.0.9.zip # cd UpdateInstaller
Fazendo o backup do arquivo de Configuração
# cp responsefile.updiinstaller.txt responsefile.updiinstaller.txt.orig
Edite o arquivo responsefile.updiinstaller.txt e defina as linhas
-OPT silentInstallLicenseAcceptance="true" -OPT installLocation="/opt/IBM/WebSphere/UpdateInstaller"
Faça a Instalação do UpdateInstaller
- ./install -options responsefile.updiinstaller.txt -silent
Aplicando os iFixes no WAS do Sametime Gateway
Execute as tarefas o serviço PARADO
Copia os arquivos de iFixes
# cp -v /root/Fixes/* /opt/IBM/WebSphere/UpdateInstaller/maintenance/.
Altere o response file
# cd /opt/IBM/WebSphere/UpdateInstaller/responsefiles
# cp install.txt install.txt_orig
Edite o arquivo install.txt e defina as linhas
-W maintenance.package="/opt/IBM/WebSphere/UpdateInstaller/maintenance" -W product.location="/opt/IBM/WebSphere/AppServer" -W update.type="install"
Execute o update
# cd .. # ./update.sh -silent -options "responsefiles/install.txt"
Verificando
# cat /opt/IBM/WebSphere/AppServer/logs/update/install/updatelog.txt XXXXXXXX Install, com.ibm.ws.install.ni.ismp.actions.ISMPLogSuccessMessageAction, msg1, INSTCONFSUCCESS
Reinicie os serviços
Atualizando para o Sametime Gateway 8.5.1.1
Desempacotando
Com o usuário root desempacto os arquivos de instalação dentro do diretório /root
# mkdir GW # cd GW # unzip ../STGW8.5.1.1.zip
Aplicando os iFixes do 8.5.1.1 WAS do Sametime Gateway
Execute as tarefas o serviço PARADO
Copia os arquivos de iFixes
# cp -v /root/GW/Paks/* /opt/IBM/WebSphere/UpdateInstaller/maintenance/. cp -v * /opt/IBM/WebSphere/UpdateInstaller/maintenance/ cp: overwrite `/opt/IBM/WebSphere/UpdateInstaller/maintenance/7.0.0.0-WS-WAS-IFPK78917.pak'? n cp: overwrite `/opt/IBM/WebSphere/UpdateInstaller/maintenance/7.0.0.0-WS-WAS-IFPM09250.pak'? n cp: overwrite `/opt/IBM/WebSphere/UpdateInstaller/maintenance/7.0.0.0-WS-WAS-IFPM11777.pak'? n cp: overwrite `/opt/IBM/WebSphere/UpdateInstaller/maintenance/7.0.0.0-WS-WAS-MultiOS-IFPM03048.pak'? n cp: overwrite `/opt/IBM/WebSphere/UpdateInstaller/maintenance/7.0.0.0-WS-WAS-MultiOS-IFPM05979.pak'? n cp: overwrite `/opt/IBM/WebSphere/UpdateInstaller/maintenance/7.0.0.1-WS-WAS-IFPK83467.pak'? n cp: overwrite `/opt/IBM/WebSphere/UpdateInstaller/maintenance/7.0.0.3-WS-WAS-IFPK87176.pak'? n cp: overwrite `/opt/IBM/WebSphere/UpdateInstaller/maintenance/7.0.0.3-WS-WAS-IFPK97376.pak'? n cp: overwrite `/opt/IBM/WebSphere/UpdateInstaller/maintenance/7.0.0.3-WS-WAS-IFPK98562.pak'? n cp: overwrite `/opt/IBM/WebSphere/UpdateInstaller/maintenance/7.0.0.3-WS-WAS-IFPM11778.pak'? n cp: overwrite `/opt/IBM/WebSphere/UpdateInstaller/maintenance/7.0.0.3-WS-WAS-IFPM14251.pak'? n `7.0.0.3-WS-WAS-IFPM18909.pak' -> `/opt/IBM/WebSphere/UpdateInstaller/maintenance/7.0.0.3-WS-WAS-IFPM18909.pak' `7.0.0.3-WS-WAS-MultiOS-IFPM19599.pak' -> `/opt/IBM/WebSphere/UpdateInstaller/maintenance/7.0.0.3-WS-WAS-MultiOS-IFPM19599.pak'
Execute o mesmo procedimento Aplicando os iFixes no WAS do Sametime Gateway
Verificando o pré requistos
# cd /root/GW # chmod a+x *.sh # dos2unix *.sh Resultado dos2unix: converting file reDeploySTGW.sh to UNIX format ... dos2unix: converting file setenv.sh to UNIX format ... dos2unix: converting file setSchemaIBMi.sh to UNIX format ... dos2unix: converting file STGW.wasPackagesVerifier.sh to UNIX format ...
Edite o arquivo /root/8511/setenv.sh e altere conforme o seu ambiente
export WASDIR=/opt/IBM/WebSphere/AppServer/ export WAS_USER_NAME=stgwadmin export WAS_PASSWORD=<SENHA_DO_ADMIN>
Salve e feche o arquivo
# ./STGW.wasPackagesVerifier.sh /opt/IBM/WebSphere/AppServer/ ... OK: 53/53 of the required packages are installed.
Copiando os novos arquivos Jar
# cd /opt/IBM/WebSphere/STgateway/ # mkdir rtc_gw_lib_orig # mv -v rtc_gw_lib/* rtc_gw_lib_orig/ Resultado `rtc_gw_lib/dbpersist.jar' -> `rtc_gw_lib_orig/dbpersist.jar' `rtc_gw_lib/jdom.jar' -> `rtc_gw_lib_orig/jdom.jar' `rtc_gw_lib/rtc.gatewayAPI.jar' -> `rtc_gw_lib_orig/rtc.gatewayAPI.jar' `rtc_gw_lib/rtc.gatewayConfig.jar' -> `rtc_gw_lib_orig/rtc.gatewayConfig.jar' # cp -v /root/GW/Jars/* /opt/IBM/WebSphere/STgateway/rtc_gw_lib/. Resultado: `/root/GW/Jars/dbpersist.jar' -> `/opt/IBM/WebSphere/STgateway/rtc_gw_lib/./dbpersist.jar' `/root/GW/Jars/jdom.jar' -> `/opt/IBM/WebSphere/STgateway/rtc_gw_lib/./jdom.jar' `/root/GW/Jars/rtc.gatewayAPI.jar' -> `/opt/IBM/WebSphere/STgateway/rtc_gw_lib/./rtc.gatewayAPI.jar' `/root/GW/Jars/rtc.gatewayConfig.jar' -> `/opt/IBM/WebSphere/STgateway/rtc_gw_lib/./rtc.gatewayConfig.jar
Instalando os novos arquivos EAR/WAR
Iniciando o servidor
# cd /opt/IBM/WebSphere/AppServer/bin # ./startServer.sh RTCGWServer Resultado: .... ADMU3000I: Server RTCGWServer open for e-business; process id is XXXXX
Executando o Deploy
# cd /root/GW # ./reDeploySTGW.sh
Você pode acompanhar através de outro console verifando o arquivo reDeploySTGW.log.txt
Ver também
- Instalando o Lotus Sametime 8.5 no Linux
- Configurando conversão de documentos do Sametime 8.5
- Sametime: Comandos Uteis