Cellcli and dcli Overview:
EXADATA storage software uses the CELLCLI utility as its command line interface. It is to a cell what SQL * PLUS is to a database. CELLCLI use for a storage cell and DCLI for all cells i.e. (multiple cells in parallel threads)
How to login to a cell ?
1. Using a ssh clinet (putty) open up a session and go to a assign IP address:
ssh <cell.ip.address> -l cellmonitor
or
cellcli -e list celldisk
2.Cellcli> list celldisk
3.CellCLI>help
4.CellCLI>list cell detail
5.CellCLI>list lun
6.CellCLI>list phycicaldisk
7.CellCLI>list griddisk detail
How to monitor the cell mertics ?
1. describe metriccurrent
2. describe metrichistory
CellCLI> list metriccurrent attribute name, metricValue where name =
CellCLI> list metrichistory attribute where name =
How to display ALERTDEFINATION ?
CellCLI> list alertdefination
CellCLI> list alertdefinationHardwareAlert detail
CellCLI> list alertdefinationattributes name, metricName, description
DCLI : User celladmin or root (not permitted as cellmonitor user):
dcli -h
dcli -g mycells -l celladmin date
dcli -g mycells -l celladmin - cellcli -e list celldisk
dcli -g mycells -l celladmin --vmstat="-a 5 5"
Startup/Shutdown the cell services:
CellCLI>alter cell startup service all
CellCLI>alter cell shutdown service all
Example:
list physicaldisk detail
name: 20:0
deviceId: 31
diskType: HardDisk
enclosureDeviceId: 20
errMediaCount: 0
errOtherCount: 0
foreignState: false
luns: 0_0
makeModel: "SEAGATE ST32000SSSUN2.0T"
physicalFirmware: 061A
physicalInsertTime: 2011-06-16T08:07:59-04:00
physicalInterface: sas
physicalSerial: L5LK38
physicalSize: 1862.6559999994934G
slotNumber: 0
status: normal
name: FLASH_1_0
diskType: FlashDisk
errCmdTimeoutCount: 0
errHardReadCount: 0
errHardWriteCount: 0
errMediaCount: 0
errOtherCount: 0
errSeekCount: 0
luns: 1_0
makeModel: "Sun Flash Accelerator F20 PCIe Card"
physicalFirmware: D21Y
physicalInsertTime: 2011-06-16T08:08:57-04:00
physicalSerial: 1101M062HU
physicalSize: 22.8880615234375G
sectorRemapCount: 0
slotNumber: "PCI Slot: 1; FDOM: 0"
status: normal
list celldisk detail
name: CD_00_<cell_node>
comment:
creationTime: 2011-06-30T15:49:02-04:00
deviceName: /dev/sda
devicePartition: /dev/sda3
diskType: HardDisk
errorCount: 0
freeSpace: 0
id: 3aa2ddcc-0576-47e8-b1e5-c61ca64b3811
interleaving: none
lun: 0_0
physicalDisk: L5LK38
raidLevel: 0
size: 1832.59375G
status: normal
name: FD_00_<cell_node>
comment:
creationTime: 2011-06-30T15:49:13-04:00
deviceName: /dev/sdr
devicePartition: /dev/sdr
diskType: FlashDisk
errorCount: 0
freeSpace: 0
id: fc092196-47d4-4836-86e4-7133d77dcc83
interleaving: none
lun: 1_0
physicalDisk: 1101M062HU
size: 22.875G
status: normal
list physicaldisk attributes name, disktype, makemodel, physicalrpm, physicalport, status
20:0 HardDisk "SEAGATE ST32000SSSUN2.0T" normal
20:1 HardDisk "SEAGATE ST32000SSSUN2.0T" normal
20:2 HardDisk "SEAGATE ST32000SSSUN2.0T" normal
FLASH_1_0 FlashDisk "Sun Flash Accelerator F20 PCIe Card" normal
FLASH_1_1 FlashDisk "Sun Flash Accelerator F20 PCIe Card" normal
describe physicaldisk
name
ctrlFirmware
ctrlHwVersion
deviceId
diskType
enclosureDeviceId
errCmdTimeoutCount
errHardReadCount
errHardWriteCount
errMediaCount
errOtherCount
errSeekCount
errorCount
foreignState
hotPlugCount
lastFailureReason
luns
makeModel
notPresentSince
physicalFirmware
physicalInsertTime
physicalInterface
physicalPort
physicalRPM
physicalSerial
physicalSize
physicalUseType
sectorRemapCount
slotNumber
status
checking error:
list physicaldisk attributes name,disktype,errCmdTimeoutCount,errHardReadCount,errHardWriteCount
20:0 HardDisk
20:1 HardDisk
FLASH_1_0 FlashDisk 0 0 0
FLASH_1_1 FlashDisk 0 0 0
Filtering :
list physicaldisk attributes name, physicalInterface, physicalInsertTime where disktype = 'HardDisk'
20:0 sas 2011-06-16T08:07:59-04:00
20:1 sas 2011-06-16T08:08:05-04:00
20:2 sas 2011-06-16T08:08:11-04:00
EXADATA storage software uses the CELLCLI utility as its command line interface. It is to a cell what SQL * PLUS is to a database. CELLCLI use for a storage cell and DCLI for all cells i.e. (multiple cells in parallel threads)
How to login to a cell ?
1. Using a ssh clinet (putty) open up a session and go to a assign IP address:
ssh <cell.ip.address> -l cellmonitor
or
cellcli -e list celldisk
2.Cellcli> list celldisk
3.CellCLI>help
4.CellCLI>list cell detail
5.CellCLI>list lun
6.CellCLI>list phycicaldisk
7.CellCLI>list griddisk detail
How to monitor the cell mertics ?
1. describe metriccurrent
2. describe metrichistory
CellCLI> list metriccurrent attribute name, metricValue where name =
CellCLI> list metrichistory attribute where name =
How to display ALERTDEFINATION ?
CellCLI> list alertdefination
CellCLI> list alertdefinationHardwareAlert detail
CellCLI> list alertdefinationattributes name, metricName, description
DCLI : User celladmin or root (not permitted as cellmonitor user):
dcli -h
dcli -g mycells -l celladmin date
dcli -g mycells -l celladmin - cellcli -e list celldisk
dcli -g mycells -l celladmin --vmstat="-a 5 5"
Startup/Shutdown the cell services:
CellCLI>alter cell startup service all
CellCLI>alter cell shutdown service all
Example:
list physicaldisk detail
name: 20:0
deviceId: 31
diskType: HardDisk
enclosureDeviceId: 20
errMediaCount: 0
errOtherCount: 0
foreignState: false
luns: 0_0
makeModel: "SEAGATE ST32000SSSUN2.0T"
physicalFirmware: 061A
physicalInsertTime: 2011-06-16T08:07:59-04:00
physicalInterface: sas
physicalSerial: L5LK38
physicalSize: 1862.6559999994934G
slotNumber: 0
status: normal
name: FLASH_1_0
diskType: FlashDisk
errCmdTimeoutCount: 0
errHardReadCount: 0
errHardWriteCount: 0
errMediaCount: 0
errOtherCount: 0
errSeekCount: 0
luns: 1_0
makeModel: "Sun Flash Accelerator F20 PCIe Card"
physicalFirmware: D21Y
physicalInsertTime: 2011-06-16T08:08:57-04:00
physicalSerial: 1101M062HU
physicalSize: 22.8880615234375G
sectorRemapCount: 0
slotNumber: "PCI Slot: 1; FDOM: 0"
status: normal
list celldisk detail
name: CD_00_<cell_node>
comment:
creationTime: 2011-06-30T15:49:02-04:00
deviceName: /dev/sda
devicePartition: /dev/sda3
diskType: HardDisk
errorCount: 0
freeSpace: 0
id: 3aa2ddcc-0576-47e8-b1e5-c61ca64b3811
interleaving: none
lun: 0_0
physicalDisk: L5LK38
raidLevel: 0
size: 1832.59375G
status: normal
name: FD_00_<cell_node>
comment:
creationTime: 2011-06-30T15:49:13-04:00
deviceName: /dev/sdr
devicePartition: /dev/sdr
diskType: FlashDisk
errorCount: 0
freeSpace: 0
id: fc092196-47d4-4836-86e4-7133d77dcc83
interleaving: none
lun: 1_0
physicalDisk: 1101M062HU
size: 22.875G
status: normal
list physicaldisk attributes name, disktype, makemodel, physicalrpm, physicalport, status
20:0 HardDisk "SEAGATE ST32000SSSUN2.0T" normal
20:1 HardDisk "SEAGATE ST32000SSSUN2.0T" normal
20:2 HardDisk "SEAGATE ST32000SSSUN2.0T" normal
FLASH_1_0 FlashDisk "Sun Flash Accelerator F20 PCIe Card" normal
FLASH_1_1 FlashDisk "Sun Flash Accelerator F20 PCIe Card" normal
describe physicaldisk
name
ctrlFirmware
ctrlHwVersion
deviceId
diskType
enclosureDeviceId
errCmdTimeoutCount
errHardReadCount
errHardWriteCount
errMediaCount
errOtherCount
errSeekCount
errorCount
foreignState
hotPlugCount
lastFailureReason
luns
makeModel
notPresentSince
physicalFirmware
physicalInsertTime
physicalInterface
physicalPort
physicalRPM
physicalSerial
physicalSize
physicalUseType
sectorRemapCount
slotNumber
status
checking error:
list physicaldisk attributes name,disktype,errCmdTimeoutCount,errHardReadCount,errHardWriteCount
20:0 HardDisk
20:1 HardDisk
FLASH_1_0 FlashDisk 0 0 0
FLASH_1_1 FlashDisk 0 0 0
Filtering :
list physicaldisk attributes name, physicalInterface, physicalInsertTime where disktype = 'HardDisk'
20:0 sas 2011-06-16T08:07:59-04:00
20:1 sas 2011-06-16T08:08:05-04:00
20:2 sas 2011-06-16T08:08:11-04:00
No comments:
Post a Comment