In2m_imp

ssh -vAC -L 8440:stg-equinox.in2m.com:443 cvs.in2m.com

https://localhost:8440/nagios-production/

https://localhost:8440/munin/

========================================================

SSH port forwarding examples

ssh -vtACL 192.168.1.128:80:localhost:8888 rmane@equinox.in2m.com "ssh -vtACL 8888:10.1.18.24:80 web03"

KVM -virtual machines - 192.168.1.109

========================================================

Port forwarding to connect to odb1-new

ssh -vtCAL 1522:localhost:1527 equinox.in2m.com "ssh -vtCAL 1527:odb1-new.in2m.com:1521 odb1-new"

=========================================================

ssh -tCAL <localport>:localhost:<gateway server port> <gateway server>  "ssh -CAL <gateway server port>:<destination server listening IP  address>:<destination server listening port> <destination server name>"

e.g

ssh -tCAL 1526:localhost:7776 dashboard.in2m.com "ssh -NCAL 7776:192.168.9.11:1521 db2"

===========================================================

Release plan for error 140 - send alerts to engg team also.

Permanent Generation

http://www.freshblurbs.com/blog/2005/05/19/explaining-java-lang-outofmemoryerror-permgen-space.html

http://www.slideshare.net/gengmao/inside-the-jvm-memory-management-and-troubleshooting

http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html

http://javarevisited.blogspot.in/2011/05/java-heap-space-memory-size-jvm.html

http://javarevisited.blogspot.in/2011/09/javalangoutofmemoryerror-permgen-space.html

http://javarevisited.blogspot.sg/2012/01/find-max-free-total-memory-in-java.html

http://javarevisited.blogspot.sg/2012/01/tomcat-javalangoutofmemoryerror-permgen.html

http://javarevisited.blogspot.in/2011/04/garbage-collection-in-java.html

====================================================

Apache virtual hosting

http://www.thegeekstuff.com/2011/07/apache-virtual-host/

Configure SSL

===================================================

Check out of memory errors on CC servers.

for j in muscc01 uscc01  uscc02 uscc03 uscc04 uscc05;do echo "============ $j ======";ssh $j "grep -i outofmemory /CustomerCentral/log/CC*$(date +%y%m%d).log";done

=========================================

To copy log files from CC to cvs

ON equinox

i=<server name>

ssh -A $i "tar -zcvf $i.$(date +%y%m%d).tgz /CustomerCentral/log/CC*$(date +%y%m%d).log";scp $i:~/$i.$(date +%y%m%d).tgz ~/log_files

ssh -A cvs "mkdir /home/prod_logs/$i.$(date +%y%m%d)";scp log_files/$i.$(date +%y%m%d).tgz cvs:/home/prod_logs/$i.$(date +%y%m%d)/.

==================================================

check how much heap size is allocated to each server:

for j in uscc01 uscc02 uscc03 uscc04 uscc05 muscc01;do echo "======= $j =======";ssh $j "ps -ef|grep .CCGateway.CCGateway|grep -v grep";done

==========================================

USCC smoke template

IT Incident- USCC02 Smoke test Critical 2013-05-29

Description: USCC02 Smoke test reported critical

Alerted By: Nagios

When Alerted:  Wed May 29 04:33:23 MDT 2013

 

When Acknowledged:  Wed May 29 05:22:33 MDT 2013

Production Incident resolution in Runbook (Yes/No): Yes

Production Incident Scenario Link: customer-central-smoke-test-critical

Cause: Checked the /CustomerCentral/log/CCGateway130529.log found Java "OutOfMemory" error on USCC02.

Unable to successfully execute check_cc_plugin on USCC05

Short Term Resolution: Restarted Customer Central on USCC02.

Long Term Resolution: Already raised in Rally - Bug755

Confirm with Running Nagios Plugin Manually: /usr/lib/nagios/plugins/check_cc_plugin and /usr/lib/nagios/plugins/check_cc ran successfully after restarting Customer Central on USCC02

Logs kept on CVS: /home/prod_logs/USCC05.20130529/USCC05.130529.tgz

Related Bugs: Bug755

Who Impacted: None

How Impacted: N/A

==================================================

Add user in mysql and assign permission to him to login from any hosts.

mysql> CREATE USER 'monty'@'localhost' IDENTIFIED BY 'some_pass';

mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost' WITH GRANT OPTION;

mysql> CREATE USER 'monty'@'%' IDENTIFIED BY 'some_pass';

mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'%' WITH GRANT OPTION;

grant all privileges on *.* to bill@localhost identified by 'pass' with grant option;