2.12.6 login
Logs you into a domain.
Synopsis
asadmin [asadmin-options] login [--help]
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The login subcommand of asadmin enables you to log into a particular domain, thus simplifying domain administration. If Java EE Server domains are created on various machines (locally), you can run the asadmin utility from any of these machines and manage domains located elsewhere (remotely). This is especially useful when a particular machine is chosen as an administration client that manages multiple domains and servers.
Files
.asadminpass file in user's home directory.
Examples
The following example logs into a domain located on another machine. Options are specified before the login subcommand.
asadmin --host foo --port 8282 login
Exit Status
Exit Status |
Explanation |
---|---|
0 |
subcommand executed successfully. |
1 |
error in executing the subcommand. |