I have a glassfish server runing. it has 3 different domains - d1,d2, and d3. now when I try to run asadmin enable-secure-admin command, how to i specify which
You must specify the port the DAS (Domain Administration Server) is running on. For example:
asadmin --host localhost --port 4848 enable-secure-admin
asadmin --host localhost --port 5858 enable-secure-admin
asadmin --host localhost --port 6868 enable-secure-admin
Of course, this assumes the ports are for d1, d2, and d3 respectively.
Hope this helps.