Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to set-up a Glassfish 3.1.1 Cluster for testing purposes.

Currently, I've got 2 hosts with Glassfish 3.1.1 installed. I've set-up a DAS domain on host1, and followed this guide to create the cluster:

This all worked quite well, and I've got 2 instances running on the 2 hosts which I can start/stop etc from the DAS.

However I want to set-up an init script for the individual instances on their relevant host to ensure that the instance starts correctly on a reboot.

I've found the command:

asadmin start-instance --node host1_node1 host1_inst1
asadmin start-instance --node host2_node1 host2_inst1

However this command keeps asking me for a admin username and admin password. I've tried a asadmin --host host1 --port 4898 login, which saves the details correctly. However I'm still being prompted for a username/password on running the start-instance command.

Any ideas???

Cheers Gavin

share|improve this question

You can use

asadmin start-local-instance
asadmin stop-local-instance

on the cluster nodes.

The DAS still needs to be started with asadmin start-domain.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.