CAS ACCESS

GENERAL

Network Configuration
IPv4 Address:
172.25.30.252
172.25.30.217
172.25.30.151

IPv4 Subnet Mask:
255.255.0.0

IPv4 Default Gateway:
172.25.30.251 but leave it blank, use the routing instead. So we can use both internet and LAN

Routing:
windows route add 172.31.0.0 mask 255.255.0.0 172.25.30.251
format route add (network address you wanna reach) mask (subnet mask of network you wanna reach) (gateway)

mac route -n add 172.31.0.0/16 172.25.30.251
format route -n add (network address you wanna reach)/(subnet mask of network you wanna reach - in slash notation) (gateway)

SIT ENVIRONMENT
Export Project from Eclipse

1. Pull cas_admin project https://hub.penril.net/hg/maybank/cas/cas_admin/
2. Export project as cas_admin.war

3. Pull cas_ws project https://hub.penril.net/hg/maybank/cas/cas_ws/
4. Export project as cas_ws.war

Copying WAR files to server

1. Open Filezilla
2. Keys in these credentials
Host			: sftp://172.31.89.26
Username	: wasadmin
Password	: abc123
Port			: 22
2. Navigate to: /export/home/wasadmin/applications
3. Always backup the existing WAR files inside
4. Copy  cas_admin.war & cas_ws.war from your local machine to this remote folder

How to deploy Enterprise Applications at WAS?

1. Access WAS by entering the URL to web browser http://172.31.89.26:9063/ibm/console/login.do
2. No username/password required
3. Go to Applications -> Application Types -> WebSphere enterprise applications
4. Stop both CAS_war and casWS_war by ticking on both applications and click stop

5. Tick CAS_war click update
6. Replace the entire application -> Remote file system
7. Full path: /export/home/wasadmin/applications/CAS.war
8. Keeps clicking next until finish
9. Save
10. Click the CAS_war hyperlink under enterprise applications
11. Click Context Root for Web Modules
12. Rename context root to /CAS
13. Click OK
14. Tick CAS_war
15. Click Start

Do the same thing for cas_ws, the context root path will be /casWS

How to test those applications?
1. CAS Admin
Open browser http://172.31.89.26:9083/CAS/common/Login.do

2. casWS
Open browser http://172.31.89.26:9083/casWS/services/WS_CAS?wsdl
Right click, view resource

What if the server jammed?
1. Open Terminal
2. ssh root@172.31.89.26
3. password: root123

4. Filezilla /usr/IBM/WebSphere/AppServer/profiles/MTPCAS/logs/server1/server1.pid , open using text editor/notepad
5. ps ef | grep java, make sure that the PID is listed here
6. kill -9 (that PID)

7. cd /usr/IBM/WebSphere/AppServer/profiles/CASUAT1/bin/
8. ./startServer.sh server1

How to see the log files?
Server Logs 		: /usr/IBM/WebSphere/AppServer/profiles/CASUAT1/logs/server1
Application Logs 	: /export/home/wasadmin/logs/casWS

UAT ENVIRONMENT 1

WAS			:	http://172.31.89.24:9063/ibm/console/login.do
CAS Admin	:	http://172.31.89.24:9083/CAS/common/Login.do
casWS		:	http://172.31.89.24:9083/casWS/services/WS_CAS

Filezilla
Host			: sftp://172.31.89.24
Username	: wasadmin change to root
Password	: abc123 change to root123
Port			: 22

WAR		: /export/home/wasadmin/applications (share with UAT Environment 2)

PID			: /usr/IBM/WebSphere/AppServer/profiles/CASUAT1/logs/server1

Logs			: /export/home/wasadmin/logs/casWS

startServer.sh 
cd /usr/IBM/WebSphere/AppServer/profiles/CASUAT1/bin/
./startServer.sh server1

UAT ENVIRONMENT 2
WAS			:	http://172.31.89.24:9064/ibm/console/login.do
CAS Admin	:	http://172.31.89.24:9084/CAS/common/Login.do (casadmin, C@s@dm1n)
casWS		:	http://172.31.89.24:9084/casWS/services/WS_CAS

WAR		: /export/home/wasadmin/applications (share with UAT Environment 1)

PID			: /usr/IBM/WebSphere/AppServer/profiles/CASUAT2/logs/server1

startServer.sh 
cd /usr/IBM/WebSphere/AppServer/profiles/CASUAT1/bin/
cd /usr/IBM/WebSphere/AppServer/profiles/CASUAT2/bin/
./startServer.sh server1

PRODUCTION
sftp://172.31.36.156
sftp://172.31.36.157
wasadmin	wasadmin
/export/home/wasadmin/logs/

/usr/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/server1

DATABASE CONNECTION
Maybank CAS UAT

Hostname	: 172.31.89.25
Username	: CASUAT
Password	: casuat
SID			: CASUAT

Maybank CAS DEV

Hostname	: 172.31.89.25
Username	: CASDEV
Password	: casdev
SID			: CASDEV

Maybank CAS PROD 
Hostname	: 172.31.120.129
Username	: CAS
Password	: cas
Service Name	: CASPRD

cheaniza.cm@maybank.com.my