Plesk VPS Migration for plesk 9 series
Linux/Windows Support,Plesk,1. Upload migration agent and modules to the source server. For example for Parallels Plesk Panel, there are two folders: “/usr/local/psa/PMM/agents/shared” and “/usr/local/psa/PMM/agents/PleskX”. Use the command below to copy the Migration Manager: destination ~# scp -r /usr/local/psa/PMM/agents/shared/* /usr/local/psa/PMM/agents/PleskX/* root@source:temporary_migration_directory/ 2. Login to source server and change to directory /temporary_migration_directory. Run migration agent (PleskX.pl) with parameter…
Read moreDoes DNS use TCP or UDP or both?
Linux General,Does DNS use TCP or UDP or both? TCP is a connection-oriented protocol and it requires data to be consistent at the destination and UDP is connection-less protocol and doesn’t require data to be consistent or don’t need a connection to be established with host for consistency of data. UDP packets are smaller in size.…
Read morePRTG Network Monitor
Network,PRTG Network Monitor runs 24/7 on a Windows-based machine within your network, recording network usage parameters. Recorded data is stored in a database for historic reports. The easy to use web-based user interface allows to configure the devices and sensors that you want to monitor. You can create usage reports and provide colleagues and customers…
Read moreLinux – Advanced Commands
Linux General,Show status of ethernet interface eth0: ethtool eth0 List addresses for interfaces: ip addr show (OR) ip a Set default gateway: ip route add default via 1.2.3.254 List routing table: ip route show Add (or del) ip and mask (255.255.255.0): ip addr add 1.2.3.4/24 brd + dev eth0 Text Manipulation: Replace string1 with string2: sed…
Read moreLinux – Ethernet bonding
Linux General,Linux bond or team multiple network interfaces (NIC) into single interface We have two Dell servers that need setup with Intel Dual Gig NIC. My idea is to improve performance by pumping out more data from both NIC without using any other method. This box act as heavy duty ftp server. Each night I need…
Read moreLinux – Tweaks
Linux General,Fork Bomb on Linux/Unix: Q. Explain following bash code or bash fork() bomb? : () { : | :& };: A. This is a bash function. It gets called recursively (recursive function). This is most horrible code for any Unix / Linux box. It is often used by sys admin to test user processes limitations…
Read moreHow to identify CPU resource problem?
Linux/Windows Support,vmstat command helps us to determine if a server is running short of CPU resources. First, let us determine the number of CPUs available Linux: $ grep -i processor /proc/cpuinfo | wc -l FreeBSD: $ sysctl -a ‘hw.ncpu’ Run vmstat command 10 times with an interval of 5 seconds $ vmstat 5 10 procs ———–memory———-…
Read moreExtract the contents of an RPM
Linux General,Using rpm2cpio command, the contents of an RPM package can be extracted without having to install the package. For source RPMs too this command can be used. This is illustrated with an example as follows, where we extract the contents of RPM, google-chrome-beta_current_i386.rpm. $ rpm2cpio google-chrome-beta_current_i386.rpm | cpio -idv ./etc/cron.daily ./etc/cron.daily/google-chrome ./opt/google/chrome ./opt/google/chrome/chrome ./opt/google/chrome/chrome-sandbox ./opt/google/chrome/chrome.pak…
Read moreNagios Installation and Configuration
Server Management,Nagios Installation in Ubuntu Required Packages Install the following packages on Ubuntu before continuing. Apache 2 PHP GCC compiler and development libraries GD development libraries If not installed, using apt-get the above packages can be installed as follows sudo apt-get install apache2 sudo apt-get install libapache2-mod-php5 sudo apt-get install build-essential sudo apt-get install libgd2-xpm-dev Create…
Read moreNagios – An Introduction
Server Management,What is Nagios? Nagios is a framework for setting up monitoring of hosts, services, and networks . What are the components of Nagios? nagios – the main server software and web scripts nagios-plugins – the common set of check scripts used to query services nagios-nrpe – Nagios Remote Plugin Executor nagios-nsca – Nagios Service Check…
Read more
