10.07.2015 Views

Expert Oracle Exadata - Parent Directory

Expert Oracle Exadata - Parent Directory

Expert Oracle Exadata - Parent Directory

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

APPENDIX A CELLCLI AND DCLIwhere dbUniqueName like 'EX.?.?' –and hitcount > 100 –and objectNumber like '.*775'71775 34994 46315The DESCRIBE verb works similarly to the way it does in SQL*Plus, but it must be fully spelled out;you can’t use the familiar DESC as an abbreciation. Notice that there are no headings for column-orientedoutput. As you can see, you can execute scripts that contain CellCLI commands using the @ character,and use SET ECHO ON to display the commands in the scripts that you execute. Many of the LISTcommands were strung across multiple lines by using the continuation operator (-). The LISTcommands look a lot like SQL, except for LIST being used instead of SELECT and the regex expressions formatching when using the LIKE keyword. Also notice that in the last command a number was matchedwith a regex expression, implying a data type conversion, although all data may be treated as text. Youcan see that the ATTRIBUTES and WHERE keywords can be anywhere on the command line after the LISTObjectType keywords. In other words, these two keywords are not positional; either one can be used first.Finally, the DETAIL keyword turns the output sideways. Or as the help says, “Formats the display as anattribute on each line, with an attribute descriptor preceding each value.”Sending Commands from the Operating SystemIn addition to running CellCLI interactively as you’ve seen in these examples, you can specify the -eoption to pass in CellCLI commands from your operating system prompt. For example the followinglisting shows how the -e option can be used to query the status of cellsrv directly from the OScommand line:[exacel05:root] /root> cellcli -e "list cell detail"name:bmcType:cellVersion:…cellsrvStatus:msStatus:rsStatus:exacel05IPMIOSS_11.2.0.3.0_LINUX.X64_110520runningrunningrunningAmong other things, the –e option is helpful when you want to invoke CellCLI from within anoperating system shell script.Configuring and Managing the Storage CellCellCLI is also used in a number of ways for configuring everything from disk storage to cell alerts. Youcan also use CellCLI for management tasks such as startup and shutdown. Following are a few examplesof how to use CellCLI to configure and manage the storage cell.Cell Services can be shut down one at a time or all at once. The following commands are used toshut down cell services:-- Shutdown cell services one at a time --CellCLI> alter cell shutdown services cellsrvCellCLI> alter cell shutdown services ms540

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!