联系:手机/微信(+86 17813235971) QQ(107644445)
标题:cellcli命令简介
作者:惜分飞©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]
cellcli用途描述
The CellCLI utility is the command-line administration tool for Exadata Cell. CellCLI runs on each cell to enable you to manage an individual cell. You use CellCLI to start and stop the cell, to manage cell configuration information, to enable or disable cells, and to manage objects in the cell environment. The command-line utility is already installed when Exadata Cell is shipped.
cellcli语法
cellcli [port_number] [-n] [-m] [-xml] [-v | -vv | -vvv] [-x] [-e command]
cellcli登录
[root@cell2 ~]# cellcli CellCLI: Release 11.2.1.2.0 - Production on Tue Dec 25 16:07:01 PST 2012 Copyright (c) 2007, 2009, Oracle. All rights reserved. Cell Efficiency Ratio: 24M CellCLI>
cellcli help
CellCLI> help HELP [topic] Available Topics: ALTER ALTER ALERTHISTORY ALTER CELL ALTER CELLDISK ALTER GRIDDISK ALTER IORMPLAN ALTER LUN ALTER THRESHOLD ASSIGN KEY CALIBRATE CREATE CREATE CELL CREATE CELLDISK CREATE FLASHCACHE CREATE GRIDDISK CREATE KEY CREATE THRESHOLD DESCRIBE DROP DROP ALERTHISTORY DROP CELL DROP CELLDISK DROP FLASHCACHE DROP GRIDDISK DROP THRESHOLD EXPORT CELLDISK IMPORT CELLDISK LIST LIST ACTIVEREQUEST LIST ALERTDEFINITION LIST ALERTHISTORY LIST CELL LIST CELLDISK LIST FLASHCACHE LIST FLASHCACHECONTENT LIST GRIDDISK LIST IORMPLAN LIST KEY LIST LUN LIST METRICCURRENT LIST METRICDEFINITION LIST METRICHISTORY LIST PHYSICALDISK LIST THRESHOLD SET SPOOL START CellCLI> help list Enter HELP LIST <object_type> for specific help syntax. <object_type>: {ACTIVEREQUEST | ALERTHISTORY | ALERTDEFINITION | CELL | CELLDISK | FASHCACHE | FLASHCACHECONTENT | GRIDDISK | IORMPLAN | KEY | LUN | METRICCURRENT | METRICDEFINITION | METRICHISTORY | PHYSICALDISK | THRESHOLD } CellCLI> help list PHYSICALDISK Usage: LIST PHYSICALDISK [<name> | <filters>] [<attribute_list>] [DETAIL] Purpose: Displays specified attributes for physical disks. Arguments: <name>: The name of the physical disk to be displayed. <filters>: an expression which determines which physical disks should be displayed. <attribute_list>: The attributes that are to be displayed. ATTRIBUTES {ALL | attr1 [, attr2]... } Options: [DETAIL]: Formats the display as an attribute on each line, with an attribute descriptor preceding each value. Examples: LIST PHYSICALDISK DETAIL
cellcli describe
CellCLI> DESCRIBE PHYSICALDISK name ctrlFirmware ctrlHwVersion deviceId diskType enclosureDeviceId errCmdTimeoutCount errHardReadCount errHardWriteCount errMediaCount errOtherCount errSeekCount errorCount foreignState hotPlugCount id lastFailureReason luns makeModel notPresentSince physicalFirmware physicalInsertTime physicalInterface physicalPort physicalRPM physicalSerial physicalSize physicalUseType sectorRemapCount slotNumber status
cellcli list
CellCLI> LIST PHYSICALDISK attributes name ,physicalSize /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/FLASH01 450M /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/FLASH02 450M /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/FLASH03 450M /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/FLASH04 450M /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk01 450M /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk02 450M /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk03 450M /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk04 450M /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk05 450M /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk06 450M /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk07 450M /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk08 450M /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk09 450M /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk10 450M /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk11 450M /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk12 450M CellCLI> LIST PHYSICALDISK attributes name ,physicalSize where name like '.*FLASH.*' /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/FLASH01 450M /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/FLASH02 450M /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/FLASH03 450M /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/FLASH04 450M
attributes后面可以加上对应的属性,”.*”表示通配符
这里通过help和describe来实现cellcli的基本操作,这里只是提供了一种处理问题的思路,通过help操作来完成cellcli的基本操作.