Starting Control Process
Automatically configuring buffers
Allocated 1094MB shared memory: 956MB global buffers, 35MB routine buffers
This copy of Cache has been licensed for use exclusively by:
License missing or unreadable.
Copyright (c) 1986-2016 by InterSystems Corporation
Any other use is a violation of your license agreement
2 alert(s) during startup. See cconsole.log for details.
--4.停止CACHE 服务
ccontrol stop cyyy
[root@cache-server ~]# ccontrol stop cyyy
Cache Shutdown Status: 10:14 am 19 Oct 2023
1 interactive job (Telnet/Lat)
0 background jobs (from job command)
0 Cache Direct server jobs
0 CSP server jobs
0 ODBC server jobs
20 system jobs
Do you want to broadcast a message to anyone? No => No
Do you want to see the Cache status report? No => No
Do you want to run the user defined shutdown routine? Yes => Yes
Are you ready for the system to halt? Yes => Yes
10:15:00 Shutting down Cache
10:15:00 Notifying Clients
10:15:00 No user shutdown routines to execute
10:15:00 Stopping User Jobs
10:15:00 Stopping Network Servers
10:15:00 Withdrawing from License Domain
10:15:00 Waiting for users to stop
10:15:00 Stopping Client Networking
10:15:00 Removing database locks
10:15:00 Updating Journal File
10:15:01 Waiting for database updates to complete
10:15:01 Database updates complete
10:15:01 Stopping System Jobs
10:15:03 Shutdown complete
--5.查看版本号
[root@cache-server ~]# ccontrol version
506
--6.创建实例
[root@cache-server ~]# ccontrol create his directory=/tmp/his
--7.列出所有实例
[root@cache-server ~]# ccontrol qall
Instance Name Version ID Port Directory
---------------- ---------------- ----- --------------------------------
up >CYYY 2016.2.0.736.0 1972 /tmp/cyyy
dn HIS 2016.2.0.736.0 /tmp/his
--8.查看实例统计信息
[root@cache-server ~]# ccontrol stat cyyy
/tmp/cyyy/bin/cstat -s /tmp/cyyy/mgr
Cache Running version:
Cache for UNIX (Red Hat Enterprise Linux for x86-64) 2016.2 (Build 736U) Fri Sep 30 2016 12:25:56 EDT
From directory: /source/v2016-2-0/2016_2_0_736_0/built/lnxrhx64uni/release/kernel
CSTAT Compiled with:
Cache for UNIX (Red Hat Enterprise Linux for x86-64) 2016.2 (Build 736U) Fri Sep 30 2016 12:25:56 EDT
From Directory: /source/v2016-2-0/2016_2_0_736_0/built/lnxrhx64uni/release/kernel
The time is: Thu Oct 19 10:39:00 2023
ClientSystemName (clisysname): 'CACHE-SERVER', Client LongId: 'cache-server:CYYY'
**** ccontrol usage ****
Syntax:
ccontrol start <instance name> [parameters]
Description:
Run the instance's cstart procedure to bring Cache up.
Optional parameters:
quietly -> non-interactive, with minimal dialog
nostu -> don't run startup routine (^STU)
help -> list supported parameters
Any other value will be taken as a .cpf configuration file name.
Example:
ccontrol start mystuff quietly
Notes:
Some instances might not have support for a particular parameter,
or a new parameter could have been added. For a list of supported
parameters for a specific instance, type:
ccontrol start <instance name> help
Syntax:
ccontrol stop <instance name> [parameters]
Description:
Run the instance's cstop procedure to shut Cache down.
Optional parameters:
quietly -> non-interactive, with minimal dialog
nouser -> don't run user shutdown routine
bypass -> bypass block against startup incomplete
restart -> run startup after shutdown completes
help -> list supported parameters
Example:
ccontrol stop mystuff quietly restart
Notes:
Some instances might not have support for a particular parameter,
or a new parameter could have been added. For a list of supported
parameters for a specific instance, type:
ccontrol stop <instance name> help
Syntax:
ccontrol runlevel <instance name> <target-runlevel>
Description:
Set and attempt to advance the Cache runlevel
to the specified target.
Example:
ccontrol runlevel mystuff restorejrn
Notes:
Some instances might not have support for a particular parameter,
or a new parameter could have been added. For a list of supported
parameters for a specific instance, type:
ccontrol runlevel <instance name> help
Syntax:
ccontrol force <instance name> [parameters]
Description:
Run the instance's cforce procedure to force Cache down.
Optional parameters:
quietly -> non-interactive, with no dialog
help -> list supported parameters
Example:
ccontrol force mystuff quietly
Notes:
Some instances might not have support for a particular parameter,
or a new parameter could have been added. For a list of supported
parameters for a specific instance, type:
ccontrol force <instance name> help
Syntax:
ccontrol backup <instance name> [parameters]
Description:
Run the instance's CBACKUP procedure for database backup.
Optional parameters:
quietly -> non-interactive, with minimal dialog
help -> list supported parameters
Example:
ccontrol backup mystuff quietly
Notes:
Some instances might not have support for a particular parameter,
or a new parameter could have been added. For a list of supported
parameters for a specific instance, type:
ccontrol backup <instance name> help
Syntax:
ccontrol stat <instance name> [options]
Description:
Run the instance's CSTAT procedure for Cache system statistics.
Options:
-a[0/1] All
-b[bits] Display all BDBs in the buffer pool
Bits: 1=All,2=Cluster,4=ECP Server, 8=ECP Client
16=Display block contents
64=Check block integrity (will take extra time)
-c[bits] Counters: 1=global,2=network,4=lock,8=optim,16=terminal
32=symtab,64=journal,128=disk i/o,256=cluster
16777216=fsync, 33554432=obj class, 67108864=wd
134217728=bigstr, 268435456=swd, 536870912=sort
1073741824=symsave
-d<file> Dump to file
-e[0/1/2] Errors, 2 = extra process info
-f[bits] Flags (1=basic, 64=resources, 128=with detail,
256=gccount detail, 512=incstrtab,
1024=audit)
-g[0/1] Glostat
-h or -? Print this help
-i Print limited information
-j[0-6] Journaling System
-l[bits] LRU BDB queue, same bits as -b
32 (and not 1) = MRU order
-m[0/1/3/4/8/16] Global File Table
3-more details, 4-volume queues
8-display disk device id table
16-systems remotely mounting this DB
-n[0/1] Network structures
-o[0/1] Zero resource statistics
-p[flags] Pid tables (2=swcheck,4=pstate and %SS,8=js sum,16=js list
32=grefcnt info,64=gstatebits,128=gstate summary
256=jrnhib,512=transaction summary,1024=pidflags)
2048=pgbdbsav)
-q[0/1] Semaphores
-r<name> Restore from file
-s<dir> Alternate manager's directory
-t<secs> Time
-u[bits] Lock Table (1=summary,2=waiters,4=intermediate,
8=detail,16=watermark,32=buddymemory,64=ResourceInfo)
-v[0/1] Version checking
-w[bits] Write Daemon queue, same bits as -b
-A<stuff> Restore cache.ids, do cstat -A0 -s. for usage
-B[0/1] Display contents of blocks in GBFSPECQ
-C[0/1] IJC devices
-D<secs>,<millisec> Res stats over interval,local block collision
sample interval
-F<resource#> Free up resource number, needs -Q<job>
-G<bdb #> Display bdb, block contents and related bdb's
-H<sfn,block> Find and display bdb from sfn and block num
-I[0/1] Incremental backup data structures
-K<switch #> Emergency switch clear
-L[0/1] License token user counts
-M[0/1] Mailbox log from MBXRECORD
-N[bits] Dump ECP Networking Structures
Bits: 1=Cli,2=Srv,4=Client Buffers,8=Server Buffers
16=Client Buffers in detail
32=User jobs awaiting answer
64=srv ans bufs details,
128=Req Global
256=Server send answer buf detials (not -1),
1024=dump the serverrcvd req bufs,
2048=client trans bitmap,
4096=client GLO Q,
8192=Req Global ref hex dump
65536=ECP Blocks downloaded to clients
131072=client released req bufs details (not -1),
-P<job> Send a wakeup poke to specified job
-Q<job> Send a wakeup to job & set reswake
-R[bits] Dump routine buffer pool
Bits: 1=RB inuse,2=RFN,4=RCT,8=RCT detail,16=All,32=LRU Q,
64=all CCB, 128=locked CCB, 256=CCB LRU Q, +512=buffaddr
-S[0/1] Self-diagnosis for system hangs
-T[0/1] Dump shared memory and NLS tables
-V<pid> Examine pid.dmp exception dump file
-W Freeup suspended WD
-X[0/1] Dump numeric device translation table
-Ykey[=val] Get/Set value of internal parameters (-Y0 for usage)
-Z<sfn> Release ownership of a database file
Example:
ccontrol stat mystuff -a1
Notes:
Some instances might not have support for a particular option,
or a new option could have been added. For a list of supported
options for a specific instance, type:
ccontrol stat <instance name> -h or -?
Syntax:
ccontrol create <instance name> <parameters>
Description:
Create an instance's entry in the Cache registry.
Parameters:
directory=<installation directory name>
versionid=<version identifier>
Example:
ccontrol create mystuff directory=/usr/cachesys versionid=2008.2.0.357.0
Syntax:
ccontrol update <instance name> <parameters>
Description:
Update an instance's entry in the Cache registry.
Parameters:
versionid=<version identifier>
Example:
ccontrol update mystuff versionid=2008.2.0.357.0
Syntax:
ccontrol delete <instance name>
Description:
Delete an instance's entry from the Cache registry.
Example:
ccontrol delete mystuff
Notes:
This is **not** an UNINSTALL procedure.
The instance's files are not removed.
Syntax:
ccontrol list
ccontrol list <instance name>
Description:
The 'list' function is the same as the 'view' function.
Syntax:
ccontrol qlist
Description:
Quick list Cache registry information for all instances, in a format
suitable for parsing in command scripts.
Syntax:
ccontrol qlist <instance name>
Description:
Quick list the instance's Cache registry information, in a format
suitable for parsing in command scripts.
The record for an instance contains fields separated by "^" (carats):
Field 1: instance name
Field 2: instance directory
Field 3: version identifier
Field 4: current status for the instance
Field 5: configuration file name last used
Field 6: SuperServer port number
Field 7: WebServer port number
Field 8: JDBC Gateway port number
Field 9. Instance status (e.g., ok, warn, alert)
Example:
ccontrol qlist mystuff
MYSTUFF^/usr/cachesys^2008.2.0.357.0^down, last used Tue Apr 15 09:34:50 2008^cache.cpf^56794^57791
Syntax:
ccontrol all
Description:
Show compact summary of all Cache instances.
Notes:
A display field will wrap to the next line if it exceeds the width
shown by dashes in its respective column heading.
Full information can be obtained using the 'ccontrol list' command.
The status for each instance is indicated by:
"dn" - Cache is not running
"up" - Cache is running on this machine
"xt" - directory in use by a Cache instance on an external node
" " - (blank) status unavailable
Syntax:
ccontrol allw
Description:
Show wide format compact summary of all Cache instances.
Notes:
A display field will NOT wrap to the next line if it exceeds the width
shown by dashes in its respective wider column heading.
Full information can be obtained using the 'ccontrol list' command.
The status for each instance is indicated by:
"dn" - Cache is not running
"up" - Cache is running on this machine
"xt" - directory in use by a Cache instance on an external node
" " - (blank) status unavailable
Syntax:
ccontrol qall
Description:
Show quick compact summary of all Cache instances.
Notes:
A display field will be truncated if necessary to fit the width shown
by dashes in its respective column heading. If this occurs, the
final character of the field will be displayed as a "~" (tilde).
This is similar to 'ccontrol all' but with the display compressed to a
single line for each instance. See that command for further details.
Syntax:
ccontrol nodename
Description:
Display the local node (system) name. If you have assigned a static
name to your machine for use by Cache, it will be displayed.
Otherwise, the O.S. node name (see the uname -n command) is used.
Syntax:
ccontrol nodename <name>
Description:
Designate the local node (system) name for your machine. This is a
static name that Cache will use to avoid start/stop conflicts among
instances, even though your current node name might be delivered by a
remote network service such as DHCP. The node name you assign should
be unique. If your node name (see the uname -n command) is not
modified by a remote service, you do not need to do this.
Example:
ccontrol nodename LinuxLab.test1
Syntax:
ccontrol nodename ""
Description:
Remove the static local node name.
Syntax:
ccontrol session <instance name> [parameters]
Description:
Start a terminal session for the instance.
Optional parameters:
-B -> emergency login in case logins are disabled
-U <namespace> -> specify login namespace
-b <partition> -> maximum partition size for process (in KB)
"<routine>" -> a COS program to run in user mode
Example:
ccontrol session mystuff "^APPMAIN"
Syntax:
ccontrol version
Description:
Display the ccontrol program version number.
Syntax:
ccontrol help
Description:
Display help for all ccontrol functions.
Syntax:
ccontrol help [function]...
Description:
Display help for specific ccontrol functions.
Example:
ccontrol help start stop