Glassfish Asadmin commandon to remeber

here are som glassfish 4 asadmin commandon to remeber

 

asadmin --host 127.0.0.1 --port 4848 enable-secure-admin

Enabel so that you can use 4848 from external computer

asadmin change-master-password --savemasterpassword=true

Change you master password  (keystore access)

asadmin change-admin-password

Change you glassfish admin password to use asadmin and admin gui.

asadmin login

Store you password on disk so you can login without password

asadmin create-jvm-options
asadmin delete-jvm-options

Create and delete server jvm options

asadmin set configs.config.server-config.ejb-container.ejb-timer-service.max-redeliveries=300
asadmin get *

Set config options and  get them

asadmin create-password-alias
asadmin delete-password-alias

Delete and create password Alias so you dont need plaintext passwords in domain.xml

asadmin deploy  filename
asadmin undeploy name

Deploy and undeploy applications

I will add more commands on the way that i have to use them 🙂