Customizing Show Output Formats


The output generated by the show commands can be customized by using the optional arguments described in the following table.


Table 4: Show Output Formats


format <column_name1>, <column_name2>, <column_nameX>

Displays only the columns matching the list of column header names.


NOTE: The list of column names is comma-separated without spaces.

format all

Displays all available column headers. This output is also called verbose mode.


By default, show commands output a terse set of the most commonly useful column headers.

layout horizontal|vertical

Specify if you want to display show output in a horizontal or vertical format. Vertical may be more useful for verbose show outputs. For example:


CLI (network-admin@switch) > vlan-show format all layout vertical

parsable-delim <separator>

Displays the output of show command by separating columns by the specified <separator> character(s).


For example, parsable-delim , produces a comma-separated output (CSV).


NOTE: If the parsable-delim option is specified, the column header names (titles) are suppressed from the output.

pager on|off

Displays the output as pages (pager on) or as a single scrollable page (pager off).

Below are some examples of how the output for the show commands are displayed in Netvisor ONE CLI.

To display the select columns, enter the command followed by the option format <column_name1>, <column_name2>, <column_nameX> as below:

CLI (network-admin@pn-switch-1) switch pn-switch-1 lldp-show format switch, local-port, chassis-id, port-id, port-desc


switch               local-port         chassis-id         port-id                  port-desc                            

-----------         ----------         ----------         -------                 ----------------------------

pn-switch-1                  1          0e0000e8             1               spine-cluster cluster link            

pn-switch-1                  2          1100013f             5               trunk from cluster-1 to spine cluster

pn-switch-1                  3          11000141             5               trunk from cluster-1 to spine cluster

pn-switch-1                  4          11000147             5               trunk from cluster-2 to spine cluster

pn-switch-1                  5          11000145             5               trunk from cluster-2 to spine cluster                  


To display the output on a local switch that you had logged in (the * indicates the local switch in the example below). You don't need to specify the switch-name for all the commands that you run on the local switch.

CLI (network-admin@pn-switch-1) > switch-local


CLI (network-admin@plu005sws01*) > lldp-show


local-port
----------

chassis-id
----------

port-id
--------

port-desc
----------

sys-name
----------

1

0e0000e8

1

spine-cluster cluster link

plu005sws02

2

1100013f

5

trunk from cluster-1 to spine cluster

plu005swl01

3

11000141

5

trunk from cluster-1 to spine cluster

plu005swl02

13

0e000063

2

PN Switch Port(2

plu005swl06



To display all the switches in a fabric, for example, use the switch <tab> command:


CLI (network-admin@plu005sws01) > switch


plu005sws01

plu005swl01

plu005swl04

plu005swl05

plu005swl06

plu005swl03

plu005swl02

plu005sws02

leaf_clust_3       plu005swl06,plu005swl05

leaf_clust_1       plu005swl01,plu005swl02

leaf_clust_2       plu005swl03,plu005swl04

even-cluster-nodes plu005swl02,plu005swl04,plu005swl06,plu005sws02

odd-cluster-nodes  plu005swl01,plu005swl03,plu005swl05,plu005sws01

spine_clust        plu005sws01,plu005sws02

*                  all switches in the fabric


To display the output in vertical format, for example, use the command:


CLI (network-admin@ara-spine1) > cluster-show layout vertical


switch:                     draco-leaf1

name:                       pags-cluster

state:                      offline

cluster-node-1:             draco-leaf1

cluster-node-2:             184555354

tid:                        0

mode:                       none

ports:                      none

remote-ports:               none

cluster-sync-timeout(ms):   2000

cluster-sync-offline-count: 3

switch:                     184555354

name:                       pags-cluster

state:                      unavailable

cluster-node-1:             draco-leaf1

cluster-node-2:             184555354

cluster-sync-timeout(ms):   2000

cluster-sync-offline-count: 3