首页 > 其他分享 >Websphere运维

Websphere运维

时间:2023-04-10 10:13:18浏览次数:29  
标签:opt bin IBM 运维 Websphere profiles WebSphere85 AppServer

查看IHS的cert有效期:

/opt/IBM/IBMIHS90/bin/gskcapicmd -cert -details -db certname.kdb -stashed -label certname

查看MQ cert有效期:
echo "" | openssl s_client -connect localhost:1415 > /tmp/getCert.log
openssl x509 -in /tmp/getCert.log -enddate -noout | awk 'BEGIN {FS="="} {print $NF}'

查看IHS version:
/opt/IBM/IBMIHS90/bin/versioninfo.sh | grep -i version

查WAS补丁的version command:
/opt/IBM/WebSphere85/AppServer/bin/versionInfo.sh | grep Version

查看java 版本version:
/opt/IBM/WebSphere85/AppServer/java_1.8_64/bin/java –version

查控制台的用户名和密码:
cat /opt/IBM/WebSphere85/AppServer/profiles/dmgrprofile/properties/soap.client.props | grep SOAP | grep -v '#'


查看控制台端口:https://{server_ip}:{port}/ibm/console ,其中server_ip为WAS部署的主机IP,port为配置的端口号

check WAS console port:/opt/IBM/WebSphere85/AppServer/profiles/dmgrprofile/config/cells/wascell/nodes/dmgrnode/serverindex.xml and look for WC_adminhost_secure's port

查看控制台端口命令:
cat /opt/IBM/WebSphere85/AppServer/profiles/dmgrprofile/config/cells/wascell/nodes/dmgrnode/serverindex.xml | grep -A 2 -Ei 'WC_adminhost_secure' --color=auto

    <specialEndpoints xmi:id="NamedEndPoint_10" endPointName="WC_adminhost_secure">
      <endPoint xmi:id="EndPoint_10" host="*" port="20003"/>
</specialEndpoints>


WAS clean start:
clean restart and sync node:

/opt/IBM/WebSphere85/AppServer/profiles/dmgrprofile/bin/startManager.sh ;
/opt/IBM/WebSphere85/AppServer/profiles/appprofile/bin/syncNode.sh localhost 20004 ;
/opt/IBM/WebSphere85/AppServer/profiles/appprofile/bin/startNode.sh ;

clean start过程中需要查看sync node端口:
Sync node 查看主机和端口:cat /opt/IBM/WebSphere85/AppServer/profiles/dmgrprofile/logs/AboutThisProfile.txt | grep -Ei 'host|soap' --color=auto


Websphere nodeagent not sync & can't be start
1.    1.去掉密码认证
/opt/IBM/WebSphere85/AppServer/profiles/dmgrprofile/config/cells/wascell/security.xml
将标红处true改成false
<security:Security xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:orb.securityprotocol="http://www.ibm.com/websphere/appserver/schemas/5.0/orb.securityproto
col.xmi" xmlns:security="http://www.ibm.com/websphere/appserver/schemas/5.0/security.xmi" xmi:id="Security_1" useLocalSecurityServer="true" useDomainQualifiedUserNames=
"false" enabled="true" cacheTimeout="600" issuePermissionWarning="false" activeProtocol="BOTH" enforceJava2Security="false" enforceFineGrainedJCASecurity="false" appEna
bled="false" dynamicallyUpdateSSLConfig="true" allowBasicAuth="true" activeAuthMechanism="LTPA_1" activeUserRegistry="WIMUserRegistry_1" defaultSSLSettings="SSLConfig_1
">
2.    2.启动dmgr,看是否有报错
3.    3.若启动无报错,则分别在两台机器上使用syncNode.sh同步node
路径:/opt/IBM/WebSphere85/AppServer/profiles/appprofile/bin
./syncNode.sh 主机hostname  port
4.    4.hostname为主机,port在下面路径查找
/opt/IBM/WebSphere85/AppServer/profiles/dmgrprofile/logs/AboutThisProfile.txt中Management SOAP connector port: 该参数后的值
5.    5.启动node看看是否能起得起来
6.    6.起得来关闭所有node+dmgr,并且恢复security.xml
7.    7.然后就能正常启动了


•    Get account for console
vi /opt/IBM/WebSphere85/AppServer/profiles/dmgrprofile/properties/soap.client.props
get username and password from below attribute
com.ibm.SOAP.loginUserid=wsadmin-hostname
com.ibm.SOAP.loginPassword=
decode the password on http://strelitzia.net/wasXORdecoder/wasXORdecoder.html 




•    Restart IHS server (Web server)
1. Login and change to ihsadm user
su - ihsadm
2. Check the IHS INSTANCE
ps -ef|grep httpd
OR. use below command to check what instance was run on this server
ls /appvol/IHS85
3. STOP THE IHS SERVER
sudo /opt/IBM/IBMIHS85/bin/apachectl -k stop -D Instance_Name
4. START THE HIS SERVER
sudo /opt/IBM/IBMIHS85/bin/apachectl -k start -D Instance_Name
i.e. sudo /opt/IBM/IBMIHS85/bin/apachectl -k start -D  CWIF01UK-WS01
     sudo /opt/IBM/IBMIHS85/bin/apachectl -k start -D  CWIF01UK-WS02
sudo /opt/IBM/IBMIHS85/bin/apachectl -k stop -D PWIF01UK-WS01
sudo /opt/IBM/IBMIHS85/bin/apachectl -k start -D PWIF01UK-WS01

5. Check and confirm the IHS Instance again
ps -ef|grep httpd

•    clean cache if needed:
su - wasadm
sh /opt/IBM/WebSphere85/AppServer/profiles/appprofile/bin/clearClassCache.sh
sh /opt/IBM/WebSphere85/AppServer/profiles/appprofile/bin/osgiCfgInit.sh
sh /opt/IBM/WebSphere85/AppServer/profiles/dmgrprofile/bin/clearClassCache.sh
sh /opt/IBM/WebSphere85/AppServer/profiles/dmgrprofile/bin/osgiCfgInit.sh

 

标签:opt,bin,IBM,运维,Websphere,profiles,WebSphere85,AppServer
From: https://www.cnblogs.com/tigergaonotes/p/17301937.html

相关文章

  • 什么是运维稳定性中的开关和预案?
    在运维稳定性保障中,限流降级的技术方案,是针对服务接口层面的,也就是服务限流和服务降级。而业务降级的维度就是开关和预案。开关,这个概念更多是业务和功能层面的,主要是针对单个功能的启用和停止进行控制,或者将功能状态在不同版本之间进行切换。在业务层面,就像经常提到的大促场景案例......
  • Go接口:运维开发场景中,go的接口到底怎么用?
    golang的接口是什么在Golang中,接口是一种类型,它是由一组方法签名组成的抽象集合。接口定义了对象应该具有的行为,而不关心对象的具体实现。实现接口的对象必须实现接口定义的所有方法,这样才能称为该接口的实现。什么情况下要用接口定义通用的方法:接口可以定义一组通用的方法,......
  • Linux运维基础(1)之Linux的文件系统
    Linux的文件系统是指Linux操作系统中用于管理文件的文件系统。它是Linux操作系统的核心之一,是Linux文件管理的基础。Linux的文件系统采用了树形结构,以根目录为起点,下面链接着各个子目录和文件。以下是Linux文件系统的一些特点:根目录:Linux的文件系统以根目录(/)为起点,所有的文件和目录......
  • 1+X-网络系统建设与运维(中级)理论笔记
    1+X-网络系统建设与运维(中级)链路聚合技术原理与配置基本原理 提升链路带宽:设备之间存在多条链路时,由于STP的存在,实际只会有一条链路转发流量,设备间链路带宽无法得到提升手工模式 Eth-Trunk的建立、成员接口的加入均由手动配置,双方系统之间不使用LACP进行协商LACP模式 采用LACP协......
  • 运维监控必看:必懂的 InfluxDB 使用指南,关键时刻能用上
    InfluxDB是什么InfluxDB是一个由InfluxData开发的开源时序型数据库。它由Go写成,着力于高性能地查询与存储时序型数据。InfluxDB被广泛应用于存储系统的监控数据,IoT行业的实时数据等场景。技术特点包括:InfluxDB在技术实现上充分利用了Go语言的特性,无需任何外部依赖即可独立部......
  • mysql运维------主从复制
    1.概述主从复制是指将主数据库的DDL和DML操作通过二进制日志传到从库服务器中,然后在从库上对这些日志重新执行(也叫重做),从而使得从库和主库的数据保持同步。MySQL支持一台主库同时向多台从库进行复制,从库同时也可以作为其他从服务器的主库,实现链状复制。MySQL复制的有点主要包......
  • 1+X证书网络系统建设与运维(中级)实验整理
    实验拓扑拓扑配置参数实验配置:HZCampus-Acc01-S5731:<Huawei>undotm<Huawei>sy[Huawei]syHZ-HZCampus-Acc01-S5731[HZ-HZCampus-Acc01-S5731]intg0/0/1[HZ-HZCampus-Acc01-S5731-GigabitEthernet0/0/1]polink-tt[HZ-HZCampus-Acc01-S5731-GigabitEthernet0/0/1]pot......
  • 运维Ansible自动化工具概述
    运维的工作内容安装系统:pxe、kickstart、cobbler、imagetemplate安装应用、配置应用、启动应用(服务):puppet、saltstack、chef发布程序:puppet、saltstack、chef监控(服务器、系统、应用、程序):zabbix程序发布灰度发布金丝雀发布ansible解决的问题:批量安装应用、配置应用、启动应用批量......
  • 【过关斩将】专栏改名为【运维面试秘籍】公告
    我们的专栏改名了,一开始的名字叫《过关斩将》,但从今天起,我们的专栏名字改为《运维面试秘籍》,其实说是运维面试,但里面很多面试技巧是相通的,不管你从事的是运维还是开发,都会对你有所帮助。原本跟谈的是更新10篇文章,但事实上我们已经直奔100篇文章了,知识点涵盖了运维的方方方面。不......
  • 【Linux】循序渐进学运维-服务篇-nginx入门
    文章目录nginx介绍nginx最新版本号nginx与apache的对比1、nginx相对于apache的优点:2.apache相对于nginx的优点:编译安装nginx1.安装依赖包2.下载nginx包3.解压安装a.解压b.编译&&编译安装c.启动d.查看是否启动nginx的目录结构主要的配置参数nginx介绍Nginx(enginex)......