CICS SFS LOCK FILE 删除和 Cics region恢复使用

Last login: Mon Jul 23 17:23:48 2018 from 192.168.179.1
[root@co1 ~]# su – wasadmin
[wasadmin@co1 ~]$ cicssfslock -u /.:/cics/sfs/co1
ERZ059011W/0204: Lock file ‘/var/cics_servers/SSD/cics/sfs/co1/lock’ is held by user ‘root’.
ERZ058409E/0204: Unable to remove lock file ‘/var/cics_servers/SSD/cics/sfs/co1/lock’
[wasadmin@co1 ~]$ exit
logout
[root@co1 ~]# cicssfslock -u /.:/cics/sfs/co1
[root@co1 ~]# su -wasadmin
su: invalid option — ‘w’
Try `su –help’ for more information.
[root@co1 ~]# su – wasadmin
[wasadmin@co1 ~]$ cicscp -v start region test01 StartType=cold
ERZ058502I/0101: RPC daemon is already running.
ERZ096122I/0264: Processing the ‘start region’ command.
ERZ096158I/0264: The region ‘test01’ is starting.
ERZ096111I/0224: Processing a start sfs_server command.
ERZ096141I/0224: Starting SFS server ‘/.:/cics/sfs/co1’.
ERZ038214I/0168: Authorization for server ‘/.:/cics/sfs/co1’ has been set to ‘none’
ERZ105102I/0029: Restart files located for server ‘/.:/cics/sfs/co1’
ERZ105107I/0034: Archives directory located for server ‘/.:/cics/sfs/co1’
ERZ038216I/0175: Subsystem ‘cicssfs.Sco1’ has been initialized.
ERZ038272I/0157: Waiting for server ‘/.:/cics/sfs/co1’ to initialise.
ERZ038219I/0179: Server ‘/.:/cics/sfs/co1’ is responding to RPCs.
ERZ038228I/0189: Server ‘/.:/cics/sfs/co1’ has been enabled.
ERZ038182I/0182: Server ‘/.:/cics/sfs/co1’ started successfully.
ERZ096113I/0231: SFS server has ‘/.:/cics/sfs/co1’ successfully started.
ERZ038216I/0382: Subsystem ‘test01’ has been initialized.
ERZ038219I/0390: Server ‘test01’ is responding to RPCs.
ERZ096126I/0276: Region ‘test01’ has successfully started.
ERZ096002I/0003: The cicscp command has completed successfully.
[wasadmin@co1 ~]$ cicscp status all
ERZ058502I/0101: RPC daemon is already running.
test sfs Stopped
co1 sfs Running
test02 region Stopped
test01 region Running
[wasadmin@co1 ~]$

CICS创建SFS、CICS region 命令 以及定义MQ 队列 命令

之前,应客户要求,提供一些CICS ,MQ的常用命令,现记录如下:
#mq 队列参数查看命令:
display queue (Q) ALL
# mq 队列创建命令(指定参数)
DEFINE QLOCAL(Q) DESCR(TEST) MAXDEPTH(50000) USAGE(NORMAL)
IBM CICS的命令很强大,两个命令就可以完全满足cics region 的定义属性与文件的 导出、导入、备份、恢复、迁移、重建。

如下所示:

###从源机器导出region 属性定义文件

[root@ibmtest cics]# cicsexport -r ‘test01’ -o ‘test01bak’
ERZ046338I/0420: Successfully exported region ‘test01’

###在目标机器(测试环境)导入region 属性定义文件

[root@ibmtest cics]# cicsimport -r ‘test02’ -i ‘test01bak’
ERZ046348I/0427: Creating region ‘test02’ from archive ‘/opt/ibm/cics/test01bak’
ERZ010114I/0728: Creating subsystem ‘cics.test02’ for region ‘test02’
ERZ046339I/0421: Successfully imported region ‘test02’

冷启动Test02 Region
[root@ibmtest ~]# cicscp -v start region test02 StartType=cold
ERZ058504I/0107: Starting RPC daemon.
ERZ058502I/0101: RPC daemon is already running.
ERZ096122I/0264: Processing the ‘start region’ command.
ERZ096158I/0264: The region ‘test02’ is starting.
ERZ096111I/0224: Processing a start sfs_server command.
ERZ096141I/0224: Starting SFS server ‘/.:/cics/sfs/ibmtest’.
ERZ038214I/0168: Authorization for server ‘/.:/cics/sfs/ibmtest’ has been set to ‘none’
ERZ105102I/0029: Restart files located for server ‘/.:/cics/sfs/ibmtest’
ERZ105107I/0034: Archives directory located for server ‘/.:/cics/sfs/ibmtest’
ERZ038216I/0175: Subsystem ‘cicssfs.Sibmtest’ has been initialized.
ERZ038272I/0157: Waiting for server ‘/.:/cics/sfs/ibmtest’ to initialise.
ERZ038219I/0179: Server ‘/.:/cics/sfs/ibmtest’ is responding to RPCs.
ERZ038228I/0189: Server ‘/.:/cics/sfs/ibmtest’ has been enabled.
ERZ038182I/0182: Server ‘/.:/cics/sfs/ibmtest’ started successfully.
ERZ096113I/0231: SFS server has ‘/.:/cics/sfs/ibmtest’ successfully started.
ERZ038216I/0382: Subsystem ‘test02’ has been initialized.
ERZ038219I/0390: Server ‘test02’ is responding to RPCs.
ERZ096126I/0276: Region ‘test02’ has successfully started.
ERZ096002I/0003: The cicscp command has completed successfully.
[root@ibmtest ~]#

阅读更多

CICS REGION 日志一站式收集命令

应客户要求,提供客户一个一站式收集cics region日志的命令,就是让客户在CICS region出问题时候,先跑一下这个命令,才重启cics region:

待下次再有CICS REGION 产生故障时,请执行如下命令,实现一站式日志收集。然后将生成的tar.Z 包发给我们分析与诊断。跑完这个命令后再重启cics region 。谢谢。  test 是指cics region 名字:
/usr/lpp/cics/utils/cicsservice/cicsservice  -r test -D /tmp  -o HANG
关于cics6.1 and cics7.1 的cicsservice 命令参数,现在cics6.1 和cics7.1 已经EOS了。IBM实验室已经停止技术支持了,在IBM官网上也找不到cics6.1的inforcenter了。只勉强找到cics7.1的inforcentor ,在cics7.1的inforcenter,找到cicsservice 的如下说明:
cicsservice –r region1 –D /tmp –a
-aCollects all information related to a specific region, such as:

  • Product information
  • Region information
  • File System information
  • ISC information
  • SARPC/CIPC information

For cics 6.1,命令应该也是:cicsservice –r region1 –D /tmp –a          在IBM 官网上,看到这一句:

Note
Applicable for TXSeries 6.1 PTF 5 and TXSeries 7.1 Fixpack 4 or above on Unix platforms.

BOGUS PACKET TYPE: Protocol version mismatch – major->30 minor->30 错误分析

客户在上个月做灾备演练完,重启CICS WLM后,发现其中一个region不断报如下错误:产生大量日志文 件,最终撑爆文件系统,需要客户手工不断刷除日志文 件:

018-09-09-21:26:45.224+08:00I—– PID#21758128 WARNING rpc cn_pkt cnrcvr.c 2654 0x00001a1b msgID=0x16C9A14F
(receive_packet) assoc->3013e128 BOGUS PACKET TYPE: Protocol version mismatch – major->30 minor->30
2018-09-09-21:26:45.224+08:00I—– PID#21758128 WARNING rpc cn_pkt cnrcvr.c 2675 0x00001a1b msgID=0x16C9A150
(receive_packet) assoc->3013e128 frag_length 13364 in header > fragbuf data size 4352
2018-09-09-21:26:45.232+08:00I—– PID#21758128 WARNING rpc cn_pkt cnrcvr.c 2654 0x00001d1e msgID=0x16C9A14F
(receive_packet) assoc->30139668 BOGUS PACKET TYPE: Protocol version mismatch – major->30 minor->30
2018-09-09-21:26:45.232+08:00I—– PID#21758128 WARNING rpc cn_pkt cnrcvr.c 2675 0x00001d1e msgID=0x16C9A150
(receive_packet) assoc->30139668 frag_length 13364 in header > fragbuf data size 4352
2018-09-09-21:26:45.240+08:00I—– PID#21758128 WARNING rpc cn_pkt cnrcvr.c 2654 0x00000809 msgID=0x16C9A14F
(receive_packet) assoc->30142928 BOGUS PACKET TYPE: Protocol version mismatch – major->30 minor->30
2018-09-09-21:26:45.240+08:00I—– PID#21758128 WARNING rpc cn_pkt cnrcvr.c 2675 0x00000809 msgID=0x16C9A150
(receive_packet) assoc->30142928 frag_length 13364 in header > fragbuf data size 4352
2018-09-09-21:26:45.249+08:00I—– PID#21758128 WARNING rpc cn_pkt cnrcvr.c 2654 0x00001415 msgID=0x16C9A14F
(receive_packet) assoc->30143fe8 BOGUS PACKET TYPE: Protocol version mismatch – major->30 minor->30
2018-09-09-21:26:45.250+08:00I—– PID#21758128 WARNING rpc cn_pkt cnrcvr.c 2675 0x00001415 msgID=0x16C9A150
(receive_packet) assoc->30143fe8 frag_length 13364 in header > fragbuf data size 4352
2018-09-09-21:26:45.259+08:00I—– PID#21758128 WARNING rpc cn_pkt cnrcvr.c 2654 0x00001b1c msgID=0x16C9A14F
(receive_packet) assoc->3013de68 BOGUS PACKET TYPE: Protocol version mismatch – major->30 minor->30
2018-09-09-21:26:45.259+08:00I—– PID#21758128 WARNING rpc cn_pkt cnrcvr.c 2675 0x00001b1c msgID=0x16C9A150
(receive_packet) assoc->3013de68 frag_length 13364 in header > fragbuf data size 4352

最后,终于经过分析,通过手工杀掉进程 ID PID#21758128后,报错日志没有再发生。最终经IBM实验室,确认为网络错误,如下为IBM实验室回复: 

阅读更多