下列是 ca_dbmgr 指令語法的範例:
ca_dbmgr -cahost machine1 -show prune
ca_dbmgr -cahost machine1 -show summary
ca_dbmgr -cahost machine1 -show jobs 8
ca_dbmgr -cahost machine1 -show jobs -completed -last 8 days
ca_dbmgr -cahost machine1 -show jobsessions 8
ca_dbmgr -cahost machine1 -show tapes
ca_dbmgr -cahost machine1 -show tapesessions AB3C
ca_dbmgr -cahost machine1 -show pools
ca_dbmgr -cahost machine1 -show poolmedia POOL1
範例:ca_dbmgr 媒體集區管理選項
ca_dbmgr -cahost machine1 -mediapool add POOL1 0 -b 1200000 -i 1000 -m 1299999 -retention 100
ca_dbmgr -cahost machine1 -mediapool modify POOL1 -save 0 -retention 99
ca_dbmgr -cahost machine1 -mediapool delete -f TMPOOL AB3C
ca_dbmgr -cahost machine1 -mediapool move AB3C POOL1 POOL2 SAVE
範例:ca_dbmgr 資料庫管理選項
ca_dbmgr -cahost machine1 -tape delete AB3C:1
ca_dbmgr -cahost machine1 -prune set 20 days 23:59
範例:ca_dbmgr 資料庫維護選項
ca_dbmgr -cahost machine1 -maintenance RebuildIndex
Copyright © 2013 CA.
All rights reserved.
|
|