setoutput

You can use the setoutput command to display current output settings for both perfcli and repcli commands. The output format set by this command remains in effect for the duration of a command session or until the options are reset.

Syntax

Read syntax diagramSkip visual syntax diagram>>---perfcli-- --setoutput----+---------+----------------------->
                              +- -? ----+
                              +- -h ----+
                              '- -help -'

>--+------------------------------+--+---------------+---------->
   |         .-default----------. |  |       .-off-. |
   '- -fmt --+-delim--character-+-'  '- -p --+-on--+-'
             +-xml--------------+
             '-stanza-----------'

>--+-----------------+--+--------------+--+---------------+----><
   |         .-on--. |  '- -r --number-'  |       .-off-. |
   '- -hdr --+-off-+-'                    '- -v --+-on--+-'

Parameters

-? | -h | -help
Displays a detailed description of this command, including syntax, parameter descriptions, and examples. If you specify a help option, all other command options are ignored.
-fmt
Specifies the format of the output. You can specify one of the following values:
default
Specifies to display output in a tabular format using spaces as the delimiter between the columns. This is the default value. For example:
Device ID          Device Type Threshold Name      Status    Warning   Error  Alert
===================================================================================
ESS2105.123123.IBM  ESS        Disk Utilization    Enabled   50        80     None
delim character
Specifies to display output in a tabular format using the specified character to separate the columns. If you use a shell metacharacter (for example, * or \t) as the delimiting character, enclose the character in single quotation mark (') or double quotation mark ("). A blank space is not a valid character. For example:
Device ID,Device Type,Threshold Name,Status,Warning,Error,Alert
====================================================================
ESS2105.123123.IBM,ESS,Disk Utilization,Enabled,50,80,None
xml
Specifies to display output using XML format, for example:
<IRETURNVALUE>
<INSTANCE CLASSNAME="lsthresh">
<PROPERTY NAME="Device ID" TYPE="string"><VALUE>
  ESS2105.123123.IBM</VALUE>
</PROPERTY>
<PROPERTY NAME="Device Type" TYPE="uint32"><VALUE>ESS</VALUE>
</PROPERTY>
<PROPERTY NAME="Threshold Name" TYPE="uint64"><VALUE>Disk 
  Utilization</VALUE>
</PROPERTY>
<PROPERTY NAME="Status" TYPE="uint16"><VALUE>Enabled</VALUE>
</PROPERTY>
<PROPERTY NAME="Warning" TYPE="uint64"><VALUE>d50</VALUE>
  </PROPERTY>
<PROPERTY NAME="Error" TYPE="uint64"><VALUE>80</VALUE>
</PROPERTY>
<PROPERTY NAME="Alert" TYPE="uint16"><VALUE>None</VALUE>
  </PROPERTY>
</INSTANCE>
</IRETURNVALUE>
stanza
Specifies to display output using XML format, for example:
Device ID         ESS2105.123123.IBM 
Device Type       ESS
Threshold Name    Disk Utilization
Status            Enabled 
Warning           50
Error             80
Alert             None
-p
Specifies whether to display one page of text at a time or all text at once.
off
Displays all text at one time. This is the default value when the perftool command is run in single-shot mode.
on
Displays one page of text at time. Pressing any key displays the next page. This is the default value when the perftool command is run in interactive mode.
-hdr
Specifies whether to display the table header.
on
Displays the table header. This is the default value.
off
Does not display the table header.
-r number
Specifies the number of rows per page to display when the -p parameter is on. The default is 24 rows. You can specify a value from 1 to 100.
-v
Specifies whether to enable verbose mode.
off
Disables verbose mode. This is the default value.
on
Enables verbose mode.

Description

You can use the setoutput command to display current output settings for both perfcli and repcli commands. The output format set by this command remains in effect for the duration of a command session or until the options are reset either by using this command or by specifying an output-format parameter as part of a command.

Note:Note: The output formats do not apply to help pages.

Return values

Running this command with no parameters displays the current output settings in the default output format, for example:

perfcli setoutput

Paging   Rows   Format    Header   Verbose
==========================================
off      -      default   on       off

Examples

The following perfcli example sets the output format to display in tabular form using a comma as the delimiter without header information.

perfcli>setoutput -fmt delim , -hdr off
perfcli>lsthresh -l -type default
ESS2105.123123.IBM ,ESS,Disk Utilization,Enabled,50,80,None

Related topics

(C) Copyright International Business Machines Corporation 2004