3ware HTML Bookshelf



3ware® CLI Guide > CLI Syntax Reference > Shell Object Commands > focus Object

focus Object
The focus command is active in interactive mode only and is provided to reduce typing.
The focus command will set the specified object in focus and change the prompt to reflect this. This allows you to enter a command that applies to the focus, instead of having to type the entire object name each time.
For example, where normally you might type:
/c0/u0 show
If you set the focus to /c0/u0, the prompt changes to reflect that, and you only have to type show. The concept is similar to being in a particular location in a file system and requesting a listing of the current directory.
object can have the following forms:
/cx/ux specifies the fully qualified URI (Universal Resource Identifier) of an object on controller cx, unit ux.
.. specifies one level up (the parent object).
/ specifies the root
./object specifies the next level of the object.
/c0/bbu specifies a relative path with respect to the current focused hostname.
Example:
 
 //localhost> focus /c0/u0
 //localhost/c0/u0>
 
 //localhost/c0/u0> focus..
 //localhost/c0>
 
 //localhost> focus u0
 //localhost/c0/u0>
 
 //localhost/c0> focus /
 //localhost>
The focus command is available by default. You can disable focus by setting TW_CLI_INPUT_STYLE to old. (See Return Code.)

Copyright AMCC 2004-2008
To contact Support, log in at https://www.3ware.com

www.3ware.com
1-858-535-6517
1-800-840-6055