Forthe full syntax, type asadmin help create-cluster.
Starting a Cluster
Acluster is started using the start-cluster command. The following example starts the
clusternamed mycluster. The command prompts for the administrative passwords.
$ asadmin start-cluster --host myhost --port 1234 --user admin mycluster
Forthe full syntax, type asadmin help start-cluster.
Stoppinga Cluster
Acluster is stopped using the stop-cluster command. The following example stops the cluster
namedmycluster. The command prompts for the administrative passwords.
$ asadmin stop-cluster --host myhost --port 1234 --user admin mycluster
myhostis the administrative server host, 1234 is the administrative port, admin is the
administrativeusername.
Forthe full syntax, type asadmin help stop-cluster. When a cluster is stopped, all the server
instancesin the cluster get stopped. A cluster without instances cannot be stopped.
Creatinga Node Agent
Anode agent is created using the create-node-agent command. The following example
createsnode agent named mynodeagent. The administration server host is myhost, the
administrationserver port is 1234, and the administrative username is admin. The command
normallyprompts for the administrative passwords; however, if the --savemasterpassword
optionis not specied or false, the command does not prompt for the administrative
passwords.
$ asadmin create-node-agent --host myhost --port 1234 --user admin mynodeagent
Forthe full syntax, type asadmin help create-node-agent.
Starting a Node Agent
Anode agent is started using the start-node-agent command and specifying the node agent
name.For example, to start the node agent mynodeagent, type the following:
$ asadmin start-node-agent --user admin mynodeagent
BasicEnterpriseSer ver Commands
SunGlassFishEnterprise Ser ver2.1 Administration Guide • December 200834