IBMTXSeriesCICS管理1_第1页
IBMTXSeriesCICS管理1_第2页
IBMTXSeriesCICS管理1_第3页
IBMTXSeriesCICS管理1_第4页
IBMTXSeriesCICS管理1_第5页
已阅读5页,还剩53页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、ibm software group txseries for multiplatforms 2006 ibm corporationversion 112-may-2006ibm txseries cics管理(1)刘睿ibm software group txseries for multiplatforms概要 观察txseries cics/cics tg的运行状态和错误日志 txseries cics/cics tg的运行部件 txseries cics/cics tg的资源管理 txseries cics/cics tg的安全管理 txseries cics的xa 常用的txser

2、ies cics/cics tg命令 txseries cics/cics tg的平台注意事项ibm software group txseries for multiplatforms 2006 ibm corporationversion 112-may-2006观察txseries cics/cics tg的运行状态和错误日志ibm software group txseries for multiplatformstxseries和ctg运行错误日志的分布 region错误日志4/var/cics_regions/console.#4/var/cics_regions/symrecs.

3、#4/var/cics_regions/data/csmt.out4/var/cics_regions/dump/dir1/ sfs错误日志4/var/cics_servers/ssd/cics/sfs/imsg cuc/ctg错误日志4/var/cicscli/cicscli.log /unix4/bin/cicscli.logibm software group txseries for multiplatforms观察观察cics运行状态运行状态-域和文件服务器状态域和文件服务器状态 cicscp status allcicslistservers unix:cicslssrc a |

4、grep cics windows:cicscheckup aibm software group txseries for multiplatforms观察观察cics控制台信息控制台信息 使用命令:cicstail -r 控制台信息的来源4console文件4csmt.out文件ibm software group txseries for multiplatformsregion启动时的控制台信息erz010167i/0454 2006-07-07 16:55:10.645361000 cicsnt01 3816/0001 : 已将区域cicsnt01配置为支持 encina 结构化文件

5、服务器(sfs)。erz010136i/0363 2006-07-07 16:55:10.675404000 cicsnt01 3816/0020 : 正在创建 cics 进程cicslderz010136i/0456 2006-07-07 16:55:10.705448000 cicsnt01 3816/0020 : 正在创建 cics 进程cicslmerz024083i/0307 2006-07-07 16:55:10.815057000 cicsnt01 3332/0001 : 日志守护进程等待访问主日志文件erz010136i/0365 2006-07-07 16:55:10.815

6、606000 cicsnt01 3816/0020 : 正在创建 cics 进程cicsamerz010136i/0426 2006-07-07 16:55:10.965822000 cicsnt01 3816/0020 : 正在创建 cics 进程cicsrlerz010136i/0366 2006-07-07 16:55:11.065966000 cicsnt01 3816/0020 : 正在创建 cics 进程cicsicerz024080i/0267 2006-07-07 16:55:11.206216000 cicsnt01 4024/0001 : 恢复管理器结束,带有主日志文件er

7、z024081i/0315 2006-07-07 16:55:11.325792000 cicsnt01 3332/0001 : cics 日志守护进程就绪erz010141i/0373 2006-07-07 16:55:11.366446000 cicsnt01 4024/0001 : 应用程序管理器正在启动 minsever 个服务器erz010160i/0436 2006-07-07 16:55:11.375777000 cicsnt01 3740/0007 : 正在创建侦听器li1的 cics 进程cicsiperz010144i/0375 2006-07-07 16:55:11.60

8、6057000 cicsnt01 4088/0001 : 已启动应用程序服务器 101erz010144i/0375 2006-07-07 16:55:11.606014000 cicsnt01 4076/0001 : 已启动应用程序服务器 102erz010163i/0439 2006-07-07 16:55:11.606108000 cicsnt01 3740/0001 : 正在等待侦听器li1初始化erz044008i/0009 2006-07-07 16:55:11.787216000 cicsnt01 3264/0001 : cics 侦听器li1进程cicsip为

9、 1435而启动erz010137i/0368 2006-07-07 16:55:12.106734000 cicsnt01 4076/0001 : cics 初始化事务已启动erz021052i/0163 2006-07-07 16:55:12.166820000 cicsnt01 4076/0001 : 正在打开文件 .erz021053i/0164 2006-07-07 16:55:12.196864000 cicsnt01 4076/0001 : .文件打开完成erz022001i/1233 2006-07-07 16:55:12.226907000 cicsnt01 4076/000

10、1 : 正在处理瞬时数据队列 . erz022113i/1234 2006-07-07 16:55:12.317036000 cicsnt01 4076/0001 : 已处理瞬时数据队列!erz023017i/0732 2006-07-07 16:55:12.347080000 cicsnt01 4076/0001 : 处理临时存储队列.erz023028i/0733 2006-07-07 16:55:12.457238000 cicsnt01 4076/0001 : 临时存储队列已经处理完毕!erz061026i/4005 2006-07-07 16:55:12.497296000 cics

11、nt01 4076/0001 : 根据异步处理请求来处理本地队列 .erz061027i/4006 2006-07-07 16:55:12.517324000 cicsnt01 4076/0001 : 本地队列已被处理erz024089i/0313 2006-07-07 16:55:12.557563000 cicsnt01 3332/0001 : 启动检查点erz010138i/0369 2006-07-07 16:55:12.557382000 cicsnt01 4076/0001 : cics 初始化事务已结束erz010120i/0243 2006-07-07 16:55:12.637

12、497000 cicsnt01 4076/0001 : 完成处理启动和关闭程序列表erz010020i/0068 2006-07-07 16:55:12.698313000 cicsnt01 3816/0020 : * cics 启动已完成 *ibm software group txseries for multiplatforms显示ctg/cuc的联机状态 察看连接:cicscli /l 察看统计信息:ctgadmin -a stats ibm software group txseries for multiplatforms如何使用ctg v7.1之后新增加的统计功能1. 配置方法,

13、详细配置可参考ctg 管理指南第15章,监控和统计统计可以分为间隔统计和每日统计。可以通过配置ctg.ini来设置统计间隔和每日统计产生时间。重启ctg生效。statint=030000 stateod=000000比如,比如上例配置,将每隔3个小时产生一次统计,00:00:00产生每日统计。 如果ctg在5:20启动,则会在下面时间产生统计信息:5:20,6:00,9:00,12:00,15:00,18:00,21:00产生间隔统计,在00:00产生日统计。可以根据需要设置间隔统计和日统计。2. 分类 与性能相关的统计参数值,统计参数值分为4种: c: current(当前值) i: int

14、erval(间隔统计值) l: lifetime(从gateway启动到当前时间的值) s: start(gateway启动时候的值) 统计参数值监控的资源类型需要关注的有 cm - connection manager cd - client daemon cs - cics server (all) wt - worker thread ph - protocol handler se - system environment gd - gateway daemon - cics server (instance)3. 得到统计数据的命令举例#例:得到所有的统计数据ctgadmin -a

15、stats -gs#例:show the worker thread resource group, the maximum number of connection managers, and the gateway daemon resource group:ctgadmin -a stats -gs wt:cm_smax:gd#例:getting help on statistics:ctgadmin -a stats -?ibm software group txseries for multiplatforms如何使用ctg v7.1之后新增加的统计功能(举例)cm:cm_ccurr

16、=738 (当前创建的连接管理线程个数)cm_calloc=135 (当前分配的连接管理线程个数)cm_iallochi=227 (统计间隔内(3小时)高峰期分配的连接管理线程个数)cm_ialloc471200 (统计间隔内(3小时)连接管理线程被分配的次数)cm_itimeouts0 (统计间隔内(3小时),无法成功给java客户端应用分配连接管理线程而超时的次数cm_ltimeouts0 (从ctg启动到当前,无法成功给java客户端应用分配连接管理线程而超时的次数)cm_cwaiting0 (当前正在等待分配worker thread的 连接管理线程的个数)wt:wt_ccurr=67

17、6 (当前创建的worker thread个数)wt_calloc=101 (当前分配的worker thread个数)wt_iallochi=199 (统计间隔内(3小时)高峰期分配的worker thread个数)wt_itimeouts0 (统计间隔内(3小时)无法成功给连接管理线程分配worker thread而超时的次数)wt_ltimeouts0 (从ctg启动到当前,无法成功给连接管理线程分配worker thread而超时的次数)gd:gd_lallreq574164377 从ctg启动到当前ctg的gateway处理的请求个数gd_iallreq=471157 统计间隔内(3

18、小时)ctg的gateway处理的请求个数gd_lavresp33 从ctg启动到当前gateway处理请求的平均响应时间,单位为ms。gd_iavresp41 统计间隔内(3小时)ctg的gateway处理请求的平均响应时间,单位为ms。cd:cd_lallreq=4140874 ctg的client进程从启动到现在处理eci请求的个数ibm software group txseries for multiplatforms使用txseries v7.1的web控制台监控cics域1. 设置mdcicsupdate -c md -r cics01 monitorstatus=yes adm

19、inconsolemonitorstatus=yescicscp -v stop region cics01 cicscp -v start region cics01 starttype=cold2. 设置web控制台 打开“http:/txseries/admin”, 选择“monitoring profiles”,修改default profile或者定义新的profile。注意属性“sampling interval(minutes)”默认为5。 进入: - monitoring - current view,选择profile,并start。通过refresh来更新视图。ibm so

20、ftware group txseries for multiplatforms 2006 ibm corporationversion 112-may-2006txseries cics/cics tg的运行部件ibm software group txseries for multiplatformstxseries和cics tg的服务部件 txseries4region cics application server process - cicsas encina file server4sfs cics tg / cics uc4client daemon - cclclnt4gat

21、eway daemon - ctgstartibm software group txseries for multiplatformstxseries的产品目录结构(aix) /usr/lpp/cics4bin4include4lib4src examples onephase xa samples4utils4msgibm software group txseries for multiplatformstxseries的产品目录结构(hpux, solaris) /opt/cics4bin4include4lib4src examples onephase xa samples4uti

22、ls4msgibm software group txseries for multiplatformstxseries的产品目录结构(windows) driver:opttxseriescics (默认)4bin4include4lib4src examples onephase xa samples4utils4msgibm software group txseries for multiplatformstxseries的数据目录结构 /var4 cics_clients4 cics_regions region console.*, symrecs.*, environment b

23、in classes data csmt.out, ccin.out database rd, pd, td, cd, ld, ud, xad dumps dir1 log maps4 cics_servers archives gsd scd ssdibm software group txseries for multiplatformscics region的进程组成cics region 系统所有交易都是在cics的应用服务器(cicsas)中运行cicsascicsascicsascicsascics region控制进程application server processescic

24、samcicsrlcicsiccicsldcicsrmcicsrscicsipcicsslapplication server managerrpc listenerinterval control managerlog daemonrecovery managerrecovery servercommon client listenerlocal sna listeneribm software group txseries for multiplatformscics tg的产品目录结构 bin4ctg.ini classes4ctgclient.jar, ctgserver.jar co

25、pybook deployable4cicseci.rar docs include lib samples ibm software group txseries for multiplatformscics tg的进程组成 cclclnt - client daemoncclclnt进程 ctgstart - gateway daemonjava -xmx128m -xms128m -xjni:arraycachemax=32768 -dcom.ibm.ctg.cicscli= -classpath . com.ibm.ctg.util.ctglaunch ctg ibm software

26、 group txseries for multiplatforms 2006 ibm corporationversion 112-may-2006txseries cics/cics tg的资源管理ibm software group txseries for multiplatformstxseries资源定义的分类 region4 region definition (rd)4 communication definition (cd)4 journal definition (jd)4 monitor definition (md)4 file definition (fd)4 pr

27、ogram definition (pd)4 transaction definition (td)4 temporary storage definition (tsd)4 transient data queue definition (tdd)4 xa definition(xad)4 user definition(ud) sfs4 ssd ppc gateway4 gsdibm software group txseries for multiplatformsregion资源数据库的类型 资源数据库的类型:4cics运行数据库/var/cics_regions/database/x

28、x/xx./xx.autoxx=cd fd gd jd ld md pd rd td tdd tsd ud wd xad例:/var/cics_regions/database/xad/xad./xad.auto4cics永久数据库/var/cics_regions/database/xx/xx.stanzaxx=cd fd gd jd ld md pd rd td tdd tsd ud wd xad例:/var/cics_regions/database/xad/xad.stanza 启动类型:4热启动4冷启动ibm software group txseries for multiplat

29、forms在cics资源中的一些缩写方式 %rregion name %hhost name %ssfs or ppc gateway server nameibm software group txseries for multiplatforms资源定义中的通用属性 key (unique for this kind of resource) activateonstartup (activate the resource at cold start?) yes|no amendcounter (number of updates) 0 groupname (group to which

30、resource belongs) permanent (protect resource from modification?) no resourcedescription (resource description) 30-byteibm software group txseries for multiplatforms有关资源定义的常用命令 cicsget -?|-c classname -r regionname -l|resourcename cicsadd -?|-c classname -r regionname -p|-b -f filename -m modelid re

31、sourcename attributename=attributevalue. cicsupdate -?|-c classname -r regionname -p|-r|-b -f filename resourcename attributename=attributevalue. cicsdelete -?|-c classname -r regionname -p|-r|-b -f filename resourcename resourcename.ibm software group txseries for multiplatforms收听器定义(ld) protocol (

32、例:tcp) tcpaddress (例:localhost) tcpservice (例:cics1435) tcpprocesscountibm software group txseries for multiplatforms数据库接口定义(xad) switchloadfile (例:db21pc.dll) xaopen (例:sample,db2admin,password)ibm software group txseries for multiplatforms用户定义(ud) cicspassword (例:test) rslkeylist (例:1) tslkeylisti

33、bm software group txseries for multiplatforms程序定义(pd) pathname (例:gettime) rslkey (例:public) remotesysid remotename residentibm software group txseries for multiplatforms交易定义(td)progname (例:ectsq)tclass (no, 1-10)rslkeytslkeyrslchecktslcheck例:增加一个ecit的镜像交易定义。对应使用cpmi做为模板,用户可自己定义一个交易级别。如下例定义交易级别为1。ci

34、csadd -c td -r -m cpmi ecit tclass=1例:改变cpmi的tclass从no到1cicsupdate -c td -r cicsnt01 cpmi permanent=no tclass=1ibm software group txseries for multiplatforms通讯定义(cd) connectiontype (例:cics_tcp) remoteluname (例:cicsnt02) remotetcpaddress (例:localhost) remotetcpport (例:1436) listenernameibm software g

35、roup txseries for multiplatforms 2006 ibm corporationversion 112-may-2006txseries cics/cics tg的安全管理ibm software group txseries for multiplatformscics资源的安全设置(1) ud/rslkeylist:none(默认), 124(可多选)。 ud/tslkeylist:164(可多选,默认为1)。 pd/rslkey:1-24, public, private(默认)。若public,任意用户可以访问;若private,只有从“td:rslcheck

36、=none”的transaction可以访问。 td/rslkey:1-24, public, private(默认)。若public,任意用户可以访问;若private,只有从“td:rslcheck=none”的transaction可以访问。 td/tslkey:1-64(默认为1), public。若public,任意用户可以访问。cics提供的交易的td/tslkey必须设置为缺省值1。另外数值1也相当于public。 td/rslcheck:internal(默认), external, none。 td/tslcheck:internal(默认), external。ibm so

37、ftware group txseries for multiplatformscics资源的安全设置(2) 已淘汰的dce相关设置:4rd:authenticationservice=cics / 缺省值为 cics4rd:runtimeprotection=none / 缺省值为 none 认证交易4cesn4cesf 设置启动交易4cicsterm -t 4cicsteld -t ibm software group txseries for multiplatformscics资源的安全设置(3) rd:safetylevelregionpool ignored on solaris

38、(same as none) normal incurs performance cost4 only use if storage corruption occurs guard is windows only4 less performance cost than normal default is none4 avoid changingsafetylevel = none | normal | guardrdcicstransactionsusertransactionsregionpoolregionpoolcicstransactionsusertransactionsnoneno

39、rmalguardcicstransactionsusertransactionsibm software group txseries for multiplatforms使用default user 未认证的请求都会使用 default user 限制default user的权限:4 transactions (cemt, ceci, cedf)4 programs4 resource (files, td, ts)resourcestransactionsprogramsdefaultuserid=cicsuserrdibm software group txseries for mu

40、ltiplatformsud td, ud pdtd.tslkey=publictd.tslkey=1-64matchtd.tslkey=publictd.tslkey=1-64matchibm software group txseries for multiplatformsud td / pdud.rslkeylist=noneud.rslkeylist=1-24matchud.rslkeylist=noneud.rslkeylist=1-24ud.rslkeylist=noneud.rslkeylist=1-24ibm software group txseries for multi

41、platformsauthentication sample (i) ud u14tslkeylist=“31 | 32 | 33”4rslkeylist=“1 | 2 | 3 | 4 | 5 | 6” td t14tslcheck=internal4tslkey=314rslcheck=internal4rslkey=14progname=“p1” pd p14use f1, j1, ts1, td14rslkey=2 fd f14rslkey=3 jd j14rslkey=4 tsd ts14rslkey=5 tdd td14rslkey=6u1 p1 oku1 t1 okibm soft

42、ware group txseries for multiplatformsauthentication sample (ii) ud u14tslkeylist=“31 | 32 | 33”4rslkeylist=“1 | 2 | 3 | 4 | 5 | 6” td t14tslcheck=internal4tslkey=314rslcheck=none4rslkey=private4progname=“p1” pd p14use f1, j1, ts1, td14rslkey=private fd f14rslkey=private jd j14rslkey=private tsd ts1

43、4rslkey=private tdd td14rslkey=privateu1 p1 erroru1 t1 okibm software group txseries for multiplatforms 2006 ibm corporationversion 112-may-2006txseries cics的的xaibm software group txseries for multiplatformsx/open dtp模型模型the x/open distributed transaction processing (dtp) model envisages three softw

44、are components:an application program (ap) defines transaction boundaries and specifies actions that constitute a transaction.resource managers (rms, such as databases or file access systems) provide access to shared resources.a separate component called a transaction manager (tm) assigns identifier

45、s to transactions, monitors their progress, and takes responsibility for transaction completion and for failure recovery.ibm software group txseries for multiplatformsxa接口 the xa is a specification defined by x/open that describes the protocol for transaction coordination, commitment and a recovery

46、between a tm and one or more rms. in a x/open dtp model , the transaction manager and the resource manager communicate using the xa interface. the interfaces are nothing but a set of routines implemented by both rm and tm to communicate to each other. the xa interface is not an ordinary application

47、programming interface (api). it is system level interface between a rm and a tm. the ax_*( ) routines to let an rm call a tm. all tms must provide these routines.these routines let an rm dynamically control its participation in a transaction branch. the xa_*( ) routines are supplied by rms operating

48、 in the dtp environment and called by tms.a tm must call the xa_*( ) routines in a particular sequence.ibm software group txseries for multiplatformsxa接口(续)list of xa interfaces.ibm software group txseries for multiplatformscics在在x/open dtp模型中的实现模型中的实现 the x/open dtp standard uses an application pro

49、gram (ap), resource manager (rm), and transaction manager (tm) model. in the cics implementation, the cics application program is the ap, the rdbms is the rm, and cics is the tm. cics plays the role of a transaction manager in x/open dtp model. it can coordinate distributed transactions to relationa

50、l databases that support the xa interface. the xa interface is not an application programming interface (api) rather it is a system-level interface between a tm and a rm in the x/open dtp model. db2 oracle sybase mq etc., ibm software group txseries for multiplatforms 2006 ibm corporationversion 112

51、-may-2006txseries cics/cics tg的常用命令ibm software group txseries for multiplatforms常用的txseries cics命令cicstrancommand translatorcicstcltranslate & compilecicssdascreen design aidcicsmapmap generationcicssdtsfs diagnostic toolcicsimportcreate regioncicsexportsave regioncicsaddadd resourcecicsupdateu

52、pdate resourcecicsdeletedelete resourcecicsgetshow resourcecicscp configurationcicsdfmtdump formattercicssfmtstatistics formattercicsmfmtmonitor formattercicstfmttrace formattercicstermclient terminalcicstermpprinter terminalcicsteldtn3270 terminalstartsrcstart cics regionstopsrc stop cics regioncic

53、ssfsstart sfs servercicstsfsshutstop sfs serveribm software group txseries for multiplatformscicscp命令 cicscp options command object attributescicscpcreatedestroystartstopallcoboldceppcgwy_serverregionsfs_serversnasna_linktelnet_server-i ignore errors-v verbose-l ?exitoptionsattributesibm software gr

54、oup txseries for multiplatformscicscp命令示例(1)cicscp start region -d attribute-overridescicscp destroy region -f -scicscp create dce -n cicscp create ppcgwy_server -m gsd attribute-overridescicscp create region -g -i -l c|m|o|r) -d create a cics region; -d signifies remote encina servers destroy a cic

55、s region; -s removes sfs ts/td queues start a cics region; -d signifies remote encina servers stop all cics, encina, sna, and dce servers on this machine configure a single machiine with dce security & cds servers create an encina ppc gateway on this machinecicscp stop all ibm software group txseries for multiplatformscicscp命令示例(2) txseries v6.1 cicscp v version cicscp v status allcicscp v status region cicscp v status sfs_server cicserr cicserr a147

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论