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 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-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@pn-sw01*) > lldp-show
local-port |
bezel-port |
chassis-id |
port-id |
port-desc |
sys-name |
1 |
1 |
0e0000e8 |
1 |
spine-cluster cluster link |
pn-sw02 |
2 |
2 |
1100013f |
5 |
trunk from cluster-1 to spine cluster |
pn-swl01 |
3 |
3 |
11000141 |
5 |
trunk from cluster-1 to spine cluster |
pn-swl02 |
13 |
13 |
0e000063 |
2 |
PN Switch Port(2 |
pn-swl06 |
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