The setoutput command sets or displays command output format options. You can use this command to set either default or user-defined output formats. The output format set by this command remains in effect for the duration of the interactive command session unless reset either with a command option or the re-issuance of the setoutput command. Running this command with no parameters displays the current output settings in the default output format.
>>-setoutput--+--------+--+--------------------+----------------> +- -?----+ | .-default-. | +- -h----+ '- -fmt--+-delim---+-' '- -help-' +-xml-----+ '-stanza--' >--+--------------+--+----------------+--+---------------+------> | .-off-. | | .-on--. | '- -delim--char-' '- -p--+-on--+-' '- -hdr--+-off-+-' >--+-------------+--+--------------+--+----------------+------->< '- -r--number-' | .-off-. | | .-off-. | '- -v--+-on--+-' '- -bnr--+-on--+-'
Invoke the setoutput command with no options
When you specify the setoutput command with no options, the DS CLI always displays the current output settings in the default format (space-separated plain text table), regardless of the values of the output settings. Issue the setoutput command as follows:
dscli>setoutput
Paging Rows Format Header Verbose Banner =================================== Off - Default On Off On
Invoke the setoutput command using the -delim parameter
dscli> setoutput -fmt delim –delim ,
dscli> lsrank –dev IBM.1750-75FA120 -state unassigned
ID,Group,State,datastate,Array,RAIDtype,extpoolID,stgtype ========================================================== R0,-,Unassigned,Normal,A0,5,-,fb
Invoke the setoutput command using the -fmt xml parameter
dscli> setoutput -fmt xml
dscli> lsrank –dev IBM.1750-68FA120 –state unassigned
<IRETURNVALUE> <INSTANCE CLASSNAME="CliRankHandler"><PROPERTY NAME="rank_id"> <DISPLAY TYPE="string">R0</DISPLAY><VALUE TYPE="string">R0</VALUE> </PROPERTY><PROPERTY NAME="grp"><DISPLAY TYPE="unit8">-</DISPLAY> <VALUE TYPE="unit16">-</VALUE></PROPERTY><PROPERTY NAME="state"> <DISPLAY TYPE="string">Unassigned</DISPLAY><VALUE TYPE="string"> unassigned</VALUE></PROPERTY><PROPERTY NAME="data"> <DISPLAY TYPE="string">Normal</DISPLAY><VALUE TYPE="string"> Normal</VALUE></PROPERTY><PROPERTY NAME="array_id> <DISPLAY TYPE=string">A0</DISPLAY><VALUE TYPE="string">A0 </VALUE></PROPERTY><PROPERTY NAME="raidtype"><DISPLAY TYPE="unit8">5</DISPLAY> <VALUE TYPE="string">5</VALUE><PROPERTY><PROPERTY NAME="extpool_id"> <DISPLAY TYPE="string">-</DISPLAY><VALUE TYPE=string">-<VALUE> <PROPERTY><PROPERTY NAME="stgtype"><DISPLAY TYPE="string">fb</DISPLAY> <VALUE TYPE="string">fb</VALUE><PROPERTY> <INSTANCE><IRETURNVALUE>
Invoke the setoutput command using the -fmt stanza parameter
dscli> setoutput -fmt stanza
dscli> lsrank –dev IBM.1750-68FA120 –state unassigned
ID R0 Group - State unassigned datastate normal Array A0 RAIDtype 5 extpoolID - stgtype fb