The below script is used to delete the same memcache key or multiple memcache keys across multiple memcache hosts. Assumption: If below mentioned condition doesn’t satisfied then the script may fail or may not work. All you have to do is modify/tweak the script as per your requirement Script assumes… Continue Reading Script to delete Memcache key on cluster

Mongodb Introduction: Mongo is a open source database which uses nosql mechanism to store the data. The advantage of mongodb is simple and no structure is required. Mongodb Installation: Create a file mongodb-org-3.2.repo with the following content on /etc/yum.repos.d/mongodb-org-3.2.repo     [mongodb-org-3.2] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-3.2.asc 2. Install MongoDB… Continue Reading Mongo Cluster Setup

In a Linux System, services like Apache, mysql write temporary files to /tmp partition. If /tmp partition is full then there is a high chance of service could crash. To overcome this situation, we are going to use tmpwatch utility to clear the /tmp partition. Let’s install tmpwatch utility. If… Continue Reading Using tmpwatch to clear files from /tmp partition

Recently, we have upgraded MSSQL version from Evaluation version to Web Edition. We would like to post the step in this article which will help someone to upgrade MSSQL.   There are few things which we need to consider while upgrading. +  Lets take a backup of all the database.… Continue Reading Upgrade MS Sql Server from Evaluation version to Web Edition

We would like to post few random switch commands that we used in our  day to day life. To get the switch port of a MAC address, use the following command. # show mac address-table address xx:xx:xx:xx:xx:xx Aging time is 300 sec Vlan Mac Address Port Type ——– ——————— ———-… Continue Reading Random useful switch Commands

The following step by step guideline helps to install red5 on Centos Server.   1. Install Java. ======== yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel ======== 2. Install ant. ======== yum list | grep ant  // check whether ant is available in yum yum install ant —- Otherwise cd /root/tmp wget http://apache.mirrors.pair.com/ant/binaries/apache-ant-1.8.2-bin.tar.gz… Continue Reading Red5 Installation on Centos

We can use the following command to calculate the inode usage of a directory. It will be used in troubleshooting the “Disk quota” issue in cPanel server to find out which directory is using highest number of inodes ===== printf “===\nInode usage :$(pwd)\n===\n\n”;for i in `find -maxdepth 1 -type d|cut… Continue Reading Calculate inode usage

Sometimes, we need the mail logs to find out the reason why the mails has been bounced back. The following script will help you to find the same. Actually, this type of script needed for the server which is used for email marketing application.   As most of the email… Continue Reading Script to identify the reason for bounced back emails

CXS is a paid scanner which is more compatible with cPanel servers. The following script is to scan the server using CXS and will send the scan report to your email address. ===== #!/bin/bash DATE=$(date +%F_%H:%M) REPORT=/root/cxs-{DATE}.txt HOST=$(hostname) CXS=$(which cxs) EMAIL_ID=”youremail@domain.tld” $CXS –allusers –generate –report $REPORT if [ -s $REPORT… Continue Reading Script to scan the server using CXS

Sometimes, you would need to give sudo privilege to many users. For providing sudo privilege for a single user, refer the following post.   —– https://blog.pheonixsolutions.com/wheel-user-to-become-as-root-su-without-password/ —–   For providing sudo privilege for many users, create a group and add all the users in that group. So, if we give… Continue Reading Providing sudo privilege for a group.