You are on page 1of 9

---For ASM http://www.oracle-base.

com/articles/10g/automatic-storage-management-
10g.php#ini tialization_parameters_and_asm_instance_creation.
CELLCLI COMMANDS CellCLI> CellCLI> CellCLI> CellCLI> CellCLI> CellCLI> CellCLI>
CellCLI> CellCLI> alter cell shutdown services rs alter cell restart services rs
list cell attributes rsStatus alter cell shutdown services MS alter cell shutdo
wn services CELLSRV alter cell shutdown services all alter cell restart services
all alter cell led on alter cell led off
CellCLI> create griddisk TEST_DG_CD_00_cell03 Celldisk='CD_00_cell03', size=100M
Cellcli > list lun where disktype = harddisk Cellcli> list celldisk CD_09_qr01c
el01 detail CellCLI> list physicaldisk where luns like '.*DISK09' detail List ce
lldisk CD_09_qr01cel01 detail CellCLI> list griddisk attributes name, celldisk,
size where name='TEST_DG_CD_00_cell03' TEST_DG_CD_00_cell03 CD_00_cell03 96 Cell
CLI> create griddisk all harddisk prefix='TEST', size=100M CellCLI> list griddis
k attributes name, cellDisk, diskType, size Where name like 'TEST_.*'
Describe --- To display all attributes CellCLI> CellCLI> CellCLI> CellCLI> CellC
LI> CellCLI> CellCLI> CellCLI> CellCLI> CellCLI> describe describe describe desc
ribe describe describe describe describe describe describe cell physicaldisk lun
celldisk griddisk flashcache flashcachecontent metriccurrent metricdefinition m
etrichistory
- To display Oracle Exadata Storage Servers/Cells Information CellCLI> list cell
CellCLI> list cell detail CellCLI> list cell attributes all
CellCLI> list cell attributes rsStatus - To display physical disks information C
ellCLI> list physicaldisk CellCLI> list physicaldisk detail CellCLI> list physic
aldisk 34:5 CellCLI> list physicaldisk 34:11 detail CellCLI> list physicaldisk a
ttributes all CellCLI> list physicaldisk attributes name, id, slotnumber CellCLI
> list physicaldisk attributes name, disktype, makemodel, physicalrpm, ph ysical
port, status CellCLI> list physicaldisk attributes name, disktype, errCmdTimeout
Count, errHar dReadCount, errHardWriteCount CellCLI> list physicaldisk where dis
kType='Flashdisk' CellCLI> list physicaldisk attributes name, id, slotnumber whe
re disktype="flash disk" and status != "not present" CellCLI> list physicaldisk
attributes name, physicalInterface, physicalInsertTim e where disktype = 'Harddi
sk' CellCLI> list physicaldisk where diskType=flashdisk and status='poor perform
ance ' detail --To display LUNs information CellCLI> CellCLI> CellCLI> CellCLI>
CellCLI> CellCLI> list list list list list list lun lun lun lun lun lun detail 0
_8 detail attributes all attributes name, cellDisk, raidLevel, status where disk
type=flashdisk
- To display cell disks information CellCLI> CellCLI> CellCLI> CellCLI> CellCLI>
CellCLI> CellCLI> CellCLI> list list list list list list list list celldisk cel
ldisk celldisk celldisk celldisk celldisk celldisk celldisk detail FD_01_cell07
FD_01_cell13 detail attributes all attributes name, devicePartition attributes n
ame, devicePartition where size>20G attributes name, interleaving where disktype
=harddisk
-- To display grid disks information CellCLI> list griddisk CellCLI> list griddi
sk CellCLI> list griddisk CellCLI> list griddisk CellCLI> list griddisk CellCLI>
list griddisk CellCLI> list griddisk --- describe command CellCLI> list griddis
k CellCLI> list griddisk detail DG_01_cell03 detail attributes all attributes na
me, size attributes name, cellDisk, diskType attributes name, ASMDeactivationOut
come, ASMModeStatus does not show these two attributes attributes name, cellDisk
,status where size=476.546875G attributes name where asmdeactivationoutcome!= 'Y
es'
- To display flash cache information CellCLI> list flashcache
CellCLI> list flashcache detail CellCLI> list flashcache attributes all CellCLI>
list flashcache attributes degradedCelldisks - To display flash cache content i
nformation. CellCLI> list flashcachecontent - Will display flash cache content i
nform ation CellCLI> list flashcachecontent detail CellCLI> list flashcacheconte
nt where objectnumber=161441 detail CellCLI> list flashcachecontent where dbUniq
ueName like 'EX.?.?' and hitcount > 100 attributes dbUniqueName, objectNumber, c
achedKeepSize, cachedSize CellCLI> list flashcachecontent where dbUniqueName lik
e 'EX.?.?' and objectNumbe r like '.*007' CellCLI> list flashcachecontent where
dbUniqueName like '.*X.?.?' and objectNumb er like '.*456' detail - To display m
etrics information CellCLI> list metriccurrent CellCLI> list metriccurrent gd_io
_rq_w_sm CellCLI> list metriccurrent n_nic_rcv_sec detail CellCLI> list metriccu
rrent attributes name, metricObjectName,metricType, metric Value,objectType wher
e alertState != 'normal' CellCLI> list metriccurrent attributes name,metricObjec
tName,metricType, metricV alue,alertState where objectType = 'HOST_INTERCONNECT'
CellCLI> list metriccurrent attributes all where objectType = 'CELL' CellCLI> l
ist metriccurrent attributes all where objectType = 'GRIDDISK' > and metricObjec
tName = 'DATA_CD_09_cell01' and metricValue > 0 - To display metric's definition
s CellCLI> list metricdefinition CellCLI> list metricdefinition cl_cput detail C
ellCLI> list metricdefinition attributes all where objecttype='CELL' - To displa
y metric's history CellCLI> list metrichistory - Will display metric's history C
ellCLI> list metrichistory cl_cput CellCLI> list metrichistory where objectType
= 'CELL' CellCLI> list metrichistory where objectType = 'CELL' and name = 'CL_TE
MP' CellCLI> list metrichistory cl_cput where collection time > '*2011-10-15T22:
56:0 4-04:00*' # cellcli -x -n -e "list metrichistory where objectType='CELL' an
d name='CL_TEMP '" --- -x to suppress the banner, and the -n to suppress the com
mand line - To display alert's definitions CellCLI> list alertdefinition detail
CellCLI> list alertdefinition attributes all where alertSource!='Metric' ---- Wi
ll display alert's history CellCLI> list alerthistory CellCLI> list alerthistory
detail
CellCLI> list alerthistory where notificationState like '[023]' and severity lik
e '[warning|critical]' and examinedBy = NULL; CellCLI> list activerequest - To
display InfiniBand configuration details CellCLI> list ibport CellCLI> list ibpo
rt detail - To display IORM plan details CellCLI> list iormplan CellCLI> list ke
y CellCLI> list quarantine CellCLI> list threshold Create : CellCLI> create cell
disk all harddisk CellCLI> create celldisk all CellCLI> create celldisk all hard
disk interleaving='normal redundancy' Interleaving -- none(default), normal redu
ndancy or high redundancy CellCLI> create celldisk all flashdisk CellCLI> create
griddisk RECO_CD_11_cell01 celldisk=CD_11_cell01 CellCLI> create griddisk RECO_
CD_11_cell01 celldisk=CD_11_cell01 size=100M CellCLI> create griddisk all prefix
RECO CellCLI> create griddisk all flashdisk prefix FLASH CellCLI> create griddi
sk all harddisk prefix HARD CellCLI> create griddisk all harddisk prefix='data',
size='270g' CellCLI> create griddisk all prefix='data', size='300g' CellCLI> cr
eate griddisk all prefix='redo', size='150g' CellCLI> create griddisk all harddi
sk prefix=system CellCLI> create flashcache celldisk='FD_00_cell01' CellCLI> cre
ate flashcache celldisk='FD_13_cell01,FD_00_cell01,FD_10_cell01,FD_0 2_cell01,FD
_06_cell01, FD_12_cell01,FD_05_cell01,FD_08_cell01,FD_15_cell01,FD_14 _cell01,FD
_07_cell01,FD_04_cell01,FD_03_cell01,FD_11_cell01,FD_09_cell01,FD_01_c ell01' Ce
llCLI> create flashcache all CellCLI> create flashcache all size=365.25G CellCLI
> create key CellCLI> create quarantine CellCLI> create threshold cd_io_errs_min
.prodb comparison=">", critical=10 CellCLI> create threshold CD_IO_ERRS_MIN warn
ing=1, comparison='>=', occurrences =1, observation=1 Alter: CellCLI> e CellCLI>
vice CellCLI> CellCLI> rvices CellCLI> CellCLI> alter cell shutdown services rs
- To shutdown the Restart Server servic alter cell shutdown services MS - To sh
utdown the Management Server ser alter cell shutdown services CELLSRV - To shutd
own the Cell Services alter cell shutdown services all -To shutdown the RS, CELL
SRV and MS se alter cell restart services rs alter cell restart services all
CellCLI> alter cell led on CellCLI> alter cell led off CellCLI> alter cell valid
ate mail CellCLI> alter cell validate configuration CellCLI> alter cell smtpfrom
addr='cell07@orac.com' CellCLI> alter cell smtpfrom='Exadata Cell 07' CellCLI> a
lter cell smtptoaddr='satya@orac.com' CellCLI> alter cell emailFormat='text' Cel
lCLI> alter cell emailFormat='html' CellCLI> alter cell validate snmp type=ASR -
Automatic Service Requests (ASRs) CellCLI> alter cell snmpsubscriber=((host='sn
mp01.orac.com,type=ASR')) CellCLI> alter cell restart bmc - BMC, Baseboard Manag
ement Controller, control s the compoments of the cell. CellCLI> alter cell conf
igure bmc CellCLI> alter physicaldisk 34:2,34:3 serviceled on CellCLI> alter phy
sicaldisk 34:6,34:9 serviceled off CellCLI> alter physicaldisk harddisk servicel
ed on CellCLI> alter physicaldisk all serviceled on CellCLI> alter lun 0_10 reen
able CellCLI> alter lun 0_04 reenable force CellCLI> alter celldisk FD_01_cell07
comment='Flash Disk' CellCLI> alter celldisk all harddisk comment='Hard Disk' C
ellCLI> alter celldisk all flashdisk comment='Flash Disk' CellCLI> alter griddis
k RECO_CD_10_cell06 comment='Used for Reco' CellCLI> alter griddisk all inactive
CellCLI> alter griddisk RECO_CD_11_cell12 inactive CellCLI> alter griddisk RECO
_CD_08_cell01 inactive force CellCLI> alter griddisk RECO_CD_11_cell01 inactive
nowait CellCLI> alter griddisk DATA_CD_00_CELL01,DATA_CD_02_CELL01,...DATA_CD_11
_CELL01 inactive CellCLI> alter griddisk all active CellCLI> alter griddisk RECO
_CD_11_cell01 active CellCLI> alter griddisk all harddisk comment='Hard Disk' Ce
llCLI> alter ibport ibp2 reset counters CellCLI> alter iormplan active CellCLI>
alter quarantine CellCLI> alter threshold DB_IO_RQ_SM_SEC.PRODB comparison=">",
critical=100 cellCLI> alter alerthistory
Drop:
CellCLI> drop cell --- To reset the cell to its factory settings, removes the ce
ll related properties of the server; it does not actually remove the physical s
e rver. CellCLI> drop cell force CellCLI> drop celldisk CD_01_cell05 CellCLI> dr
op celldisk CD_00_cell09 force CellCLI> drop celldisk harddisk CellCLI> drop cel
ldisk flashdisk CellCLI> drop celldisk all CellCLI> drop celldisk all flashdisk
force CellCLI> drop griddisk DBFS_DG_CD_02_cel14 CellCLI> drop griddisk RECO_CD_
11_cell01 force CellCLI> drop griddisk prefix=DBFS CellCLI> drop griddisk flashd
isk
CellCLI> CellCLI> CellCLI> CellCLI> CellCLI> CellCLI> CellCLI>
drop drop drop drop drop drop drop
griddisk harddisk griddisk all griddisk all prefix=temp_dg flashcache quarantine
threshold DB_IO_RQ_SM_SEC.PRODB alerthistory
Export CellCLI> export celldisk Import CellCLI> import celldisk Assign CellCLI>
assign key Calibrate CellCLI> calibrate CellCLI> calibrate force Set CellCLI> he
lp set Usage: SET <variable> <value> Purpose: Sets a variable to alter the CELLC
LI environment settings for your cu rrent session. Arguments: variable and value
represent one of the following clauses: DATEFORMAT { STANDARD | LOCAL } ECHO {
ON | OFF } CellCLI> set dateformat local CellCLI> set dateformat standard CellCL
I> set echo on CellCLI> set echo off Spool CellCLI> CellCLI> CellCLI> CellCLI> C
ellCLI>
spool spool spool spool spool
myCellCLI.txt myCellCLI.txt append myCellCLI.txt replace off --- Will give spool
file name
Scripts execution CellCLI> @listdisks.cli CellCLI> start listdisks.cli Comments
REM This is a comment REMARK This is another comment -- This is yet another comm
ent
Continuation Character CellCLI> list metriccurrent attributes name,metricObjectN
ame,metricValue, objectType where alertState != 'normal' --- continuation charac
ter for queries spanned in multiple lines Exit/Quit CellCLI> exit CellCLI> quit

You might also like