Ifyour conguration includes remote server instances, create node agents to manage and
facilitateremote server instances. It is the responsibility of the node agent to create, start, stop,
anddelete a server instance. Use the command line interface (CLI) commands to set up node
agents.
Command-lineInterface (asadmin Utility)
Theasadmin utility is a command-line interface for the Sun GlassFish Enterprise Server. Use
theasadmin utility and the commands associated with it to perform the same set of
administrativetasks oered by the Admin Console. The default installation root directory on
Solarisis /opt/SUNWappserver.
Tostart the asadmin utility, go to the as-install/bin directory and enter:
$ ./asadmin
Tolist the commands available within asadmin:
asadmin> help
Itis also possible to issue an asadmin command at the shell’scommand prompt:
$ asadmin help
Toview a command’s syntax and examples, type help followed by the command name. For
example:
asadmin> help create-jdbc-resource
Theasadmin help information for a given command displays the UNIX man page of the
command.These man pages are also available in HTML and PDF format in the Sun GlassFish
EnterpriseServer 2.1 Reference Manual.
JConsole
JConsoleis used to monitor the Sun GlassFish Enterprise Server. You can use either the
JConsoleremote tab, or the advanced tab to connect to the Enterprise Server.
RemoteTab: identify the username, password, administration server host, and JMS port
number(8686 by default), and select Connect.
AdvancedTab: identify the JMXServiceURL as
service:jmx:rmi:///jndi/rmi://host:jms-port/jmxrmiand select Connect. The
JMXServerURLis printed in the server.log le as well as output in the command window of
thedomain creation command.
EnterpriseServer Overview and Concepts
Chapter1 • Enterprise Ser ver Overview 25