The command you are looking for is:
asadmin get "*.port"
If you have multiple server instances running you can specify for which instance you want to get results by using a more specific notation:
asadmin get "server.*.port"
In this case "server" is the name of one of your instances.
--
Wolfram Rittmeyer
[Message sent by forum member 'writtmeyer' (writtmeyer)]
http://forums.java.net/jive/thread.jspa?messageID=264231