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 1-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 scroll-able page (pager off).

Below are some examples of how the output for the show commands are displayed in NetVisor OS 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-1) switch pn-1 lldp-show format switch, local-port, chassis-id, port-id, port-desc


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

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

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

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

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

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

pn-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@switch-1) > switch-local

CLI (network-admin@switch-1*) >


To view the LLDP details, use the command:

CLI (network-admin@usspine02-new) > lldp-show


switch        local-port bezel-port chassis-id port-id port-desc                          sys-name                            

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

usspine02-new 37         10         09000d50    53      PN Switch Port(53),Bezel Port(50) usleaf01-new                        

usspine02-new 41         11         0b00214e    53      PN Switch Port(53),Bezel Port(50) usleaf02-new                        

usspine02-new 73         19         09000d4f    77      PN Switch Port(77),Bezel Port(20) ghspine01-new                       

usspine02-new 77         20         0b00214f    77      PN Switch Port(77),Bezel Port(20) ghspine02-new                       

usspine02-new 89         23         0b000824    61      PN Switch Port(61),Bezel Port(52) usleaf04-new                        

usspine02-new 97         25         0b002134    61      PN Switch Port(61),Bezel Port(52) usleaf03-new                        

..

usspine02-new 125        32         09000ba3    101     PN Switch Port(101),Bezel Port(32) usleaf08-new                        

ghleaf06-new  1          1          0b003236    1       PN Switch Port(1),Bezel Port(1)    ghleaf05-new                        

ghleaf06-new  5          2          09000d4f    1       PN Switch Port(1),Bezel Port(1)    ghspine01-new        


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


CLI (network-admin@pn-sw01) > switch

pn-sw01

pn-swl04

pn-swl02

pn-sw02

leaf_clust_1       pn-swl01,pn-swl02

leaf_clust_2       pn-swl03,pn-swl04

even-cluster-nodes pn-swl02,pn-swl04,pn-swl06,pn-sw02

odd-cluster-nodes  pn-swl01,pn-swl03,pn-swl05,pn-sw01

spine_clust        pn-sw01,pn-sw02

*                  all switches in the fabric


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


CLI (network-admin@pn-swl03) > cluster-show layout vertical

switch:                     pn-swl01

name:                       pn-swl0102

state:                      online

cluster-node-1:             pn-swl01

cluster-node-2:             pn-swl02

tid:                        4034

mode:                       master

ports:                      1,125,272

remote-ports:               1,125,272

cluster-sync-timeout(ms):   2000

cluster-sync-offline-count: 3

switch:                     pn-swl02

name:                       pn-swl0102

state:                      online

cluster-node-1:             pn-swl01

cluster-node-2:             pn-swl02

tid:                        4034

mode:                       slave

ports:                      1,125,272

remote-ports:               1,125,272

cluster-sync-timeout(ms):   2000

cluster-sync-offline-count: 3

north
    keyboard_arrow_up
    keyboard_arrow_down
    description
    print
    feedback
    support
    business
    rss_feed
    south