Exadata Cellcli Commands

download Exadata Cellcli Commands

of 8

Transcript of Exadata Cellcli Commands

  • 7/22/2019 Exadata Cellcli Commands

    1/8

    ---For ASM

    http://www.oracle-base.com/articles/10g/automatic-storage-management-10g.php#initialization_parameters_and_asm_instance_creation.

    CELLCLI COMMANDS

    CellCLI> alter cell shutdown services rsCellCLI> alter cell restart services rsCellCLI> list cell attributes rsStatusCellCLI> alter cell shutdown services MSCellCLI> alter cell shutdown services CELLSRVCellCLI> alter cell shutdown services allCellCLI> alter cell restart services allCellCLI> alter cell led onCellCLI> alter cell led off

    CellCLI> create griddisk TEST_DG_CD_00_cell03

    Celldisk='CD_00_cell03', size=100MCellcli > list lun where disktype = harddiskCellcli> list celldisk CD_09_qr01cel01 detailCellCLI> list physicaldisk where luns like '.*DISK09' detailList celldisk CD_09_qr01cel01 detailCellCLI> list griddisk attributes name, celldisk, size where name='TEST_DG_CD_00_cell03'TEST_DG_CD_00_cell03 CD_00_cell03 96CellCLI> create griddisk all harddisk prefix='TEST', size=100MCellCLI> list griddisk attributes name, cellDisk, diskType, size -Where name like 'TEST_.*'

    Describe --- To display all attributes

    CellCLI> describe cellCellCLI> describe physicaldiskCellCLI> describe lunCellCLI> describe celldiskCellCLI> describe griddiskCellCLI> describe flashcacheCellCLI> describe flashcachecontentCellCLI> describe metriccurrent

    CellCLI> describe metricdefinitionCellCLI> describe metrichistory

    - To display Oracle Exadata Storage Servers/CellsInformation

    CellCLI> list cellCellCLI> list cell detailCellCLI> list cell attributes all

  • 7/22/2019 Exadata Cellcli Commands

    2/8

    CellCLI> list cell attributes rsStatus

    - To display physical disks information

    CellCLI> list physicaldiskCellCLI> list physicaldisk detailCellCLI> list physicaldisk 34:5CellCLI> list physicaldisk 34:11 detailCellCLI> list physicaldisk attributes allCellCLI> list physicaldisk attributes name, id, slotnumberCellCLI> list physicaldisk attributes name, disktype, makemodel, physicalrpm, physicalport, statusCellCLI> list physicaldisk attributes name, disktype, errCmdTimeoutCount, errHardReadCount, errHardWriteCountCellCLI> list physicaldisk where diskType='Flashdisk'CellCLI> list physicaldisk attributes name, id, slotnumber where disktype="flashdisk" and status != "not present"CellCLI> list physicaldisk attributes name, physicalInterface, physicalInsertTime where disktype = 'Harddisk'CellCLI> list physicaldisk where diskType=flashdisk and status='poor performance' detail

    --To display LUNs information

    CellCLI> list lunCellCLI> list lun detailCellCLI> list lun 0_8 detailCellCLI> list lun attributes allCellCLI> list lun attributes name, cellDisk, raidLevel, statusCellCLI> list lun where disktype=flashdisk

    - To display cell disks information

    CellCLI> list celldiskCellCLI> list celldisk detailCellCLI> list celldisk FD_01_cell07

    CellCLI> list celldisk FD_01_cell13 detailCellCLI> list celldisk attributes allCellCLI> list celldisk attributes name, devicePartitionCellCLI> list celldisk attributes name, devicePartition where size>20GCellCLI> list celldisk attributes name, interleaving where disktype=harddisk

    -- To display grid disks information

    CellCLI> list griddiskCellCLI> list griddisk detailCellCLI> list griddisk DG_01_cell03 detailCellCLI> list griddisk attributes all

    CellCLI> list griddisk attributes name, sizeCellCLI> list griddisk attributes name, cellDisk, diskTypeCellCLI> list griddisk attributes name, ASMDeactivationOutcome, ASMModeStatus--- describe command does not show these two attributes

    CellCLI> list griddisk attributes name, cellDisk,status where size=476.546875GCellCLI> list griddisk attributes name where asmdeactivationoutcome!= 'Yes'

    - To display flash cache information

    CellCLI> list flashcache

  • 7/22/2019 Exadata Cellcli Commands

    3/8

    CellCLI> list flashcache detailCellCLI> list flashcache attributes allCellCLI> list flashcache attributes degradedCelldisks

    - To display flash cache content information.

    CellCLI> list flashcachecontent - Will display flash cache content informationCellCLI> list flashcachecontent detailCellCLI> list flashcachecontent where objectnumber=161441 detailCellCLI> list flashcachecontent where dbUniqueName like 'EX.?.?' and hitcount >100 attributes dbUniqueName, objectNumber, cachedKeepSize, cachedSizeCellCLI> list flashcachecontent where dbUniqueName like 'EX.?.?' and objectNumber like '.*007'CellCLI> list flashcachecontent where dbUniqueName like '.*X.?.?' and objectNumber like '.*456' detail

    - To display metrics information

    CellCLI> list metriccurrentCellCLI> list metriccurrent gd_io_rq_w_smCellCLI> list metriccurrent n_nic_rcv_sec detailCellCLI> list metriccurrent attributes name, metricObjectName,metricType, metric

    Value,objectType where alertState != 'normal'CellCLI> list metriccurrent attributes name,metricObjectName,metricType, metricValue,alertState where objectType = 'HOST_INTERCONNECT'CellCLI> list metriccurrent attributes all where objectType = 'CELL'CellCLI> list metriccurrent attributes all where objectType = 'GRIDDISK' -> and metricObjectName = 'DATA_CD_09_cell01' and metricValue > 0

    - To display metric's definitionsCellCLI> list metricdefinitionCellCLI> list metricdefinition cl_cput detailCellCLI> list metricdefinition attributes all where objecttype='CELL'

    - To display metric's history

    CellCLI> list metrichistory - Will display metric's historyCellCLI> list metrichistory cl_cputCellCLI> list metrichistory where objectType = 'CELL'CellCLI> list metrichistory where objectType = 'CELL' and name = 'CL_TEMP'CellCLI> list metrichistory cl_cput where collection time > '*2011-10-15T22:56:04-04:00*'# cellcli -x -n -e "list metrichistory where objectType='CELL' and name='CL_TEMP'"--- -x to suppress the banner, and the -n to suppress the command line

    - To display alert's definitions

    CellCLI> list alertdefinition detailCellCLI> list alertdefinition attributes all where alertSource!='Metric'

    ---- Will display alert's history

    CellCLI> list alerthistoryCellCLI> list alerthistory detail

  • 7/22/2019 Exadata Cellcli Commands

    4/8

    CellCLI> list alerthistory where notificationState like '[023]' and severity like '[warning|critical]' and examinedBy = NULL;

    CellCLI> list activerequest

    - To display InfiniBand configuration details

    CellCLI> list ibportCellCLI> list ibport detail

    - To display IORM plan detailsCellCLI> list iormplanCellCLI> list keyCellCLI> list quarantineCellCLI> list threshold

    Create :

    CellCLI> create celldisk all harddiskCellCLI> create celldisk allCellCLI> create celldisk all harddisk interleaving='normal redundancy'

    Interleaving -- none(default), normal redundancy or high redundancy

    CellCLI> create celldisk all flashdiskCellCLI> create griddisk RECO_CD_11_cell01 celldisk=CD_11_cell01CellCLI> create griddisk RECO_CD_11_cell01 celldisk=CD_11_cell01 size=100MCellCLI> create griddisk all prefix RECOCellCLI> create griddisk all flashdisk prefix FLASHCellCLI> create griddisk all harddisk prefix HARDCellCLI> create griddisk all harddisk prefix='data', size='270g'CellCLI> create griddisk all prefix='data', size='300g'CellCLI> create griddisk all prefix='redo', size='150g'CellCLI> create griddisk all harddisk prefix=systemCellCLI> create flashcache celldisk='FD_00_cell01'CellCLI> create flashcache celldisk='FD_13_cell01,FD_00_cell01,FD_10_cell01,FD_02_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_cell01'CellCLI> create flashcache allCellCLI> create flashcache all size=365.25GCellCLI> create keyCellCLI> create quarantineCellCLI> create threshold cd_io_errs_min.prodb comparison=">", critical=10CellCLI> create threshold CD_IO_ERRS_MIN warning=1, comparison='>=', occurrences=1, observation=1

    Alter:

    CellCLI> alter cell shutdown services rs - To shutdown the Restart Server serviceCellCLI> alter cell shutdown services MS - To shutdown the Management Server serviceCellCLI> alter cell shutdown services CELLSRV - To shutdown the Cell ServicesCellCLI> alter cell shutdown services all -To shutdown the RS, CELLSRV and MS servicesCellCLI> alter cell restart services rsCellCLI> alter cell restart services all

  • 7/22/2019 Exadata Cellcli Commands

    5/8

    CellCLI> alter cell led onCellCLI> alter cell led offCellCLI> alter cell validate mailCellCLI> alter cell validate configurationCellCLI> alter cell smtpfromaddr='[email protected]'CellCLI> alter cell smtpfrom='Exadata Cell 07'CellCLI> alter cell smtptoaddr='[email protected]'CellCLI> alter cell emailFormat='text'CellCLI> alter cell emailFormat='html'CellCLI> alter cell validate snmp type=ASR - Automatic Service Requests (ASRs)CellCLI> alter cell snmpsubscriber=((host='snmp01.orac.com,type=ASR'))CellCLI> alter cell restart bmc - BMC, Baseboard Management Controller, controls the compoments of the cell.CellCLI> alter cell configure bmcCellCLI> alter physicaldisk 34:2,34:3 serviceled onCellCLI> alter physicaldisk 34:6,34:9 serviceled offCellCLI> alter physicaldisk harddisk serviceled onCellCLI> alter physicaldisk all serviceled onCellCLI> alter lun 0_10 reenableCellCLI> alter lun 0_04 reenable forceCellCLI> alter celldisk FD_01_cell07 comment='Flash Disk'CellCLI> alter celldisk all harddisk comment='Hard Disk'CellCLI> alter celldisk all flashdisk comment='Flash Disk'CellCLI> alter griddisk RECO_CD_10_cell06 comment='Used for Reco'

    CellCLI> alter griddisk all inactiveCellCLI> alter griddisk RECO_CD_11_cell12 inactiveCellCLI> alter griddisk RECO_CD_08_cell01 inactive forceCellCLI> alter griddisk RECO_CD_11_cell01 inactive nowaitCellCLI> alter griddisk DATA_CD_00_CELL01,DATA_CD_02_CELL01,...DATA_CD_11_CELL01inactiveCellCLI> alter griddisk all activeCellCLI> alter griddisk RECO_CD_11_cell01 activeCellCLI> alter griddisk all harddisk comment='Hard Disk'CellCLI> alter ibport ibp2 reset countersCellCLI> alter iormplan activeCellCLI> alter quarantineCellCLI> 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 cell related properties of the server; it does not actually remove the physical server.CellCLI> drop cell force

    CellCLI> drop celldisk CD_01_cell05CellCLI> drop celldisk CD_00_cell09 forceCellCLI> drop celldisk harddiskCellCLI> drop celldisk flashdiskCellCLI> drop celldisk allCellCLI> drop celldisk all flashdisk forceCellCLI> drop griddisk DBFS_DG_CD_02_cel14CellCLI> drop griddisk RECO_CD_11_cell01 forceCellCLI> drop griddisk prefix=DBFSCellCLI> drop griddisk flashdisk

  • 7/22/2019 Exadata Cellcli Commands

    6/8

    CellCLI> drop griddisk harddiskCellCLI> drop griddisk allCellCLI> drop griddisk all prefix=temp_dgCellCLI> drop flashcacheCellCLI> drop quarantineCellCLI> drop threshold DB_IO_RQ_SM_SEC.PRODBCellCLI> drop alerthistory

    ExportCellCLI> export celldisk

    ImportCellCLI> import celldisk

    AssignCellCLI> assign key

    CalibrateCellCLI> calibrateCellCLI> calibrate force

    SetCellCLI> help setUsage: SET Purpose: Sets a variable to alter the CELLCLI 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 localCellCLI> set dateformat standard

    CellCLI> set echo onCellCLI> set echo off

    SpoolCellCLI> spool myCellCLI.txtCellCLI> spool myCellCLI.txt appendCellCLI> spool myCellCLI.txt replaceCellCLI> spool offCellCLI> spool --- Will give spool file name

    Scripts executionCellCLI> @listdisks.cliCellCLI> start listdisks.cli

    CommentsREM This is a commentREMARK This is another comment-- This is yet another comment

  • 7/22/2019 Exadata Cellcli Commands

    7/8

    Continuation CharacterCellCLI> list metriccurrent attributes name,metricObjectName,metricValue, -objectType where alertState != 'normal' --- continuation character for queriesspanned in multiple lines

    Exit/QuitCellCLI> exitCellCLI> quit

  • 7/22/2019 Exadata Cellcli Commands

    8/8