Avery Dennsion Cleanup
Application Monitoring & Server Maintenance
Prerequisites
Pulse VPN installed locally
WinSCP and Putty installed on the system
Connectivity to AOC (from Adeptia network or through VPN)
Download Links
Pulse VPN: Download Here
Zscaler VPN: Instructions and Download
Pulse VPN Credentials:
Name: | Webconnect AP |
Server URL: | ap.express.averydennison.com or bu2.express.averydennison.com |
User ID: | ******** |
Password: | ******** |
Zscaler VPN Credentials:
Cloud | ZSCALERTWO |
VPN link: | https://drive.google.com/file/d/1u5DUqiuQKVR1Lp8tH77KlMiIcdWSBO50/view |
User ID: | |
Password: | ******** |
Environments
Maintenance activities will be performed on two servers:
Server Info and URL for PROD Cluster
464 server (Primary): appdadc464.na.averydennison.net
465 server (Secondary): appdadc465.na.averydennison.net
URLs
AOC Primary: http://appdadc464.na.averydennison.net/AveryDennison/
AOC Secondary: http://appdadc465.na.averydennison.net/AveryDennison/
AIS Primary: http://appdadc464.na.averydennison.net:8080/adeptia/control/
AIS Secondary: http://appdadc465.na.averydennison.net:8080/adeptia/control/
Steps for Application Monitoring
Create Tickets:
"AOC PROD Monitoring dd-mm-yyyy"
"Avery PROD Solution Health Check dd-mm-yyyy"
Check AOC Application:
Verify order processing is working and not getting stuck.
Check Process Flow Logs in AIS:
Verify flows are not getting aborted.
Connect to WinSCP and Putty:
Check memory usage, hard disk space, and CPU usage.
Steps for Cleanup
Important: Send an email in the morning to Avery seeking Downtime Permission.
WinSCP and Putty
Start WinSCP and open both servers using Putty (obtain username and password in advance).
Gain Full Privileges:
Use the command
sudo su
.
Check RAM Memory Utilization:
Use command
free -m
.Free available RAM must not be less than X%.
Check Available Disk Space:
Use command
df -h
.Available disk space must not be less than X%.
Maintenance Activity
Shutdown Both Clusters:
Shutdown Secondary Cluster (465) first. (Caution: If the primary is shut down accidentally, contact Support Lead immediately).
Shutdown Both Clusters:
Shutdown Secondary Cluster (465) first. (Caution: If the primary is shut down accidentally, contact Support Lead immediately).
Check JAVA Instances:
Use the command
ps -A | grep java
.
Verify 5 instances on 464 server and 4 instances on 465 server.
Stop JAVA Instances:
Navigate to
/mnt/AdeptiaData/P2A/AdeptiaSuite-6.5/AdeptiaServer/ServerKernel
or/AOC/AdeptiaData/P2A/AdeptiaSuite-6.5/AdeptiaServer/ServerKernel
usingcd
command.
Stop Adeptia with command
./stop.sh
.Stop 465 cluster first, then 464 cluster.
Rename logs before starting servers again.
Verify Shutdown:
Use command
ps -A | grep java
.
Renaming Logs
Switch to WinSCP:
Path:
/mnt/AdeptiaData/P2A/AdeptiaSuite-6.5/AdeptiaServer/ServerKernel/logs/applicationlogs
or/AOC/AdeptiaData/P2A/AdeptiaSuite-6.5/AdeptiaServer/ServerKernel/logs/applicationlogs
.Rename
KernelApplication.log
andWebrunnerApplication.log
using format:KernelApplication.log_15-5-2019
.
Tomcat Log Cleanup
Shutdown Tomcat:
Navigate to
/mnt/AdeptiaWeb/apache-tomcat-8.0.28/bin
or/AOC/AdeptiaWeb/apache-tomcat-8.0.28/bin
.Use command
./shutdown.sh
.
Delete Tomcat Logs:
Navigate to
/mnt/AdeptiaWeb/apache-tomcat-8.0.28/logs
or/AOC/AdeptiaWeb/apache-tomcat-8.0.28/logs
on 464 cluster in WinSCP.Delete
Catalina.out
.
Once the renaming of AIS log and deletion of Tomcat Log is accomplished user must start all instances of JAVA using command ./startup.sh
Make sure all 5 instances are running properly (4 AIS+ 1 Tomcat java)
Restart JAVA Instances
Start JAVA Instances:
Use command
./startup.sh
.Verify all 5 instances are running (4 AIS + 1 Tomcat java).
Verification:
Check java instances with
ps -A | grep java
.Access Adeptia Suite: http://appdadc464.na.averydennison.net:8080/adeptia/control/
Access AOC application: http://appdadc464.na.averydennison.net/AveryDennison/