Use the listAlias() method to list the aliases that you use.
To get a list of Alias Names using Administration Messages, use the inquire action and specify a field of Queue_QAliasNameList in the parameter's fields object.
You can obtain a list of aliases from the C API using the following API.
Figure 24. Obtaining a list of aliases in C
if (MQERETURN_OK == rc) { MQeVectorHndl hVectorAliases; rc = mqeAdministrator_LocalQueue_listAliasNames(hAdministrator, &exceptBlk, hLocalQueueName, hLocalQMName, &hVectorAliases); /* process the aliases vector here */ rc = mqeVector_free(hVectorAliases,&exceptBlk); }