solaris 10 installation
TRANSCRIPT
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 1 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
Installing, Configuration, and Deployment for AT&T Proxy
Copyright © Ericsson Inc., 2009 - All Rights Reserved
Disclaimer
No part of this material may be reproduced in any form without the written permission of the copyright owner. The contents of these documents are subject to revision without notice due to continued progress in methodology, design and manufacturing. Ericsson shall have no liability for any error or damage of any kind resulting from the use of these documents.
TrademarksEricsson is the trademark or registered trademark of Telefonaktiebolaget LM Ericsson. All other product or service names mentioned in this manual are trademarks of their respective companies.
Table of Contents1 Introduction..........................................................................................21.1 Purpose................................................................................................21.2 Target Audience...................................................................................22 Prerequisites........................................................................................22.1 Hardware.............................................................................................22.2 Software...............................................................................................32.3 System Information..............................................................................33 Sun Solaris 10 Installation...................................................................34 Configuring Mirroring.........................................................................105 ALOM and EEPROM Configuration setup.........................................126 Sun Solaris 10 Patch Installation.......................................................147 Install JAVA 6.0..................................................................................168 Installing Sun GlassFish....................................................................168.1 How to create domain........................................................................228.2 Creating a Service for GlassFish (Sun Application Server)...............239 Application Deployment.....................................................................2410 Configure Network Time Protocol (NTP)...........................................2811 Configure Probe-based IP network multipathing...............................2912 Configure Routes...............................................................................3013 GlassFish Rollback............................................................................3113.1 Delete GlassFish Domain..................................................................3113.2 Uninstalling GlassFish Application Server.........................................3114 References.........................................................................................33
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 2 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
1 Introduction
This document demonstrates how to install GlassFish (Sun Application Server) as a part of the AT&T ECT Proxy. It describes all steps needed to take the glassfish server into operation.
1.1 Purpose
GlassFish is a key component of the AT&T proxy solution. The purpose of the GlassFish (Sun Application Server) is to hold ECT Web Services (WSDL) and Java Fundial API in a web application. This web application can be deployed to GlassFish using Glassfish admin tools.
1.2 Target Audience
This document is to be used by the Solution Integrators who are installing the Glassfish on Solaris 10 OS x86 and SPARC platforms. This document assumes that the person performing the instructions have some Solaris 10, installing configuring web servers, and web application experience.
2 Prerequisites
Before performing the procedures in this document, ensure that the following prerequisites are satisfied:
2.1 Hardware
AT&T Proxy solution requires the following hardware:
1. 1.28GHz or 1.503GHz UltraSPARC IIIi, 64 bit, 4-way Superscalar SPARC V9.
2. Four 10/100/1000 BaseT Ethernet
3. two hot-swap Ultra-320 SCSI 73GB or 146GB 15Krpm disks
4. slim-line DVD-RW or slim-line ATAPI DVD-ROM
5. Minimum 4GB RAM and MAX 8GB
6. Minimum two hot-swap Ultra-320 SCSI 73GB
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 3 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
2.2 Software
1 Installation Medias below are available at Reference [4]:
a. Solaris 10 delivery 11/08 operating system
b. Solaris 10 recommended patch cluster (04/22/09)
c. Java 6.0 software (jdk-6u12-solaris-sparc.tar.Z)
d. Glassfish software (sges-2_1-solaris-sparc.bin)
e. glassfish.xml
2 Proxy deployment, see Reference [6] for latest version.
2.3 System Information
1. Hostname to be configured
2. Two network IP addresses and one VIP to be configured for the traffic network
3. Two network IP addresses and one VIP to be configured for O&M
4. Subnetmask and traffic gateway to be configured
5. ALOM IP address, subnetmask and default gateway and password to be configured
6. IP address to be configured for the NTP server
3 Sun Solaris 10 Installation
This section covers installation of the Sun Solaris 10 for Sparc, delivery 11/08. Estimated time for the installation is 100 minutes.
Note: All external devices must be connected and configured before the Solaris installation is started.
Note: It is recommended to run a full POST diagnostics on the server before starting the installation to verify functionality of the server hardware.
Caution!
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 4 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
Any data stored on the server internal disks will be lost during installation.
1. Power on all devices.
2. Use a telnet client to connect to the serial management port on the system.
3. Please login:
Enter the user on the SC (usually admin)
4. Please Enter password:
Enter the password chosen for the SC-user as in
5. Power on the server if it is not already running.
sc> poweron
6. To get write access to the console enter the following command:
sc> console –f
7. A warning may appear that you will now steal the write access from the current user (usually the serial port A).
Type y and press Return to get console access.
8. Put the DVD-ROM with Solaris 10 11/08 Software DVD into the DVD-ROM drive.
9. Open ok prompt. Skip step if already have an ok prompt
init 0
10. Boot the server from the DVD-ROM drive by entering the following command:
ok boot cdrom
11. Select a Language
Enter 0 and press Return to select English.
12. What type of terminal are you using?
Enter 3 and press Return to select DEC VT100.
13. The Solaris Installation Program
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 5 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
Press F2 to continue.
14. Identify This System
Press F2 to continue.
15. Networked
Select Yes and press F2.
16. Network Interfaces
Select ce0 or bge0 and press F2.
Note: Do not select any other interfaces at this point, they will be configured later.
17. Use DHCP for ce0 or bge0.
Select No and press F2.
18. Host name for ce0 or bge0.
Enter the hostname for the server and press F2.
Note: Use maximum 14 characters.
Only lower case letters and numbers are allowed. Upper case letters or hyphens "-" are not allowed to be used.
19. IP address for ce0 or bge0
Enter the IP address and press F2. (Traffic IP)
20. System part of a subnet
Select Yes and press F2.
21. Netmask for ce0 or bge0. ( Traffic Subnetmask )
Enter the netmask for the IP address and press F2.
22. Enable IPv6 for ce0 or bge0
Select No and press F2.
23. Default Route for ce0 or bge0
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 6 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
Select Specify one and press F2.
24. Router IP Address for ce0 or bge0. ( Traffic Gateway )
Enter the IP address for the default router and press F2.
25. Confirm Information
Press F2 to confirm the network configuration or press F4 to make changes.
26. Configure Kerberos Security
Select No and press F2.
27. Confirm Information
Press F2 to confirm the security configuration or press F4 to make changes.
28. Name Service
Select None and press F2.
29. Confirm Information
Press F2 to confirm the name service configuration or press F4 to make changes.
30. NFSv4 Domain Name
Select Use the NFSv4 domain derived by the system and press F2.
31. Confirm Information
Press F2 to confirm the name service configuration or press F4 to make changes.
32. Continents and Oceans
Select the continent and press F2
33. Countries and Regions
Select the country or region and press F2.
34. Time Zone
Select the Time Zone Region that matches and press F2.
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 7 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
Note: Use Time Zone; do not use GMT +/-.
35. Date and Time
Enter the correct Date and Time and press F2.
36. Confirm Information
Press F2 to confirm the time configuration or press F4 to make changes.
37. Root Password
Enter the root password twice and press F2.
38. Identify This System
Press F2 to continue.
39. Remote services enabled
Select Yes and press F2.
40. Solaris Interactive Installation
Press F2 to select standard installation.
41. Eject a CD/DVD Automatically?
Select Automatically eject CD/DVD and press F2.
42. Reboot After Installation?
Select Auto Reboot and press F2.
43. Solaris Interactive Installation
Note: This might not show up if the system has not been installed before.
Press F4 to select initial installation.
44. License
Press F2 to accept the License agreement.
45. Select Geographic Regions
Expand North America and select U.S.A. (en_US.ISO8859-1) and press F2.
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 8 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
Press F2 to accept the default selection of North America.
Do not select any other country or geographical region as this may cause problems with the system locale settings.
46. Select System Locale
Select U.S.A. (en_US.ISO8859-1) ( en_US.ISO8859-1 ) and press F2.
47. Additional Products
Select None and press F2.
48. Choose Filesystem Type
Select UFS and press F2.
49. Select Software
Select Entire Distribution and press F2.
50. Select Disks
Select the first disk mentioned and press F2.
51. Preserve Data?
Press F2 (Continue).
52. Automatically Layout File Systems?
Press F4 (Manual Layout).
53. File System and Disk Layout
Press F4 (Customize).
54. Customize Disk: Primary Disk
Fill in the values according to the table below.
Note: Do not change the parameters for slice 2. This is a representation of the whole disk.
Note: There should not be any name on slice 7. This space is reserved for the Volume Manager.
Slice Mount Point Size
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 9 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
0 swap Double the size of physical memory
For the remaining Space after creating swap space
1 / 30 %
2 backup
3 /var 30 %
4 /opt 30%
5 /mirror 10%
Press F2 twice to confirm and continue.
55. Mount Remote File Systems?
Press F2 (Continue).
56. Profile
Press F2 to confirm the system configuration or press F4 to make changes to disk customization (Step 50)
57. A warning may appear due to the change of the default boot device.
Press F2 to confirm this.
58. Wait while the system is installed and reboots. (change disk when prompted)
59. Keyboard Layout
Select US-English and press F2.
Optional if you want to provide remote SSH access for root follow the next steps:1. Permitting root login on Solaris 10
vi /etc/ssh/sshd-config
Modify the following linepermit root login no
to permit root login yes
2. To enable root login from console edit /etc/default/login.
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 10 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
vi /etc/default/login
Change the line
CONSOLE = /dev/console
to
#CONSOLE = /dev/console
4 Configuring Mirroring
creating first and second submirrors
1. umount /mirror
2. Edit /etc/vfstab to delete entry for /mirror
3. mkdir -p /etc/saved/
4. prtvtoc /dev/rdsk/c1t0d0s2 > /etc/saved/c1t0d0s2_vtoc
5. fmthard -s /etc/saved/c1t0d0s2_vtoc /dev/rdsk/c1t1d0s2
6. # meta commands
7. # replicas
8. metadb -a -f -c 4 c1t0d0s5
9. metadb -a -f -c 4 c1t1d0s5
first submirror
10. metainit -f d10 1 1 c1t0d0s0
11. metainit -f d11 1 1 c1t0d0s1
12. metainit -f d13 1 1 c1t0d0s3
13. metainit -f d15 1 1 c1t0d0s4
second submirror
14. metainit d20 1 1 c1t1d0s0
15. metainit d21 1 1 c1t1d0s1
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 11 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
16. metainit d23 1 1 c1t1d0s3
17. metainit d25 1 1 c1t1d0s4
mirrors
18. metainit d0 -m d10
19. metainit d1 -m d11
20. metainit d3 -m d13
21. metainit d5 -m d15
22. metaroot /dev/md/dsk/d1
prepare vfstab
23. cp -p /etc/vfstab /etc/vfstab.orig
24. echo "#device device mount FS fsck mount mount" > /etc/vfstab
25. echo "#to mount to fsck point type pass at boot options" >> /etc/vfstab
26. echo "#" >> /etc/vfstab
27. echo "fd - /dev/fd fd - no -" >> /etc/vfstab
28. echo "/proc - /proc proc - no -" >> /etc/vfstab
29. echo "/dev/md/dsk/d0 - - swap - no -" >> /etc/vfstab
30. echo "/dev/md/dsk/d1 /dev/md/rdsk/d1 / ufs 1 no -" >> /etc/vfstab
31. echo "swap - /tmp tmpfs - yes -" >> /etc/vfstab
32. echo "/dev/md/dsk/d5 /dev/md/rdsk/d5 /opt ufs 1 yes -" >> /etc/vfstab
33. echo "/dev/md/dsk/d3 /dev/md/rdsk/d3 /var ufs 1 no -" >> /etc/vfstab
34. echo "/devices - /devices devfs - no -" >> /etc/vfstab
35. echo "sharefs - /etc/dfs/sharetab sharefs - no -" >> /etc/vfstab
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 12 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
36. echo "ctfs - /system/contract ctfs - no -" >> /etc/vfstab
37. echo "objfs - /system/object objfs - no -" >> /etc/vfstab
38. shutdown -y -g60 -i6 "rebooting in 60 seconds to finish mirror setup"
Attaching Second Side of Mirror to boot device1. metattach d0 d202. metattach d1 d213. metattach d3 d234. metattach d5 d25
5 ALOM and EEPROM Configuration setup
Note: Skip this section if ALOM and EEPROM parameters already configured.
1. If logged in to the ALOM SC console, to get access to the ssh console enter the following command:
sc> console –f
2. A warning may appear that you will now steal the write access from the current user (usually the serial port A).
Type y and press Return to get console access.
3. Output EEPROM configuration
eeprom
4. Edit EEPROM configurationeeprom diag-switch=falseeeprom auto-boot?=trueeeprom diag-level=mineeprom “local-mac-address?”=trueeeprom ttya-ignore-cd=false
5. Determine the physical device path of the root mirror disk. The physical path in bold might be different depending on the location of the disk.$ ls -l /dev/dsk/c1t1d0s1lrwxrwxrwx 1 root root 50 Jan 16 10:20 /dev/rdsk/ c1t1d0s1 -> ../../devices/pci@1f,0/pci@1,1/ide@3/dad@1,0:aReplace the major name (e.g. dad) in the physical device path with disk when creating the device alias below.
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 13 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
6. Create a mirror device alias for the mirror disk:eeprom "nvramrc=devalias mirror /pci@1f,0/pci@1,1/ide@3/disk@1,0:a"
eeprom "use-nvramrc?=true"
7. Add the mirror device alias to the boot-device Open Boot parameterExample:eeprom boot-device#boot-device=disk
Add the mirror path to the existing boot-device path. In case of a problem with the primary device (disk), the system will attempt to boot from the mirror device alias with the following change.
eeprom "boot-device=disk mirror"
8. From the Open Boot prompt, type boot mirror to boot from the mirror disk
9. Output ALOM configuration
/usr/platform/`uname -i`/sbin/scadm show
10. Setup ALOM Network Interface
Note: ALOM network interface IP information might not be the same as shown below.
/usr/platform/`uname -i`/sbin/scadm set netsc_ipaddr 10.185.13.150
/usr/platform/`uname -i`/sbin/scadm set netsc_ipnetmask 255.255.255.192
/usr/platform/`uname -i`/sbin/scadm set netsc_ipgateway 10.185.13.9
11. View network settings. Verify netsc_tpelinktest is set to true.
/usr/platform/`uname -i`/sbin/scadm show | grep netsc
12. Setup password for the SC-user (admin)
/usr/platform/`uname -i`/sbin/scadm userpassword admin
It will prompt you for password and then again.
13. Disable email alerts.
/usr/platform/`uname -i`/sbin/scadm set if_emailalerts false
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 14 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
14. Reset the ALOM to make changes permanent. Changes will take affect once ALOM has been restarted.
/usr/platform/`uname -i`/sbin/scadm resetrsc
15. Connect to the serial management port and use a telnet client to connect to specified ALOM IP address at port 23. If everything done correctly you can login to ALOM. To test the capabilities of ALOM type command
showenvironment
16. Verify all changes have been made successfully. Output and save ALOM configuration to a file
/usr/platform/`uname -i`/sbin/scadm show > /opt/temp/alom_backup_DATE.txt
17. Output and save EEPROM configuration to a file
eeprom > /opt/temp/eeprom_backup_DATE.txt
18. Log in as root and type the following commands at the superuser prompt. Type the second command all on one line, even though it appears on two lines in the example
pmadm -r -p zsmon -s ttya
pmadm -a -p zsmon -s ttya -i root -fu -m"/dev/term/a:I::/usr/bin/login::9600:ldterm,ttcompat:ttya login\: ::tvi925:n:" -v 1
6 Sun Solaris 10 Patch Installation
1. Connect to the network port 0 and copy the following file to the server (see Reference [4])
10_Recommended.zip
2. Extract contents of the compressed zip file:
unzip 10_Recommended.zip
3. Run the install_cluster script.
cd <patch cluster directory>
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 15 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
./install_cluster -t
4. Verify you see information similar to below
Patch cluster install script for Solaris 10 SPARC Recommended Patch Cluster
*WARNING* SYSTEMS WITH LIMITED DISK SPACE SHOULD *NOT* INSTALL PATCHES:
With or without using the save option, the patch installation process
will still require some amount of disk space for installation and
administrative tasks in the /, /usr, /var, or /opt partitions where
patches are typically installed. The exact amount of space will
depend on the machine's architecture, software packages already
installed, and the difference in the patched objects size. To be
safe, it is not recommended that a patch cluster be installed on a
system with less than 4 MBytes of available space in each of these
partitions. Running out of disk space during installation may result
in only partially loaded patches. Check and be sure adequate disk space
is available before continuing.
Are you ready to continue with install? [y/n]: y
Determining if sufficient save space exists...
Sufficient save space exists, continuing...
Installing patches located in patch_order file in /tmp/10_Recommended
Using /tmp/10_Recommended/patch_order file for patch installation sequence
Installing 120719-02...
Installation of 120719-02 failed. Return code 8.
Installing 121296-01...
Installation of 121296-01 failed. Return code 2.
Installing 126868-02...
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 16 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
Installation of 126868-02 succeeded. Return code 0.
5. For more installation messages refer to the installation logfile:
/var/sadm/install_data/Solaris_10_Recommended_Patch_Cluster_log
6. Use /usr/bin/showrev -p to verify installed patch-ids.
7. Reboot the machine
reboot
8. Repeat steps 1-6.
7 Install JAVA 6.01. Extract the contents of the compressed tar file (see Reference [4]):
zcat jdk-6u12-solaris-sparc.tar.Z | tar -xf –
This creates several directories (SUNWj6rt, SUNWj6dev, SUNWj6cfg, SUNWj6man, SUNWj6dmo, and SUNWj6jmp) plus a few files in the current directory.
2. Become root by running su and entering the super-user password. 3. Uninstall any earlier installation of JDK packages.
If your machine has an earlier installation of this version of the JDK in the default location (/usr/jdk/jdk1.6.0), you must remove it before installing this version at the same location. To uninstall the Solaris packages for this version of the JDK, remove them by running: On all processors:pkgrm SUNWj6rt SUNWj6dev SUNWj6cfg SUNWj6man SUNWj6dmo
4. Run the pkgadd command to install the packages.
On all processors: pkgadd -d . SUNWj6rt SUNWj6dev SUNWj6cfg SUNWj6man SUNWj6dmo
8 Installing Sun GlassFish
1- From your terminal windows forward X112- Lunch exceed to enable the GU or CITRIX.
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 17 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
3- Copy the file to the server (see Reference [4])4- chmod u+x sges-2_1-solaris-sparc.bin5- ./sges-2_1-solaris-sparc.bin6- Click next
7- Accept the Agreement
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 18 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
8- Keep the installation Directory location “/opt/SUNWappserver/”
9- Create directory when prompted
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 19 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
10- Make sure that /usr/jdk/instances/jdk1.6.0 location is selected
11- Password is adminadmin12- Select prompt for admin Username and password13- Change HTTP Port from 8080 to 8014- Click Next
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 20 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
15- Uncheck Enable Updatecenter Client16- Click Next
17- Click Start “Install Now”
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 21 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
18- Click on Skip Registration
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 22 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
19- Click “Start Server" and wait for message: "Server has been started"20- Click Finish
8.1 How to create domain
After installing Enterprise Server and creating the default domain (domain1), you can create additional domains by using the local create-domain command. This command creates the configuration of a domain.
1. cd /opt/SUNWapperver/bin
2. ./asadmin list-domains
3. ./asadmin stop-domain domain1
4. ./asadmin delete-domain domain1
5. ./ asadmin list-domains (Make sure domain1 is not listed)
6. ./asadmin create-domain --adminport 4848 ATT2GProxy
7. follow in screen instruction
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 23 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
8. Please enter the admin user name>admin
9. Please enter the admin password> “adminadmin”
10. Please enter the admin password again>
11. Please enter the master password [Enter to accept the default]:> [Enter}
12. Please enter the master password again [Enter to accept the default]:> [Enter]
13. you will see similar to the information bellow
Using port 4848 for Admin.
Using default port 8080 for HTTP Instance.
Default port 7676 for JMS is in use. Using 38775
Default port 3700 for IIOP is in use. Using 38776
Default port 8181 for HTTP_SSL is in use. Using 38777
Default port 3820 for IIOP_SSL is in use. Using 38778
Default port 3920 for IIOP_MUTUALAUTH is in use. Using 38779
Default port 8686 for JMX_ADMIN is in use. Using 38780
Domain being created with profile:developer, as specified by variable AS_ADMIN_PROFILE in configuration file.
Security Store uses: JKS
Domain ATT2GProxy created.
14. ./asadmin stop-domain ATT2GProxy
15. ./asadmin start-domain ATT2GProxy
16. ./asadmin list-domains
8.2 Creating a Service for GlassFish (Sun Application Server)
1. Copy the glassfish.xml file into the server ( see Reference [4])
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 24 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
<?xml version="1.0"?><!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"><!-- Copyright 2009 Ericson Inc, Inc. All rights reserved. Use is subject to license terms. glassfish.xml : glassfish manifest, Omar Abdalla, Systems Engineer updated: 2009-03-16--><service_bundle type='manifest' name='glassfish'> <service name='application/uc/glassfish' type='service' version='1'> <create_default_instance enabled='true'/> <single_instance/> <dependency name='multi-user-server' grouping='require_all' restart_on='error' type='service'> <service_fmri value='svc:/milestone/multi-user-server:default'/> </dependency> <exec_method type='method' name='start' exec='/opt/SUNWappserver/bin/asadmin start-domain ATT2GProxy' timeout_seconds='60' /> <exec_method type='method' name='stop' exec='/opt/SUNWappserver/bin/asadmin stop-domain ATT2GProxy' timeout_seconds='60' /> <property_group name='startd' type='framework'> <!-- sub-process core dumps shouldn't restart session --> <propval name='ignore_error' type='astring' value='core,signal' /> </property_group> <stability value='Evolving' /> <template> <common_name> <loctext xml:lang='C'> glassfish </loctext> </common_name> </template> </service></service_bundle>
2. Import the File in to SMFsvccfg import glassfish.xml3.svcs –p svc:/application/uc/glassfish:default4.svcadm disable svc:/application/uc/glassfish:default5.svcadm enable svc:/application/uc/glassfish:default
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 25 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
6. svcs –p svc:/application/uc/glassfish:default (wait 2 minutes and verify the server is up)
9 Application Deployment
1. Download the latest application deployment from Reference [6].
2. Upload the deployment to /tmp folder and unzip the deployment software.
3. If directory does not exist create /opt/SUNWappserver/domains/ATT2GProxy/ATTConf/
4. Upload config.xml to "/opt/SUNWappserver/domains/ATT2GProxy/ATTConf /config.xml"
5. Edit the XML_PATH property inside config.xml to "/opt/SUNWappserver/domains/ATT2GProxy/ATTConf /XML_files/"
6. Upload errormap.properties to "/opt/SUNWappserver/domains/ATT2GProxy/ATTConf/"
7. Upload log4j.xml to "/opt/SUNWappserver/domains/ATT2GProxy/ATTConf/"
8. Upload log4j.dtd to "/opt/SUNWappserver/domains/ATT2GProxy/ATTConf/"
9. Upload XML files folder to "/opt/SUNWappserver/domains/ATT2GProxy/ATTConf/XML_files/".
10. Touch /var/log/proxyinfo.log and proxydebug.log (make sure it can be created).
11. Modify the /etc/profile default system profile as follows (changes are shown in bold red, original file in blue) and reboot the system.
#ident "@(#)profile 1.19 01/03/13 SMI" /* SVr4.0 1.3 */
# The profile that all logins get before using their own .profile.
trap "" 2 3GLASSFISHV2_HOME=/opt/SUNWappserverexport LOGNAME PATH GLASSFISHV2_HOME
Note: This step only needs to be done once, not with each release.
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 26 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
12. From the address bar in your browser type:
http://<HOST-IP|HOST-NAME>:4848/login.jsf
13. Enter username and password
a. Username: admin
b. Password: adminadmin
14. Click Login
15. Click on Applications on the left side
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 27 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
16. Click on Web Applications
17. Click on Deploy
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 28 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
18. Browse to find the war file (ECTEricssonFundial.war).
19. Click [OK]
10 Configure Network Time Protocol (NTP)
1. Copy configuration from ntp.client
cp /etc/inet/ntp.client /etc/inet/ntp.conf
2. vi /etc/inet/ntp.conf and replace multicastclient 224.0.1.1 with server 129.192.129.149
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 29 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
3. touch /var/ntp/ntp.drift
4. Restart NTP deamon
svcadm disable svc:/network/ntp
svcadm enable svc:/network/ntp
11 Configure Probe-based IP network multipathing
Note: The sample IP addresses and hostnames below may not be the same as the ones to be used in production.
1. Connect to the server using the net management or serial management ports and open the ssh console.
2. Configure all IP interfaces
ifconfig bge1 plumb
ifconfig bge2 plumb
ifconfig bge3 plumb
3. Edit hostname files
vi /etc/hostname.bge0
ATTM_AT2G_PROXY1_net0 netmask 255.255.255.0 broadcast + group production deprecated -failover up addif ATTM_AT2G_PROXY1 netmask 255.255.255.0 broadcast + failover up
vi /etc/hostname.bge1
ATTM_AT2G_PROXY1_net1 netmask 255.255.255.240 broadcast + group oam deprecated -failover up addif ATTM_AT2G_PROXY1_oam netmask 255.255.255.0 broadcast + failover up
vi /etc/hostname.bge2
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 30 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
ATTM_AT2G_PROXY1_net2 netmask 255.255.255.0 broadcast + group production deprecated -failover standby up
vi /etc/hostname.bge3
ATTM_AT2G_PROXY1_net3 netmask 255.255.255.240 broadcast + group oam deprecated –failover standby up
4. Configure /etc/hosts.
# Internet host table
#
::1 localhost
127.0.0.1 localhost
172.17.102.212 ATTM_AT2G_PROXY1 loghost
172.17.102.213 ATTM_AT2G_PROXY1_net0
172.17.102.214 ATTM_AT2G_PROXY1_net2
10.202.10.252 ATTM_AT2G_PROXY1_oam loghost
10.202.10.253 ATTM_AT2G_PROXY1_net1
10.202.10.254 ATTM_AT2G_PROXY1_net3
5. Restart the server
reboot
12 Configure Routes
1. Add default route
route –p add default 10.202.10.241
2. Add the following routes to allow access to the network interfaces:
route -p add net 10.40.7.0 10.202.10.241
route -p add net 10.76.72.0 10.202.10.241
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 31 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
route -p add net 172.30.1.0 10.202.10.241
route –p add net 10.40.6.0/24 172.17.102.1
2. Verify the rotes are added correctly
bash-3.00# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
------------------- -------------------- ----- ----- ---------- ---------
default 10.202.10.241 UG 1 7 10.40.6.0 172.17.102.1 UG 1 3 10.40.7.0 10.202.10.241 UG 1 0 10.76.72.0 10.202.10.241 UG 1 13 10.202.10.240 10.202.10.253 U 1 8 bge1 172.17.102.0 172.17.102.212 U 1 549 bge0:1 172.17.102.0 172.17.102.213 U 1 0 bge0 172.17.102.0 172.17.102.214 U 1 557 bge2 172.30.1.0 10.202.10.241 UG 1 1 224.0.0.0 172.17.102.215 U 1 0 bge0:1 127.0.0.1 127.0.0.1 UH 4 6386 lo0
13 GlassFish Rollback
Note: This section should be executed for rollback only.
13.1 Delete GlassFish Domain
1. ./asadmin list-domains
2. ./asadmin stop-domain domainname
3. ./asadmin delete-domain --domaindir ..\domains domain1
13.2 Uninstalling GlassFish Application Server
1. cd /opt/SUNWappserver
2. ./uninstall
3. Click next
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 32 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
4. Click Uninstall Now
Ericsson Internal
INSTALLATION, CONFIGRATION, AND 33 (33)Prepared (also subject responsible if other) No.
EUS/SI/KP Nishith Agarwal 1531-AOT 101 0424Approved Checked Date Rev Reference
EUS/WR/KP [Soren Vallner] EUSBVD 2009-08-21 D
14 References
[1] http://java.sun.com/javase/6/webnotes/install/jdk/install-solaris.html
[2] https://glassfish.dev.java.net/downloads/v2.1-b60e.html
[3] http://toolserver.exu.ericsson.se/viewcvs/viewcvs.cgi/ATT2GProxy/#dirlist
[4] \\eusrcmw008\Systems\Projects\AT&T\AT\Proxy-Server\installation_software\
[5] ATT2G Proxy System Administrators Guide
[6] Proxy Server Deployment