asadmin login -p 4848
Enter admin user name[Enter to accept default]>admin
Enter admin password>adminadmin
GlassFish v3 Prelude (build b28c)
Login information relevant to admin user name [admin] for host [localhost] and admin port [4849] stored at [/home/glassfish/.asadminpass] successfully.
Make sure that this file remains protected. Information stored in this file will be used by asadmin commands to manage associated domain.
Command login executed successfully.