Friday, May 25, 2012

Installing System Activity Reporter [SAR] on Linux

Sar is a system monitor command used to display system activityits installed via the sysstat rpm. Use the command below to install sysstat.


 









Installation :  
 
# yum -y install sysstat
or
# sudo apt-get install sysstat [for ubuntu]

Once installed you can check out the sysstat config file (/etc/sysconfig/sysstat) and configure how long to sar will keep your logfiles, on my system the default was 7 days. I changed this to 30 days.

The cron job for sar is located here (/etc/cron.d/sysstat) if you want to modify it as well.

Once installed and configured to your liking you must ensure that it starts and runs at boot time. I accomplished this via the command below.

# chkconfig sysstat on
# service sysstat start

Once up and running it will write its logs out to /var/log/sa, and you can read those files with the following command (sar -d <filename>, where filename is the name of the file that you want to read). Note that in the examples below, 3 is the interval, and 10 is the count.

Additonally you may run sar interatively, below are a few sample commands.

To report on previously captured data – type :
# sar -u -f filename > file

View disk i/o and transfer rate stats :
# sar -b 3 10

View memory and swap space stats :
# sar -r 3 10

View swapping stats :
# sar -W 3 10

View network stats :
# sar -n DEV 3 10

View CPU stats :
# sar -P ALL 3 10

Thanks,
Vishal Vyas

Saturday, May 19, 2012

Jive Apps Ubuntu Linux Installation Instructions

Jive Apps Command Line Tools on Ubuntu Linux. These tools utilize the Ruby programming language and the Git version control system, so we will need to install these as well.
 



Installation Steps:

1. Sign up for the Jive Apps Developer Community.


You are probably already signed up if you are viewing this document. The command line tools and the sandbox use the same username and password as the community.


2. Install Git & Ruby   

From the terminal, run the following command to install the necessary packages:

$ sudo apt-get -y install build-essential git-core ruby1.8-dev rubygems1.8 ruby1.8 ri1.8 rdoc1.8 irb1.8 libreadline-ruby1.8 libruby1.8 libopenssl-ruby

3. Configure Git
Configure the following options in Git using the Terminal:

$ git config --global user.name "FirstName LastName"
$ git config --global user.email "your_email@youremail.com"

4. Generate SSH Keys
Generate an SSH key pair if you don't already have one. From the Terminal, run this command. Press Enter at all prompts. No passphrase is needed provided you do not distribute your key files.

$ ssh-keygen -t rsa -C "your_email@youremail.com"


5. Update your PATH
Ubuntu Linux does not automatically add the Ruby binaries to the PATH. Add this line to your ~/.bash_profile or ~/.bashrc file.

export PATH=/var/lib/gems/1.8/bin:$PATH


6. Install the Jive Apps Command Line Tools Gem


From the Terminal, install the gem by running this command:

$ sudo gem install jiveapps

 Now you are ready to start creating apps.

Thanks,
Vishal Vyas

How to Install docker-compose CentOS7

 Install Docker-compose on CentOs7 Linux. yum install -y epel-release yum install -y python-pip pip install --upgrade pip pip install ...