The Command utility’s list cxn and query cxn subcommands display information about individual connections. The subcommand imqcmd list cxn lists all connections for a specified connection service:
   imqcmd list cxn  [-svn serviceName]
                    [-b hostName:portNumber]If no service name is specified, all connections are listed. For example, the following command lists all connections on the default broker (host localhost at port 7676):
imqcmd list cxn -u admin
Example 6–4 shows an example of the resulting output.
| 
 | 
To display detailed information about a single connection, obtain the connection identifier from imqcmd list cxn and pass it to the imqcmd query cxn subcommand:
   imqcmd query cxn   -n connectionID
                     [-b hostName:portNumber]For example, the command
imqcmd query cxn -n 421085509902214374 -u admin
produces output like that shown in Example 6–5.
| 
 | 
The imqcmd destroy cxn subcommand destroys a connection:
   imqcmd destroy cxn   -n connectionID
                     [-b hostName:portNumber]For example, the command
imqcmd destroy cxn -n 421085509902214374 -u admin
destroys the connection shown in Example 6–5.