3.1 SSH Key Generation and GlassFish Install Demo v1 Brought to you by: Yamini K B, Rajiv Mordani, Carla Mott, Joe Di Pol
- Start with one GlassFish system running the DAS, and two blank systems and have a two instance cluster running in just a few minutes.
- Two new asadmin utility commands:
- setup-ssh: sets up SSH authentication on remote hosts
- install-node: installs GlassFish, using the DAS installation, onto remote hosts
- Some rough edges
- overly chatty output
- prompts/formatting/usability
- exactly what gets installed
- install-node is sequential
Setup
 Setup:
- GlassFish MS5 installed on one system in /export/tmp/glassfishv3 with DAS running (MacBook in this demo)
- Two other instance systems with sshd running and the ability to authenticate using username/password
- The directory /export/tmp must exist on the instance systems
- All systems must use the same SSH user and password.
- GlassFish not installed nor running on instance systems
- In the demo script the host names for the two instance systems are adc2101159.us.oracle.com and sidewinder.us.oracle.com
|
Demo Script
- asadmin setup-ssh adc2101159.us.oracle.com sidewinder.us.oracle.com
- Answer 'y' to generate key question
- Hit <return> when prompted for key file passphrase
- Enter SSH password for the host when prompted
- asadmin install-node --install-location /export/tmp adc2101159.us.oracle.com sidewinder.us.oracle.com
- asadmin create-node-ssh --nodehost adc2101159.us.oracle.com n1
- asadmin create-node-ssh --nodehost sidewinder.us.oracle.com n2
- asadmin create-cluster c1
- asadmin create-instance --node n1 --cluster c1 i1
- asadmin create-instance --node n2 --cluster c1 i2
- asadmin start-cluster --verbose c1
- asadmin list-instances --long
- In web browser show:
- http://adc2101159.us.oracle.com:28080/
- http://sidewinder.us.oracle.com:28080/
- asadmin stop-cluster c1
- asadmin list-instances --long
- asadmin uninstall-node --install-location /export/tmp adc2101159.us.oracle.com sidewinder.us.oracle.com
|