IBM中间件-WAS-MQ-CICS 远程启停命令菜单

近日应客户要求,写了一段WAS,CICS,MQ远程启停命令菜单脚本,在LINUX下测试通过,下面为脚本内容:

#!/bin/sh
#Ibm was cics mq middle maintenance shell ,Edit by Evan date:2018-08-15
function menu ()
{
cat << EOF
—————————————-
|***************菜单主页***************|
—————————————-
`echo -e “\033[35m 1)WAS 中间件\033[0m”`
`echo -e “\033[35m 2)MQ 中间件\033[0m”`
`echo -e “\033[35m 3)CICS 中间件\033[0m”`
`echo -e “\033[35m 4)主菜单\033[0m”`
`echo -e “\033[35m 5)退出\033[0m”`
EOF
read -p “请输入对应中间件产品的数字:” num1
case $num1 in
1)
echo “Welcome to WebSphere 中间件主页!!”
websphere_menu
;;
2)
echo “Welcome to MQ 中间件主页!!”
mqm_menu
;;
3)
echo “Welcome to cics 中间件主页!!”
cics_menu
;;
4)
clear
menu
;;
5)
exit 0
esac
}

function websphere_menu ()
{
cat << EOF
—————————————-
|***************WebSphere中间件主页****************|
—————————————-
`echo -e “\033[35m 1)停止WebSphere AppSrv01\033[0m”`
`echo -e “\033[35m 2)停止Websphere Dmgr01\033[0m”`
`echo -e “\033[35m 3)启动WebSphere Dmgr01\033[0m”`
`echo -e “\033[35m 4)启动WebSphere AppSrv01\033[0m”`
`echo -e “\033[35m 5)返回主菜单\033[0m”`
EOF
read -p “请输入对应中间件产品操作的数字:” num2
case $num2 in
1)
ssh co2 /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/stopNode.sh -username wasadmin -password wasadmin
websphere_menu
;;

阅读更多

CICS ERROR:SECONDARY SYMPTOMS=SFS error ENC-SFS_0051: Unknown file system name

近日,客户的CICS机器,不断报如下错误:

on console.000040 不断报:
ERZ023005E/2403 Temporary Storage(TS):Error Writing item 2017 to queue ‘ICCBSCX2′
ERZ023010E/0574 Temporory Storage(TS):File Server error

on symrecs.000038 不断报:
VLS/610 MOD/”@(#)damfs,14:51:35.Jul 21 2010 ” FUNC/DamFS_DupHandle LINE/676 MS/000000 MSN/9 SRC/4 PRCS/1997905971 ABCODE/ SRVID/156 PID/35913816 TID/1 PROC/cicsas SECONDARY SYMPTOMS =File System Error’

SYPTOMS=TIME/”07/10/18 08:49:23.102514906 ” RECION/CICSGDIC PROD/5724AX 610 LVLS/610 MOD/”@(#) damfs. 14:51:35.JUL 21 2010 ” FUNC/DamRS_DupHandle LINE/676 MS/000000 MSN/9 SRC/4 PRCS/1997905971 ABCODE/ SRVID/156 PID/35913816 TID1, PROC/cicssas

SECONDARY SYMPTOMS=SFS error ENC-SFS_0051: Unknown file system name:mapped onto IOERR,BaseName ‘CICSGDICcicsnrectsqfil’,FileServer’/.:/cics/sfs/SFS_SERV’IndexName ‘cicsnrectsqidx’

 

最后解决办法:重新冷启动SFS SERVER服务器,然后再冷启动cics Region即可以解决问题,估计是之前,客户做过在线磁盘mirror,破坏了CICS的默认索引列。所以,虽然冷启动 sfs server  ,丢弃之前创建的cics 七个索引列,然后再次冷启动cics region.再次生成cics region 七个默认的索引列,问题就得以解决。