Skip to main content
Viptela is now part of Cisco.
Support
Product Documentation
Viptela Documentation

sort-by

sort-by—Arrange the command output based on the values in a particular field.

Command Syntax

sort-by field

Options

Column Not To Display
field
Field by which to arrange the command output. Use the sort-by? command to determine the possible completions for each command.

Output Fields

The output fields are self-explanatory.

Example Output

vm9# show control connections                                                                   PEER                      PEER                                                    
PEER     PEER             SITE        DOMAIN      PEER             PRIVATE  PEER             PUBLIC                                                  
TYPE     SYSTEM IP        ID          ID          PRIVATE IP       PORT     PUBLIC IP        PORT    REMOTE COLOR     STATE           UPTIME         
-----------------------------------------------------------------------------------------------------------------------------------------------------
vedge    172.16.255.11    100         1           10.0.5.11        12346    10.0.5.11        12346   lte              up              0:01:13:09     
vedge    172.16.255.21    100         1           10.0.5.21        12346    10.0.5.21        12346   lte              up              0:01:13:09     
vedge    172.16.255.14    400         1           10.1.14.14       12350    10.1.14.14       12350   lte              up              0:01:13:07     
vedge    172.16.255.15    500         1           10.1.15.15       12346    10.1.15.15       12346   lte              up              0:01:13:09     
vedge    172.16.255.16    600         1           10.1.16.16       12346    10.1.16.16       12346   lte              up              0:01:13:07     
vsmart   172.16.255.20    200         1           10.0.12.20       12346    10.0.12.20       12346   default          up              0:01:13:21     
vbond    -                0           0           10.1.14.14       12346    10.1.14.14       12346   default          up              0:01:13:23

vm9# show control connections | sort-by site-id                                                                   PEER                      PEER                                                    
PEER     PEER             SITE        DOMAIN      PEER             PRIVATE  PEER             PUBLIC                                                  
TYPE     SYSTEM IP        ID          ID          PRIVATE IP       PORT     PUBLIC IP        PORT    REMOTE COLOR     STATE           UPTIME         
-----------------------------------------------------------------------------------------------------------------------------------------------------
vbond    -                0           0           10.1.14.14       12346    10.1.14.14       12346   default          up              0:01:23:51     
vedge    172.16.255.11    100         1           10.0.5.11        12346    10.0.5.11        12346   lte              up              0:01:23:37     
vedge    172.16.255.21    100         1           10.0.5.21        12346    10.0.5.21        12346   lte              up              0:01:23:37     
vsmart   172.16.255.20    200         1           10.0.12.20       12346    10.0.12.20       12346   default          up              0:01:23:50     
vedge    172.16.255.14    400         1           10.1.14.14       12350    10.1.14.14       12350   lte              up              0:01:23:35     
vedge    172.16.255.15    500         1           10.1.15.15       12346    10.1.15.15       12346   lte              up              0:01:23:37     
vedge    172.16.255.16    600         1           10.1.16.16       12346    10.1.16.16       12346   lte              up              0:01:23:35 

Release Information

Command introduced in Viptela Software Release 14.1.

Additional Information

exclude
include

  • Was this article helpful?