The repadm utility now supports a -getagentids option to retrieve Replication Agent IDs that are currently registered in the Replication Agent. For example:
C:\> repadm -c getagentids -s FAIRAGENT
c-treeACE(tm) Version 11.4.0.27261(Build-170324) Replication Agent Management Utility
Copyright (C) 1992 - 2017 FairCom Corporation
ALL RIGHTS RESERVED.
Registered agent IDs:
AGENT2
AGENT1