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:
  1. GlassFish MS5 installed on one system in /export/tmp/glassfishv3 with DAS running (MacBook in this demo)
  2. Two other instance systems with sshd running and the ability to authenticate using username/password
  3. The directory /export/tmp must exist on the instance systems
  4. All systems must use the same SSH user and password.
  5. GlassFish not installed nor running on instance systems
  6. In the demo script the host names for the two instance systems are adc2101159.us.oracle.com and sidewinder.us.oracle.com

Demo Script

  1. asadmin setup-ssh adc2101159.us.oracle.com sidewinder.us.oracle.com
    1. Answer 'y' to generate key question
    2. Hit <return> when prompted for key file passphrase
    3. Enter SSH password for the host when prompted
  2. asadmin install-node --install-location /export/tmp adc2101159.us.oracle.com sidewinder.us.oracle.com
  3. asadmin create-node-ssh --nodehost adc2101159.us.oracle.com n1
  4. asadmin create-node-ssh --nodehost sidewinder.us.oracle.com n2
  5. asadmin create-cluster c1
  6. asadmin create-instance --node n1 --cluster c1 i1
  7. asadmin create-instance --node n2 --cluster c1 i2
  8. asadmin start-cluster --verbose c1
  9. asadmin list-instances --long
  10. In web browser show:
    1. http://adc2101159.us.oracle.com:28080/
    2. http://sidewinder.us.oracle.com:28080/
  11. asadmin stop-cluster c1
  12. asadmin list-instances --long
  13. asadmin uninstall-node --install-location /export/tmp adc2101159.us.oracle.com sidewinder.us.oracle.com

DemoDrawing2.png (image/png)