What version are You using? I just checked on RHOSP-16 which is based on stable/train and the result is:
(overcloud) [stack@undercloud-0 ~]$ neutron agent-list --sort-column agent_type neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead. +--------------------------------------+--------------------+---------------------------+-------------------+-------+----------------+---------------------------+ | id | agent_type | host | availability_zone | alive | admin_state_up | binary | +--------------------------------------+--------------------+---------------------------+-------------------+-------+----------------+---------------------------+ | 643a494d-ad06-4455-9c6b-6ad35f7b2f5e | DHCP agent | controller-2.redhat.local | nova | :-) | True | neutron-dhcp-agent | | 8a092f5b-f415-4473-ac8e-9ca333b037bc | DHCP agent | controller-0.redhat.local | nova | :-) | True | neutron-dhcp-agent | | 8a384ede-4ccb-4321-b170-2448344b92fd | DHCP agent | controller-1.redhat.local | nova | :-) | True | neutron-dhcp-agent | | 2ec9c0d6-57d8-4803-9b44-942542e53d6e | L3 agent | controller-0.redhat.local | nova | :-) | True | neutron-l3-agent | | 758c19ef-0bb3-48bb-a757-90956b830914 | L3 agent | controller-1.redhat.local | nova | :-) | True | neutron-l3-agent | | 9cec9036-0d0f-432a-a0ea-4420f1e88921 | L3 agent | controller-2.redhat.local | nova | :-) | True | neutron-l3-agent | | b0d7fb33-607a-4903-9bf3-987743f237a7 | L3 agent | compute-1.redhat.local | nova | :-) | True | neutron-l3-agent | | bf84115b-fc33-41c6-8734-2cbe1c9a7a5c | L3 agent | compute-0.redhat.local | nova | :-) | True | neutron-l3-agent | | 386111f1-563c-4a2c-9b41-b292a1aa876e | Metadata agent | compute-0.redhat.local | | :-) | True | neutron-metadata-agent | | 43d33cd1-c817-4755-8628-e759402acc5b | Metadata agent | controller-0.redhat.local | | :-) | True | neutron-metadata-agent | | ad765ce7-f2e2-4db3-8ff7-1765e5e5bb93 | Metadata agent | controller-2.redhat.local | | :-) | True | neutron-metadata-agent | | c832081f-d598-483c-bb57-4f616e631fbb | Metadata agent | controller-1.redhat.local | | :-) | True | neutron-metadata-agent | | dbd82bdb-43d3-46de-99bc-a8364f260457 | Metadata agent | compute-1.redhat.local | | :-) | True | neutron-metadata-agent | | 274076b0-56b1-407a-9903-2a6529d6be77 | Open vSwitch agent | compute-1.redhat.local | | :-) | True | neutron-openvswitch-agent | | 98ed6974-b379-4eb6-8267-d76cd38f9379 | Open vSwitch agent | controller-0.redhat.local | | :-) | True | neutron-openvswitch-agent | | d56166f9-edd1-49a7-865a-2de2a25fe47e | Open vSwitch agent | controller-1.redhat.local | | :-) | True | neutron-openvswitch-agent | | ea6d2831-10a1-4df4-8914-d46d8f81572d | Open vSwitch agent | compute-0.redhat.local | | :-) | True | neutron-openvswitch-agent | | eb7e8b70-279d-43f1-a863-fed7953b29ac | Open vSwitch agent | controller-2.redhat.local | | :-) | True | neutron-openvswitch-agent | +--------------------------------------+--------------------+---------------------------+-------------------+-------+----------------+---------------------------+ (overcloud) [stack@undercloud-0 ~]$ neutron agent-list --sort-column host neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead. +--------------------------------------+--------------------+---------------------------+-------------------+-------+----------------+---------------------------+ | id | agent_type | host | availability_zone | alive | admin_state_up | binary | +--------------------------------------+--------------------+---------------------------+-------------------+-------+----------------+---------------------------+ | 386111f1-563c-4a2c-9b41-b292a1aa876e | Metadata agent | compute-0.redhat.local | | :-) | True | neutron-metadata-agent | | bf84115b-fc33-41c6-8734-2cbe1c9a7a5c | L3 agent | compute-0.redhat.local | nova | :-) | True | neutron-l3-agent | | ea6d2831-10a1-4df4-8914-d46d8f81572d | Open vSwitch agent | compute-0.redhat.local | | :-) | True | neutron-openvswitch-agent | | 274076b0-56b1-407a-9903-2a6529d6be77 | Open vSwitch agent | compute-1.redhat.local | | :-) | True | neutron-openvswitch-agent | | b0d7fb33-607a-4903-9bf3-987743f237a7 | L3 agent | compute-1.redhat.local | nova | :-) | True | neutron-l3-agent | | dbd82bdb-43d3-46de-99bc-a8364f260457 | Metadata agent | compute-1.redhat.local | | :-) | True | neutron-metadata-agent | | 2ec9c0d6-57d8-4803-9b44-942542e53d6e | L3 agent | controller-0.redhat.local | nova | :-) | True | neutron-l3-agent | | 43d33cd1-c817-4755-8628-e759402acc5b | Metadata agent | controller-0.redhat.local | | :-) | True | neutron-metadata-agent | | 8a092f5b-f415-4473-ac8e-9ca333b037bc | DHCP agent | controller-0.redhat.local | nova | :-) | True | neutron-dhcp-agent | | 98ed6974-b379-4eb6-8267-d76cd38f9379 | Open vSwitch agent | controller-0.redhat.local | | :-) | True | neutron-openvswitch-agent | | 758c19ef-0bb3-48bb-a757-90956b830914 | L3 agent | controller-1.redhat.local | nova | :-) | True | neutron-l3-agent | | 8a384ede-4ccb-4321-b170-2448344b92fd | DHCP agent | controller-1.redhat.local | nova | :-) | True | neutron-dhcp-agent | | c832081f-d598-483c-bb57-4f616e631fbb | Metadata agent | controller-1.redhat.local | | :-) | True | neutron-metadata-agent | | d56166f9-edd1-49a7-865a-2de2a25fe47e | Open vSwitch agent | controller-1.redhat.local | | :-) | True | neutron-openvswitch-agent | | 643a494d-ad06-4455-9c6b-6ad35f7b2f5e | DHCP agent | controller-2.redhat.local | nova | :-) | True | neutron-dhcp-agent | | 9cec9036-0d0f-432a-a0ea-4420f1e88921 | L3 agent | controller-2.redhat.local | nova | :-) | True | neutron-l3-agent | | ad765ce7-f2e2-4db3-8ff7-1765e5e5bb93 | Metadata agent | controller-2.redhat.local | | :-) | True | neutron-metadata-agent | | eb7e8b70-279d-43f1-a863-fed7953b29ac | Open vSwitch agent | controller-2.redhat.local | | :-) | True | neutron-openvswitch-agent | +--------------------------------------+--------------------+---------------------------+-------------------+-------+----------------+---------------------------+
So You can sort the results based on various columns
What version are You using? I just checked on RHOSP-16 which is based on stable/train and the result is:
(overcloud) [stack@undercloud-0 ~]$ neutron agent-list --sort-column agent_type ------- ------- ------- ------- ----+-- ------- ------- ----+-- ------- ------- ------- ----+-- ------- ------- ---+--- ----+-- ------- ------- +------ ------- ------- ------- + ------- ------- ------- ------- ----+-- ------- ------- ----+-- ------- ------- ------- ----+-- ------- ------- ---+--- ----+-- ------- ------- +------ ------- ------- ------- + ad06-4455- 9c6b-6ad35f7b2f 5e | DHCP agent | controller- 2.redhat. local | nova | :-) | True | neutron-dhcp-agent | f415-4473- ac8e-9ca333b037 bc | DHCP agent | controller- 0.redhat. local | nova | :-) | True | neutron-dhcp-agent | 4ccb-4321- b170-2448344b92 fd | DHCP agent | controller- 1.redhat. local | nova | :-) | True | neutron-dhcp-agent | 57d8-4803- 9b44-942542e53d 6e | L3 agent | controller- 0.redhat. local | nova | :-) | True | neutron-l3-agent | 0bb3-48bb- a757-90956b8309 14 | L3 agent | controller- 1.redhat. local | nova | :-) | True | neutron-l3-agent | 0d0f-432a- a0ea-4420f1e889 21 | L3 agent | controller- 2.redhat. local | nova | :-) | True | neutron-l3-agent | 607a-4903- 9bf3-987743f237 a7 | L3 agent | compute- 1.redhat. local | nova | :-) | True | neutron-l3-agent | fc33-41c6- 8734-2cbe1c9a7a 5c | L3 agent | compute- 0.redhat. local | nova | :-) | True | neutron-l3-agent | 563c-4a2c- 9b41-b292a1aa87 6e | Metadata agent | compute- 0.redhat. local | | :-) | True | neutron- metadata- agent | c817-4755- 8628-e759402acc 5b | Metadata agent | controller- 0.redhat. local | | :-) | True | neutron- metadata- agent | f2e2-4db3- 8ff7-1765e5e5bb 93 | Metadata agent | controller- 2.redhat. local | | :-) | True | neutron- metadata- agent | d598-483c- bb57-4f616e631f bb | Metadata agent | controller- 1.redhat. local | | :-) | True | neutron- metadata- agent | 43d3-46de- 99bc-a8364f2604 57 | Metadata agent | compute- 1.redhat. local | | :-) | True | neutron- metadata- agent | 56b1-407a- 9903-2a6529d6be 77 | Open vSwitch agent | compute- 1.redhat. local | | :-) | True | neutron- openvswitch- agent | b379-4eb6- 8267-d76cd38f93 79 | Open vSwitch agent | controller- 0.redhat. local | | :-) | True | neutron- openvswitch- agent | edd1-49a7- 865a-2de2a25fe4 7e | Open vSwitch agent | controller- 1.redhat. local | | :-) | True | neutron- openvswitch- agent | 10a1-4df4- 8914-d46d8f8157 2d | Open vSwitch agent | compute- 0.redhat. local | | :-) | True | neutron- openvswitch- agent | 279d-43f1- a863-fed7953b29 ac | Open vSwitch agent | controller- 2.redhat. local | | :-) | True | neutron- openvswitch- agent | ------- ------- ------- ------- ----+-- ------- ------- ----+-- ------- ------- ------- ----+-- ------- ------- ---+--- ----+-- ------- ------- +------ ------- ------- ------- + ------- ------- ------- ------- ----+-- ------- ------- ----+-- ------- ------- ------- ----+-- ------- ------- ---+--- ----+-- ------- ------- +------ ------- ------- ------- + ------- ------- ------- ------- ----+-- ------- ------- ----+-- ------- ------- ------- ----+-- ------- ------- ---+--- ----+-- ------- ------- +------ ------- ------- ------- + 563c-4a2c- 9b41-b292a1aa87 6e | Metadata agent | compute- 0.redhat. local | | :-) | True | neutron- metadata- agent | fc33-41c6- 8734-2cbe1c9a7a 5c | L3 agent | compute- 0.redhat. local | nova | :-) | True | neutron-l3-agent | 10a1-4df4- 8914-d46d8f8157 2d | Open vSwitch agent | compute- 0.redhat. local | | :-) | True | neutron- openvswitch- agent | 56b1-407a- 9903-2a6529d6be 77 | Open vSwitch agent | compute- 1.redhat. local | | :-) | True | neutron- openvswitch- agent | 607a-4903- 9bf3-987743f237 a7 | L3 agent | compute- 1.redhat. local | nova | :-) | True | neutron-l3-agent | 43d3-46de- 99bc-a8364f2604 57 | Metadata agent | compute- 1.redhat. local | | :-) | True | neutron- metadata- agent | 57d8-4803- 9b44-942542e53d 6e | L3 agent | controller- 0.redhat. local | nova | :-) | True | neutron-l3-agent | c817-4755- 8628-e759402acc 5b | Metadata agent | controller- 0.redhat. local | | :-) | True | neutron- metadata- agent | f415-4473- ac8e-9ca333b037 bc | DHCP agent | controller- 0.redhat. local | nova | :-) | True | neutron-dhcp-agent | b379-4eb6- 8267-d76cd38f93 79 | Open vSwitch agent | controller- 0.redhat. local | | :-) | True | neutron- openvswitch- agent | 0bb3-48bb- a757-90956b8309 14 | L3 agent | controller- 1.redhat. local | nova | :-) | True | neutron-l3-agent | 4ccb-4321- b170-2448344b92 fd | DHCP agent | controller- 1.redhat. local | nova | :-) | True | neutron-dhcp-agent | d598-483c- bb57-4f616e631f bb | Metadata agent | controller- 1.redhat. local | | :-) | True | neutron- metadata- agent | edd1-49a7- 865a-2de2a25fe4 7e | Open vSwitch agent | controller- 1.redhat. local | | :-) | True | neutron- openvswitch- agent | ad06-4455- 9c6b-6ad35f7b2f 5e | DHCP agent | controller- 2.redhat. local | nova | :-) | True | neutron-dhcp-agent | 0d0f-432a- a0ea-4420f1e889 21 | L3 agent | controller- 2.redhat. local | nova | :-) | True | neutron-l3-agent | f2e2-4db3- 8ff7-1765e5e5bb 93 | Metadata agent | controller- 2.redhat. local | | :-) | True | neutron- metadata- agent | 279d-43f1- a863-fed7953b29 ac | Open vSwitch agent | controller- 2.redhat. local | | :-) | True | neutron- openvswitch- agent | ------- ------- ------- ------- ----+-- ------- ------- ----+-- ------- ------- ------- ----+-- ------- ------- ---+--- ----+-- ------- ------- +------ ------- ------- ------- +
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+------
| id | agent_type | host | availability_zone | alive | admin_state_up | binary |
+------
| 643a494d-
| 8a092f5b-
| 8a384ede-
| 2ec9c0d6-
| 758c19ef-
| 9cec9036-
| b0d7fb33-
| bf84115b-
| 386111f1-
| 43d33cd1-
| ad765ce7-
| c832081f-
| dbd82bdb-
| 274076b0-
| 98ed6974-
| d56166f9-
| ea6d2831-
| eb7e8b70-
+------
(overcloud) [stack@undercloud-0 ~]$ neutron agent-list --sort-column host
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+------
| id | agent_type | host | availability_zone | alive | admin_state_up | binary |
+------
| 386111f1-
| bf84115b-
| ea6d2831-
| 274076b0-
| b0d7fb33-
| dbd82bdb-
| 2ec9c0d6-
| 43d33cd1-
| 8a092f5b-
| 98ed6974-
| 758c19ef-
| 8a384ede-
| c832081f-
| d56166f9-
| 643a494d-
| 9cec9036-
| ad765ce7-
| eb7e8b70-
+------
So You can sort the results based on various columns