Swap usage Linux scripts and commands

Swap usage Linux scripts and commands To see SWAP usage by processes script: #!/bin/sh # Get current swap usage for all running processes # Erik Ljungstrom 27/05/2011 SUM=0 OVERALL=0 for DIR in `find /proc/ -maxdepth 1 -type d | egrep “^/proc/[0-9]”` ; do PID=`echo $DIR | cut -d / -f 3` PROGNAME=`ps -p $PID -oContinue reading “Swap usage Linux scripts and commands”

Linux scripts and commands to see RAM/memory utilization

Script to run top command after every 5 minutes RAM utilization: #!/bin/sh top -b -n 1 -o %MEM  | head -17 >> /var/log/logging.txt echo “=========” >> /var/log/logging.txt Change the permissions to execute, chmod 777 script1 move the script to cronfrequently to run it after every 5 mins, mv script1 /etc/actions/cronfrequently/ (use cronhourlybyfour directory for 15Continue reading “Linux scripts and commands to see RAM/memory utilization”

5 Commands to Get Public IP using Linux Terminal

Public IP are used for communication between computers over internet. A computer running with public ip is accessible all over world using internet. So we can say that it is the identity of computer on internet. Now the question is how do we know our public ip. For computers having GUI can easily get thereContinue reading “5 Commands to Get Public IP using Linux Terminal”

module/slot/port –

Introduction This document explains the interface numbering scheme used in Cisco 1800, Cisco 2800 and Cisco 3800 Series Routers. It also includes line numbering associated with async interfaces. Prerequisites Requirements There are no specific requirements for this document. Components Used The information in this document is based on these hardware versions: Cisco 1800 Series RoutersContinue reading “module/slot/port –”

NAS – Network Attached Storage / NAS vs. SAN / UFS Explorer NAS data recovery

Network-attached storage (NAS) is file-level computer data storage connected to a computer network providing data access to a heterogeneousgroup of clients. NAS not only operates as a file server, but is specialized for this task either by its hardware, software, or configuration of those elements. NAS is often manufactured as a computer appliance – a specialized computer built from the ground up for storingContinue reading “NAS – Network Attached Storage / NAS vs. SAN / UFS Explorer NAS data recovery”