IBM-CICS常用命令練習實錄

[root@ibmtest bin]# cicscp status all
ERZ058504I/0107: Starting RPC daemon.
ERZ058502I/0101: RPC daemon is already running.
ibmtest sfs Stopped
RGN1 region Stopped
test01 region Stopped
[root@ibmtest bin]# cicscp start all
ERZ058504I/0107: Starting RPC daemon.
ERZ058502I/0101: RPC daemon is already running.
ERZ038272I/0157: Waiting for server ‘/.:/cics/sfs/ibmtest’ to initialise.
ERZ038182I/0182: Server ‘/.:/cics/sfs/ibmtest’ started successfully.
ERZ038216I/0382: Subsystem ‘RGN1’ has been initialized.
ERZ038219I/0390: Server ‘RGN1’ is responding to RPCs.
ERZ038216I/0382: Subsystem ‘test01’ has been initialized.
ERZ038219I/0390: Server ‘test01’ is responding to RPCs.
[root@ibmtest bin]# cicscp -v create sfs_server /.:/cics/sfs/ibmexam ShortName=ibmexam
ERZ058504I/0107: Starting RPC daemon.
ERZ058502I/0101: RPC daemon is already running.
ERZ096103I/0199: Creating an SFS server.
ERZ105006I/0011: Directory ‘/var/cics_servers/SSD/cics/sfs/ibmexam’ created
ERZ084009W/8429: No runtime recovery image for server ‘/.:/cics/sfs/ibmexam’, cold start assumed
ERZ010130I/0734: Creating subsystem ‘cicssfs.ibmexam’
ERZ038038I/0044: Server ‘/.:/cics/sfs/ibmexam’ added as a subsystem
ERZ096107I/0214: The SFS server ‘/.:/cics/sfs/ibmexam’ was created successfully.
ERZ096002I/0003: The cicscp command has completed successfully.
[root@ibmtest bin]# cicscp status all
ERZ058504I/0107: Starting RPC daemon.
ERZ058502I/0101: RPC daemon is already running.
ibmexam sfs Stopped
ibmtest sfs Running
RGN1 region Running
test01 region Running
[root@ibmtest bin]# cicscp -v create region YY01
ERZ058504I/0107: Starting RPC daemon.
ERZ058502I/0101: RPC daemon is already running.
ERZ096118I/0247: Creating a region.
ERZ046045I/0222: Creating region ‘YY01’ from archive of default region ‘/opt/ibm/cics/DEFAULT’
ERZ010114I/0728: Creating subsystem ‘cics.YY01’ for region ‘YY01’
ERZ046339I/0421: Successfully imported region ‘YY01’
ERZ096111I/0224: Processing a start sfs_server command.
ERZ096141I/0224: Starting SFS server ‘/.:/cics/sfs/ibmtest’.
ERZ096112I/0229: The SFS server ‘/.:/cics/sfs/ibmtest’ is running.
ERZ096113I/0231: SFS server has ‘/.:/cics/sfs/ibmtest’ successfully started.
ERZ038176I/0339: Adding TSQ file ‘YY01cicsrectsqfile’ to server ‘/.:/cics/sfs/ibmtest’, volume ‘sfs_Sibmtest’.
ERZ038176I/0344: Adding TSQ file ‘YY01cicsnrectsqfil’ to server ‘/.:/cics/sfs/ibmtest’, volume ‘sfs_Sibmtest’.
ERZ038177I/0349: Adding TDQ file ‘YY01cicstdqlgfile’ to server ‘/.:/cics/sfs/ibmtest’, volume ‘sfs_Sibmtest’.
ERZ038177I/0354: Adding TDQ file ‘YY01cicstdqphfile’ to server ‘/.:/cics/sfs/ibmtest’, volume ‘sfs_Sibmtest’.
ERZ038177I/0359: Adding TDQ file ‘YY01cicstdqnofile’ to server ‘/.:/cics/sfs/ibmtest’, volume ‘sfs_Sibmtest’.
ERZ038178I/0364: Adding Local Queueing file ‘YY01cicsnlqfile’ to server ‘/.:/cics/sfs/ibmtest’, volume ‘sfs_Sibmtest’.
ERZ038178I/0369: Adding Local Queueing file ‘YY01cicsplqfile’ to server ‘/.:/cics/sfs/ibmtest’, volume ‘sfs_Sibmtest’.
ERZ010013I/0024: CICS has removed the lock file for region ‘YY01’
ERZ096121I/0256: The region ‘YY01’ was created successfully.
ERZ096002I/0003: The cicscp command has completed successfully.
[root@ibmtest bin]# cicsupdate -c rd -r YY01 DefaultFileServer=/.:/cics/sfs/ibmexam
[root@ibmtest bin]# cicscp -v start region YY01 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 ‘YY01’ is starting.
ERZ096111I/0224: Processing a start sfs_server command.
ERZ096141I/0224: Starting SFS server ‘/.:/cics/sfs/ibmexam’.
ERZ038214I/0168: Authorization for server ‘/.:/cics/sfs/ibmexam’ has been set to ‘none’
ERZ038216I/0175: Subsystem ‘cicssfs.ibmexam’ has been initialized.
ERZ038272I/0157: Waiting for server ‘/.:/cics/sfs/ibmexam’ to initialise.
ERZ038219I/0179: Server ‘/.:/cics/sfs/ibmexam’ is responding to RPCs.
ERZ036204I/0251: Created logical volume ‘log_ibmexam’ for server ‘/.:/cics/sfs/ibmexam’
ERZ036206I/0253: Initialized logical volume ‘log_ibmexam’ initialized for logging by server ‘/.:/cics/sfs/ibmexam’
ERZ036208I/0255: Created log file ‘log_ibmexam/logfile’ for server ‘/.:/cics/sfs/ibmexam’
ERZ036231I/0260: Log file ‘logfile’ on server ‘/.:/cics/sfs/ibmexam’ has been enabled.
ERZ036233I/0262: Logical volumes on server ‘/.:/cics/sfs/ibmexam’ have been recovered.
ERZ038228I/0189: Server ‘/.:/cics/sfs/ibmexam’ has been enabled.
ERZ038223I/0192: SFS Logical volume ‘sfs_ibmexam’ has been created for server ‘/.:/cics/sfs/ibmexam’.
ERZ038224I/0194: Logical volume ‘sfs_ibmexam’ on server ‘/.:/cics/sfs/ibmexam’ has been enabled.
ERZ038226I/0196: Logical volume ‘sfs_ibmexam’ has been added to server ‘/.:/cics/sfs/ibmexam’.
ERZ038182I/0182: Server ‘/.:/cics/sfs/ibmexam’ started successfully.
ERZ096113I/0231: SFS server has ‘/.:/cics/sfs/ibmexam’ successfully started.
ERZ038176I/0339: Adding TSQ file ‘YY01cicsrectsqfile’ to server ‘/.:/cics/sfs/ibmexam’, volume ‘sfs_ibmexam’.
ERZ038176I/0344: Adding TSQ file ‘YY01cicsnrectsqfil’ to server ‘/.:/cics/sfs/ibmexam’, volume ‘sfs_ibmexam’.
ERZ038177I/0349: Adding TDQ file ‘YY01cicstdqlgfile’ to server ‘/.:/cics/sfs/ibmexam’, volume ‘sfs_ibmexam’.
ERZ038177I/0354: Adding TDQ file ‘YY01cicstdqphfile’ to server ‘/.:/cics/sfs/ibmexam’, volume ‘sfs_ibmexam’.
ERZ038177I/0359: Adding TDQ file ‘YY01cicstdqnofile’ to server ‘/.:/cics/sfs/ibmexam’, volume ‘sfs_ibmexam’.
ERZ038178I/0364: Adding Local Queueing file ‘YY01cicsnlqfile’ to server ‘/.:/cics/sfs/ibmexam’, volume ‘sfs_ibmexam’.
ERZ038178I/0369: Adding Local Queueing file ‘YY01cicsplqfile’ to server ‘/.:/cics/sfs/ibmexam’, volume ‘sfs_ibmexam’.
ERZ010013I/0024: CICS has removed the lock file for region ‘YY01’
ERZ038216I/0382: Subsystem ‘YY01’ has been initialized.
ERZ038219I/0390: Server ‘YY01’ is responding to RPCs.
ERZ096126I/0276: Region ‘YY01’ has successfully started.
ERZ096002I/0003: The cicscp command has completed successfully.
[root@ibmtest bin]# cicslssrc -a | grep cics
cics.test01 5758 active
cics.RGN1 5559 active
cics.YY01 6208 active
cicssfs.Sibmtest 5503 active
cicssfs.ibmexam 6144 active
[root@ibmtest bin]# cicsadd -c ld -r YY01 LD01 TCPServicename=lsnr1 TCPAddress=9.181.108.37 Protocol=TCP
ERZ034084W/0348: Attribute ‘TCPServicename’ not supported in database class ld
[root@ibmtest bin]# cicsadd -c cd -r YY01 TCD0 RemoteLUName=TEST2 RemoteTCPAddress=9.181.108.90 RemoteTDCPort=1436 ListenerName=LD01
ERZ034084W/0348: Attribute ‘RemoteTDCPort’ not supported in database class cd
[root@ibmtest bin]# cicsupdate -c cd -r YY01 TCD0 RemoteLUName=TEST2 RemoteTCPAddress=9.181.108.90 RemoteTCPort=1436
ERZ034084W/0348: Attribute ‘RemoteTCPort’ not supported in database class cd
[root@ibmtest bin]# cicsupdate -c cd -r YY01 TCD0 RemoteLUName=TEST2 RemoteTCPAddress=9.181.108.90 RemoteTCPort=1436
ERZ034084W/0348: Attribute ‘RemoteTCPort’ not supported in database class cd
[root@ibmtest bin]# cicsadd -c pd -r YY01 TELECOM PathName=.. RSLKey=public
[root@ibmtest bin]# cicsadd -c ud -r YY01 SDBOSS CICSPassword=\
> 131468
[root@ibmtest bin]# cicsupdate -c ud -r YY01 SDBOSS CICSPassword=131468
[root@ibmtest bin]# cd /opt/ibm/cics/

[root@ibmtest Oracle]# cicstail -r YY01
ERZ010048I/0088 04/03/18 10:17:57.609401000 YY01 6254/0015 : Application Server 101 terminated
ERZ010040I/0055 04/03/18 10:17:57.620946000 YY01 7092/0002 : CICS control process ‘cicsas’ terminated
ERZ010048I/0088 04/03/18 10:17:57.622960000 YY01 6254/0015 : Application Server 102 terminated
ERZ010040I/0055 04/03/18 10:17:57.633960000 YY01 7094/0002 : CICS control process ‘cicsas’ terminated
ERZ010048I/0088 04/03/18 10:17:57.636133000 YY01 6254/0015 : Application Server 103 terminated
ERZ010144I/0375 04/03/18 10:17:57.655580000 YY01 7244/0001 : Application server 104 started
ERZ010030I/0204 04/03/18 10:22:51.601033000 YY01 7244/0001 : CICS self consistency checking started.
ERZ010144I/0375 04/03/18 10:22:51.611609000 YY01 7313/0001 : Application server 102 started
ERZ010054I/0205 04/03/18 10:22:51.611828000 YY01 7244/0001 : CICS self consistency checking completed
ERZ010144I/0375 04/03/18 10:22:51.612814000 YY01 7310/0001 : Application server 101 started
^C
[root@ibmtest Oracle]# cicsterm -r YY01 CEMT IN TA
CCL7001I CICSTERM – CICS 3270 終端模擬器
CCL0002I (C) Copyright IBM Corporation 1995, 2014. All rights reserved.
CCL0510E 命令選項「’TA’」無效
CCL7027I 模擬器將終止
CCL7003I 命令選項是:
CCL7004I -S[=server] – 選擇伺服器 [或命名伺服器]
CCL7005I -R[=server] – 與 -S 相同
CCL7006I -T=transid – 指定初始事務
CCL7007I -K=keyfile – 選擇鍵盤綁定文件
CCL7008I -C=colorfile – 選擇顏色綁定文件
CCL7009I -M=modelname – 選擇伺服器上的終端型號
CCL7010I -N=netname – 選擇伺服器的指定終端
CCL7011I -P=printcmd – 設置處理列印請求的命令
CCL7012I -F=printfile – 將列印請求附加到列印文件
CCL7013I -W – 在完成前等待確認
CCL7014I -Q – 禁止所有輸出消息
CCL7020I -A – 請求一個無法登錄的終端
CCL7023I -E – 使用擴展的預設顏色
[root@ibmtest Oracle]# cicsget – c rd -r YY01 | grep MaxServer
ERZ046003E/0024: You must specify the class option -c className
[root@ibmtest Oracle]# cicsget -c rd -r YY01 | grep MaxServer
MaxServer=5
[root@ibmtest Oracle]# cicsget -c rd -r YY01

:ml17
ResourceDescription=”Region Definition”
AmendCounter=3
Modifiable=yes
StartType=cold
Groups=
StartupProgList=””
ShutdownProgList1=””
ShutdownProgList2=””
DefaultUserId=”CICSUSER”
FileSystemType=SFS
RDBMSInstance=””
FileRSLCheck=external
TransientDataRSLCheck=external
TemporaryStorageRSLCheck=external
JournalRSLCheck=external
ProgramRSLCheck=external
TransactionRSLCheck=external
ESMLoad=no
ESMModule=””
ReleaseNum=”0810″
LocalSysId=”ISC0″
LocalNetworkName=””
CWASize=512
MinServer=1
MaxServer=5
ServerIdleLimit=300
SafetyLevel=none
RPCListenerThreads=0
DateForm=ddmmyy
ClassTableSize=5,50,50,1,50,50,50,20,5,50,1,20,5,5,20,15,12
MaxRegionPool=3145728
MaxTaskPrivatePool=1048576
MaxTSHPool=1048576
RegionPoolThreshold=90
TaskShPoolThreshold=90
TaskSHNumBuckets=512
LoadDataNumBuckets=512
SysDump=no
PCDump=yes
ABDump=yes
DumpName=”dumps”
CoreDumpName=”dir1″
TraceDirectorySystem=”/var/cics_regions/%R/dumps/dir1″
TraceDirectoryUser=”/tmp”
TraceFlagAux=off
TraceFlagBuffer=on
TraceFlagExec=off
TraceFlagExternal=off
TraceFlagMaster=off
TraceFlagSystem=off
TraceFlagUser=off
TraceMaxSizeAux=0
TraceMaxSizeBuffer=131072
TraceSystemSpec=”all=4″
IntrospectInterval=10
IntrospectLevel=minimal
ISCDelayMinutes=10
CUBSDelayMinutes=5
CARPDelayHours=8
ProtectPurgeDelayPeriod=8
PurgeDelayPeriod=8
StatsRecord=yes
StatFile=”statsfile”
SufficesSupported=yes
CheckpointInterval=1000
DefaultFileServer=”/.:/cics/sfs/ibmexam”
RecTSQFile=”%Rcicsrectsqfile”
RecTSQIndex=”cicsrectsqidx”
RecTSQVol=”sfs_%S”
RecTSQPrePages=5
RecTSQMaxRecs=1000000
NonRecTSQFile=”%Rcicsnrectsqfil”
NonRecTSQIndex=”cicsnrectsqidx”
NonRecTSQVol=”sfs_%S”
NonRecTSQPrePages=5
NonRecTSQMaxRecs=1000000
LogicalTDQFile=”%Rcicstdqlgfile”
LogicalTDQIndex=”cicstdqlgidx”
LogicalTDQVol=”sfs_%S”
LogicalTDQPrePages=5
LogicalTDQMaxRecs=1000000
PhysicalTDQFile=”%Rcicstdqphfile”
PhysicalTDQIndex=”cicstdqphidx”
PhysicalTDQVol=”sfs_%S”
PhysicalTDQPrePages=5
PhysicalTDQMaxRecs=1000000
NonRecTDQFile=”%Rcicstdqnofile”
NonRecTDQIndex=”cicstdqnoidx”
NonRecTDQVol=”sfs_%S”
NonRecTDQPrePages=5
NonRecTDQMaxRecs=1000000
LocalQProtectFile=”%Rcicsplqfile”
LocalQProtectIndex=”cicsplqidx”
LocalQProtectVol=”sfs_%S”
LocalQProtectPrePages=5
LocalQProtectMaxRecs=1000000
LocalQFile=”%Rcicsnlqfile”
LocalQIndex=”cicsnlqidx”
LocalQVol=”sfs_%S”
LocalQPrePages=5
LocalQMaxRecs=1000000
TSQAgeLimit=20
ProgramCacheSize=0
LocalLUName=””
RegionPoolBase=1342177280
TaskSharedPoolBase=1610612736
ServerSideTran=no
AllowDebugging=no
HTMLBrowser=””
AutoinstallMode=default
MaxConsoleSize=0
MaxTaskCPU=0
MaxTaskCPUAction=warning
TransDumpTrace=no
PostScanInterval=0
IIOPObjrefsVersion=”1.1″
IIOPRequestTimeout=100
IIOPGroupUUID=””
IIOPGroupHost=””
IIOPGroupPort=””
IIOPGroupSSLPort=””
XPRecvTimeout=0
TDPurgeInterval=0
EAMLoad=no
EAMModule=””
ServerMemCheckInterval=0
ServerMemCheckLimit=0
WLMListenerList=”{0.0.0.0,0}”
EnableAppProbe=no
EnableTaskInfo=no
DumpRemoteInfo=no

[root@ibmtest Oracle]# reboot

Last login: Tue Apr 3 09:26:49 2018 from laptop-ksr0sn9s
[root@ibmtest ~]# df -h
文件系統 容量 已用 可用 已用% 掛載點
/dev/mapper/cl-root 17G 14G 3.8G 78% /
devtmpfs 902M 0 902M 0% /dev
tmpfs 912M 0 912M 0% /dev/shm
tmpfs 912M 8.6M 904M 1% /run
tmpfs 912M 0 912M 0% /sys/fs/cgroup
/dev/sda1 1014M 139M 876M 14% /boot
tmpfs 183M 0 183M 0% /run/user/0
[root@ibmtest ~]# cd /opt/IBM/WebSphere/AppServer/bin/
[root@ibmtest bin]# ./manageprofiles.sh -delete -profileName AppPBOSS
INSTCONFSUCCESS: 成功:概要文件不再存在。
[root@ibmtest bin]# ./manageprofiles.sh -delete -profileName DmgrPBOSS
INSTCONFSUCCESS: 成功:概要文件不再存在。
[root@ibmtest bin]# cd ..
[root@ibmtest AppServer]# ls
cbin dev firststeps instutils links profiles sar2war_tool temp uninstall
configuration endorsed_apis installableApps java logs profileTemplates Scheduler tio universalDriver
deploytool etc installedConnectors lafiles optionalLibraries properties scriptLibraries tivoli util
derby features installedFilters lib plugins runtimes systemApps UDDIReg web
[root@ibmtest AppServer]# cd profiles
[root@ibmtest profiles]# ls
AppPBOSS AppSrv01 AppSrv02 Dmgr01 DmgrPBOSS
[root@ibmtest profiles]# rm -rf *PBOSS
[root@ibmtest profiles]# ls
AppSrv01 AppSrv02 Dmgr01
[root@ibmtest profiles]# cicscp status all
ERZ058504I/0107: Starting RPC daemon.
ERZ058502I/0101: RPC daemon is already running.
ibmexam sfs Stopped
ibmtest sfs Stopped
YY01 region Stopped
RGN1 region Stopped
test01 region Stopped
[root@ibmtest profiles]# cicscp -v delete sfs_server /.:/cics/sfs/ibmexam
ERZ096031E/0308: Unknown command ‘delete’.
ERZ096059E/0089: The cicscp command was incorrect.
[root@ibmtest profiles]# cicscp -v destroy sfs_server /.:/cics/sfs/ibmexam
ERZ058504I/0107: Starting RPC daemon.
ERZ058502I/0101: RPC daemon is already running.
ERZ096108I/0215: Processing a destroy sfs_server command.
Are you sure you want to destroy the sfs_server ‘/.:/cics/sfs/ibmexam’? y
ERZ096140I/0215: Destroying SFS server ‘/.:/cics/sfs/ibmexam’.
ERZ010072I/0702: Deleting subsystem and notify method ‘cicssfs.ibmexam’
ERZ038039I/0019: The subsystem for server ‘/.:/cics/sfs/ibmexam’ has been removed
ERZ038063I/0017: Server ‘/.:/cics/sfs/ibmexam’ has been removed from SSD.
ERZ096110I/0223: The SFS server ‘/.:/cics/sfs/ibmexam’ was destroyed successfully.
ERZ096002I/0003: The cicscp command has completed successfully.
[root@ibmtest profiles]# ciscp -v destroy region YY01 -s
-bash: ciscp: 未找到命令
[root@ibmtest profiles]# cicscp -v destroy region YY01 -s
ERZ058504I/0107: Starting RPC daemon.
ERZ058502I/0101: RPC daemon is already running.
ERZ096127I/0257: Processing a destroy region command.
Are you sure you want to destroy the region ‘YY01’? y
ERZ096156I/0257: Destroying region ‘YY01’.
ERZ096111I/0224: Processing a start sfs_server command.
ERZ096141I/0224: Starting SFS server ‘/.:/cics/sfs/ibmexam’.
ERZ046117I/0510: Deleting Structured File Server (SFS) data for the region ‘YY01’
ERZ038267I/0128: Deleting CICS file ‘/.:/cics/sfs/ibmexam/YY01cicsplqfile’
ERZ038265W/0126: Failed to open file ‘/.:/cics/sfs/ibmexam/YY01cicsplqfile’, SFS error ‘ENC-sfs-0051’
ERZ038267I/0128: Deleting CICS file ‘/.:/cics/sfs/ibmexam/YY01cicsnlqfile’
ERZ038265W/0126: Failed to open file ‘/.:/cics/sfs/ibmexam/YY01cicsnlqfile’, SFS error ‘ENC-sfs-0051’
ERZ038267I/0128: Deleting CICS file ‘/.:/cics/sfs/ibmexam/YY01cicstdqlgfile’
ERZ038265W/0126: Failed to open file ‘/.:/cics/sfs/ibmexam/YY01cicstdqlgfile’, SFS error ‘ENC-sfs-0051’
ERZ038267I/0128: Deleting CICS file ‘/.:/cics/sfs/ibmexam/YY01cicstdqphfile’
ERZ038265W/0126: Failed to open file ‘/.:/cics/sfs/ibmexam/YY01cicstdqphfile’, SFS error ‘ENC-sfs-0051’
ERZ038267I/0128: Deleting CICS file ‘/.:/cics/sfs/ibmexam/YY01cicstdqnofile’
ERZ038265W/0126: Failed to open file ‘/.:/cics/sfs/ibmexam/YY01cicstdqnofile’, SFS error ‘ENC-sfs-0051’
ERZ038267I/0128: Deleting CICS file ‘/.:/cics/sfs/ibmexam/YY01cicsrectsqfile’
ERZ038265W/0126: Failed to open file ‘/.:/cics/sfs/ibmexam/YY01cicsrectsqfile’, SFS error ‘ENC-sfs-0051’
ERZ038267I/0128: Deleting CICS file ‘/.:/cics/sfs/ibmexam/YY01cicsnrectsqfil’
ERZ038265W/0126: Failed to open file ‘/.:/cics/sfs/ibmexam/YY01cicsnrectsqfil’, SFS error ‘ENC-sfs-0051’
ERZ046119I/0514: Deleting subsystem definition for the region ‘YY01’
ERZ010072I/0702: Deleting subsystem and notify method ‘cics.YY01’
ERZ046120I/0515: Deleting files and directories for the region ‘YY01’
ERZ096128I/0263: The region ‘YY01’ was destroyed successfully.
ERZ096002I/0003: The cicscp command has completed successfully.
[root@ibmtest profiles]# cicscp status all
ERZ058504I/0107: Starting RPC daemon.
ERZ058502I/0101: RPC daemon is already running.
ibmtest sfs Stopped
RGN1 region Stopped
test01 region Stopped
[root@ibmtest profiles]#

以下文章點擊率最高

Loading…

發表評論