October 2014
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories

October 2014
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

CentOS 6.5_x64 install Oracle 11g R2

[root@oracledb ~]# hostname oracledb [root@oracledb ~]#

[root@oracledb ~]# vi /etc/hosts [root@oracledb ~]# ifconfig -a eth0 Link encap:Ethernet HWaddr 00:0C:29:E7:97:A3 inet addr:192.168.1.8 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fee7:97a3/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:306 errors:0 dropped:0 overruns:0 frame:0 TX packets:202 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:32272 (31.5 KiB) TX bytes:24144 (23.5 KiB)

[…]

POODLE = Padding Oracle On Downgraded Legacy Encryption

POODLE = Padding Oracle On Downgraded Legacy Encryption

B.E.A.S.T (Browser Exploit Against SSL TLS) Affected systems: Netscape 3.0 ssl tls Netscape affected system: tls Netscape 1.2 Netscape 1.1 tls tls Netscape 1.0 Description: CVE (CAN) ID: CVE-2014-3566

SSL3.0 is obsolete and no security protocol, has been TLS 1.0, TLS 1.1, TLS 1.2 substitution, for compatibility […]

Logical Volume Manager

Server: Centos Logical Volume diskserver.rmohan.com (Centos 6.5) = 192.168.1.6

Disk to use: Disk /dev/sdb: 50GB DISK A Disk /dev/sdc: 50GB DISK B Disk /dev/sdd: 50GB DISK C

 

 

 

Disk /dev/sdb: 53.7 GB, 53687091200 bytes 255 heads, 63 sectors/track, 6527 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size […]

Log Rotation in Catalina.out

1. Remove all logs of manager& admin

Remove 90 days old logs Backup logs greater that 35MB

#!/bin/bash

rm -rf /app/tomcat-6.0.18/logs/*manager* /app/tomcat-6.0.18/logs/*admin*

find /cda1-logs-backups -name ‘*.gz’ -mtime +90 -exec rm {} \;

echo “Initiating logrotate `date +%F-%A`” >> /app/tomcat-6.0.18/logs/diskutil.log

cd /app/tomcat-6.0.18/logs/

siz_catalina=`/bin/ls -l catalina.out | /bin/awk ‘{ print $5 }’`

if [ $siz_catalina -ge “3600000” […]

Rotating catalina.out log files

It is possible to rotate the catalina.out log, by using a log rotation program like rotatelogs or cronolog.

It is possible to rotate the catalina.out log, but it is not controlled by the standard logging.properties or log4j.properties files.

The catalina.out log is stderr and stdout piped to a file. If you want to rotate this […]

catalina.out log rotation

I am interested in catalina.out log file rotation, I have an application where logging to catalina.out is very huge, say 0.5 MB / sec.

So I have written one script to handle this which is shown below.

 

# crontab -l | grep catalina

0,30 * * * * bash /catalina_log_handler.sh >/dev/null 2>&1

 

# […]

ZIMBRA IMPROVEMENT : RESTRICTED SENDER/SENDER MUST LOGIN ON ZIMBRA 8

powerful mail server, Zimbra has some system security features applied by default. We can also applying some additional security policy to increase mail server protection, such as applying PolicyD and Fail2Ban

All the above security rule may be sufficient, but there are some additional security tips should be considered, especially in the case of SMTP […]

Disk usage 100% even after deleting files

Reducing Disk Usage When Linux complains that the disk is full, you will naturally try to delete some files or move them away from the filled-up partition. So you delete some large files, and check to see that the disk usage is much lower. $ sudo du -shx / 7.8G / But df tells you […]

ZIMBRA TIPS : ARCHIVING, HOW TO MAKE AN ARCHIVE FOR EVERY INCOMING AND OUTGOING MAIL

One of the important features that are needed on a mail server is archiving, the backup copy of all incoming and outgoing mail.

Although we can do the backup process periodically for every account, archiving more better and efficient because we have all of copy email which 100% similar with the original.

However, […]

Zimbra 8 – Adjust max attachment size for email

his sets the maximum attachment size to 50 megabytes. Log into the shell account and type the […]