Wrap text for tabular output

Syntax

session wrap-text
no session wrap-text

Description

The wrap-text command is a per-session based command used for tabular outputs. It wraps the text in column display to next line when the length of text exceeds the column width. This command is applicable to the current session where it is executed. If there is an occurrence of reboot or new session, then this command has to be executed again to take effect.

The no form of this command disables the wrap-text functionality in the current session.

NOTE: This command is only applicable to show and display commands which use the print library for tabular outputs.

Examples

The following example displays the output of the command show interfaces status without using the session wrap-text command.

switch(config) # show interfaces status
  Port     Name       Status  Config-mode   Speed    Type       Tagged Untagged
  -------- ---------- ------- ------------- -------- ---------- ------ --------
  1                   Up      Auto          1000FDx  100/1000T  No     1
  2        MANAGEM... Down    Auto          1000FDx  100/1000T  No     1
  3        cloud-u... Down    Auto          1000FDx  100/1000T  No     1
  4                   Down    Auto          1000FDx  100/1000T  No     1
  5                   Down    Auto          1000FDx  100/1000T  No     1
  6                   Down    Auto          1000FDx  100/1000T  No     1
  7                   Down    Auto          1000FDx  100/1000T  No     1
  8                   Down    Auto          1000FDx  100/1000T  No     1
  9                   Down    Auto          1000FDx  100/1000T  No     1

The following example displays the output of the command show interfaces status using the session wrap-text command.

switch(config) # session wrap-text
switch(config) # show interfaces status
  Port     Name       Status  Config-mode   Speed    Type       Tagged Untagged
  -------- ---------- ------- ------------- -------- ---------- ------ --------
  1                   Up      Auto          1000FDx  100/1000T  No     1
  2        MANAGEMENT Down    Auto          1000FDx  100/1000T  No     1
           -INTERFACE
  3        cloud-upli Down    Auto          1000FDx  100/1000T  No     1
           nk
  4                   Down    Auto          1000FDx  100/1000T  No     1
  5                   Down    Auto          1000FDx  100/1000T  No     1
  6                   Down    Auto          1000FDx  100/1000T  No     1
  7                   Down    Auto          1000FDx  100/1000T  No     1
  8                   Down    Auto          1000FDx  100/1000T  No     1
  9                   Down    Auto          1000FDx  100/1000T  No     1

List of show and display commands using print library

session wrap-text is applicable for the following commands:
  • display dhcp server ip-in-use all
  • display dhcp server conflict all
  • display fib
  • display fib <addr> <mask>
  • display lldp neighbor-information list
  • display lldp neighbor-information list system-name
  • display interface brief
  • display environment
  • display dns domain dynamic
  • display dns domain
  • display mac-address
  • show interfaces status
  • show port-access local-mac mac-group
  • show port-access local-mac mac-group <group-name>
  • show port-access local-mac active
  • show port-access local-mac active <name>
  • show port-access local-mac association
  • show port-access local-mac <port-list>
  • show port-access local-mac <port-list> clients
  • show port-access local-mac <port-list> config
  • show port-access local-mac clients <port-list>
  • show port-access local-mac config <port-list>
  • show port-access local-mac
  • show cfg-restore latest-diff
  • show copp config
  • show copp status
  • show copp user-def status
  • show copp user-def config
  • show device-identity lldp
  • show netdestination
  • show netdestination <name>
  • show interfaces queues <port-num>
  • show alias