Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Wednesday, 18 September 2013

Oracle Database Starting Error - ORA-00845: MEMORY_TARGET not supported on this system [SOLVED]


Guys

I got this error when I start oracle instance.

"ORA-00845: MEMORY_TARGET not supported on this system"

Some of the forum said about of tmpfs size which is mounted on /dev/shm.
Then I saw this post.
So I suspected it isn't enough space of share memory.

I checked with "df" command.


That space is currently amount mounted on /dev/shm. So I think that 5.9G isn't enough.
It's need to set a mount which over 5.9G manually.

Then I changed at /etc/fstab  as below. (changed "default" to "size=6g" )


Then, have restarted the host and checked the size with "df" again.


Then , try to start the instance again.

#sqlplus / as sysdba
SQL>startup

This time nothing error occur. :)

>>

UTEE

 Ref: http://www.oracle-base.com/articles/11g/automatic-memory-management-11gr1.php

Tuesday, 17 September 2013

Oracle Listener Can't Start Error - Linux Error: 29: Illegal seek [SOLVED]

Hi Guys,

I'm want to share how to solve to Oracle Listener Error "Linux Error: 29: Illegal seek" .

This Error occur when starting listener on linux box.



This Listener must support to the remote connection also.
On the First, I checked on the /etc/hosts file.

If I configured to /etc/hosts file with " 127.0.0.1 localhost localhost.localdomain" (only one-line), I can start oracle listener as well.
But If I put other hostname for remote connection at /etc/hosts like "192.168.1.2 localhost localhost.localdomain" , I can't start listener anymore and got above error.

I tried a few changes on /etc/hosts. But It isn't working.
Then, I read at the oracle wiki about of listener. I decided to change the name at the listener.ora file.

So go to the listener file location .

 I changed as putting IP (192.168.1.2) at HOST.


Then, save the file and start the listener.

#lsnrctl start

It's working without any error. :)

>>

UTEE

Ref : http://docs.oracle.com/cd/E11882_01/network.112/e10836/listenercfg.htm


Friday, 19 July 2013

DB2 972 x86_64 installaing on Centos 6.4 x86_64

I'll installing DB2 on Centos 6.4. Before start installation step, must follow below step:

Do update

#yum update

Install "libstdc++.so.6" Note: This 32bit library file is needed.

#yum install libstdc++.so.6

Disable the firewall,

#service iptables stop
#service ip6tables stop

I'm uploaded the DB2 tar.gz file under /mnt. and extract the file.

#cd /mnt
#tar xzvf db2.tar.gz

Now to start to install db2 execute the  "db2setup"

#cd  db2
#./db2setup

Then, it will pop-up the "DB2 Setup Launchpad".


You may be check the installation requirements by clicking on the "Installation Requirement".

To start the installation, click "Install a Product" and click "Install New".



Then, follow the instruction,  click "Next" , choose "Accept" and click "Next" .
At the Installation Type, choose the "Typical" , you can check the features as clicking " View Features"



At Installation action, choose default and click "Next"

Installation directory, leave by the default and click "Next"

 At SA MP section, I'm not need the SA MP, So choose "Do not install SA MP" and click "Next"


At "DAS user", specify the db2 user password, then click "Next"



Then, Instance Setup, choose "Create a DB instance" and click "Next"

At the partitioning options, choose default (Single partition instance) and click "Next" 

At Instance owning section, specify the password for instance owner, then click "Next"
 


And specify the password for fenced user and click "Next"


At Tools catalog, choose default (Do not prepare the tools catalog) and click "Next"

Then, you may be setup the smtp notification at "Notification setup" section, and click "Next"

After that, put the notification contact at "Contact" section and click "Next"

Finally, at the Summary, click "Finish"


Note:
After the installation, you must backup the "Summary" which will show the all of the specified data for db2 server installation. Summary file location is "/root/db2ese.rsp"

 Now server is installing.


Now DB2 server installation is finished.


 >>

UTEE


Ref : http://publib.boulder.ibm.com


Thursday, 4 July 2013

FUNNY Linux COMMANDs ..

This is the Just Share What I founded a post of Funny Linux Commands ... :)

 

1. Command: sl (Steam Locomotive)

You might be aware of command ‘ls‘ the list command and use it frequently to view the contents of a folder but because of miss-typing sometimes you would result in ‘sl‘, how about getting a little fun in terminal and not “command not found“.

Install sl

root@tecmint:~# apt-get install sl 		(In Debian like OS)
root@tecmint:~# yum -y install sl 		(In Red Hat like OS)
Output
root@tecmint:~# sl
sl funny command
sl command
This command works even when you type ‘LS‘ and not ‘ls‘.

2. Command: telnet

No! No!! it is not as much complex as it seems. You would be familiar with telnet. Telnet is a text-oriented bidirectional network protocol over network. Here is nothing to be installed. What you should have is a Linux box and a working Internet.
root@tecmint:~# telnet towel.blinkenlights.nl
telnet command
telnet command

3. Command: fortune

what about getting your random fortune, sometimes funny in terminal.

Install fortune

root@tecmint:~# apt-get install fortune 	(for aptitude based system)
root@tecmint:~# yum install fortune 		(for yum based system)
root@tecmint:~# fortune

You're not my type.  For that matter, you're not even my species!!!
Future looks spotty.  You will spill soup in late evening.
You worry too much about your job.  Stop it.  You are not paid enough to worry.
Your love life will be... interesting.

4. Command: rev (Reverse)

It reverse every string given to it, is not it funny.
root@tecmint:~# rev

123abc 
cba321 

xuniL eb ot nrob
born to be Linux

5. Command: factor

Time for some Mathematics, this command output all the possible factors of a given number.
root@tecmint:~# factor

5 
5: 5 

12 
12: 2 2 3 

1001 
1001: 7 11 13 

5442134 
5442134: 2 2721067

6. Command: script

OK fine this is not a command and a script but it is nice.
root@tecmint:~# for i in {1..12}; do for j in $(seq 1 $i); do echo -ne $i×$j=$((i*j))\\t;done; echo;done 

1×1=1	
2×1=2	2×2=4	
3×1=3	3×2=6	3×3=9	
4×1=4	4×2=8	4×3=12	4×4=16	
5×1=5	5×2=10	5×3=15	5×4=20	5×5=25	
6×1=6	6×2=12	6×3=18	6×4=24	6×5=30	6×6=36	
7×1=7	7×2=14	7×3=21	7×4=28	7×5=35	7×6=42	7×7=49	
8×1=8	8×2=16	8×3=24	8×4=32	8×5=40	8×6=48	8×7=56	8×8=64	
9×1=9	9×2=18	9×3=27	9×4=36	9×5=45	9×6=54	9×7=63	9×8=72	9×9=81	
10×1=10	10×2=20	10×3=30	10×4=40	10×5=50	10×6=60	10×7=70	10×8=80	10×9=90	10×10=100	
11×1=11	11×2=22	11×3=33	11×4=44	11×5=55	11×6=66	11×7=77	11×8=88	11×9=99	11×10=110	11×11=121	
12×1=12	12×2=24	12×3=36	12×4=48	12×5=60	12×6=72	12×7=84	12×8=96	12×9=108	12×10=120	12×11=132	12×12=144

7. Command: Cowsay

An ASCII cow in terminal that will say what ever you want.

Install Cowsay

root@tecmint:~# apt-get install cowsay 		(for Debian based OS)
root@tecmint:~# yum install cowsay		(for Red Hat based OS)
Output
root@tecmint:~# cowsay I Love nix 

 ____________
< I Love nix >
 ------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
How about pipelineing ‘fortune command‘, described above with cowsay?
root@tecmint:~# fortune | cowsay 

 _________________________________________
/ Q: How many Oregonians does it take to  \
| screw in a light bulb? A: Three. One to |
| screw in the light bulb and two to fend |
| off all those                           |
|                                         |
| Californians trying to share the        |
\ experience.                             /
 -----------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
Note: ‘|‘ is called pipeline instruction and it is used where the output of one command needs to be the input of another command. In the above example the output of ‘fortune‘ command acts as an input of ‘cowsay‘ command. This pipeline instruction is frequently used in scripting and programming.
xcowsay is a graphical program which response similar to cowsay but in a graphical manner, hence it is X of cowsay.
apt-get insatll xcowsay
yum install xcowsay
Output
root@tecmint:~# xcowsay I Love nix
install xcowsay
xcowsay command
cowthink is another command just run “cowthink Linux is sooo funny” and see the difference in output of cowsay and cowthink.
apt-get insatll cowthink
yum install cowthink
Output
root@tecmint:~# cowthink ....Linux is sooo funny
 _________________________
( ....Linux is sooo funny )
 -------------------------
        o   ^__^
         o  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

8. Command: yes

It is funny but useful as well, specially in scripts and for System Administrators where an automated predefined response can be passed to terminal or generated.
root@tecmint:~# yes I Love Linux

I Love Linux
I Love Linux
I Love Linux
I Love Linux
I Love Linux
I Love Linux
I Love Linux
I Love Linux
I Love Linux
I Love Linux
I Love Linux
I Love Linux
Note: (Till you interrupt i.e ctrl+c).

9. Command: toilet

what? Are u kidding, huhh no! Definitely not, but for sure this command name itself is too funny, and I don’t know from where this command gets it’s name.

Install toilet

root@tecmint:~# apt-get install toilet 
root@tecmint:~# yum install toilet
Output
root@tecmint:~# toilet tecmint 

mmmmmmm                        "             m                               
   #     mmm    mmm   mmmmm  mmm    m mm   mm#mm          mmm    mmm   mmmmm 
   #    #"  #  #"  "  # # #    #    #"  #    #           #"  "  #" "#  # # # 
   #    #""""  #      # # #    #    #   #    #           #      #   #  # # # 
   #    "#mm"  "#mm"  # # #  mm#mm  #   #    "mm    #    "#mm"  "#m#"  # # #
It even offers some kind of color and fonts style.
root@tecmint:~# toilet -f mono12 -F metal Tecmint.com
install toilet command
toilet command
Note: Figlet is another command that more or less provide such kind of effect in terminal.

10. Command: cmatrix

You might have seen Hollywood movie ‘matrix‘ and would be fascinated with power, Neo was provided with, to see anything and everything in matrix or you might think of an animation that looks alike Hacker‘s desktop.

Install cmatrix

root@tecmint:~# apt-get install cmatrix
root@tecmint:~# yum install cmatrix
Output
root@tecmint:~# cmatrix
cmatrix command
cmatrix command

11. Command: oneko

OK so you believe that mouse pointer of Linux is the same silly black/white pointer where no animation lies then I fear you could be wrong. “oneko“ is a package that will attach a “Jerry“ with you mouse pointer and moves along with you pointer.

Install cmatrix

root@tecmint:~# apt-get install oneko
root@tecmint:~# yum install oneko
Output
root@tecmint:~# oneko
install oneko
oneko command
Note: Once you close the terminal from which oneko was run, jerry will disappear, nor will start at start-up. You can add the application to start up and continue enjoying.

12. Fork Bomb

This is a very nasty piece of code. Run this at your own risk. This actually is a fork bomb which exponentially multiplies itself till all the system resource is utilized and the system hangs. (To check the power of above code you should try it once, but all at your own risk, close and save all other programs and file before running fork bomb).
root@tecmint:~# :( ){ :| :& }:

13. Command: while

The below “while” command is a script which provides you with colored date and file till you interrupt (ctrl + c). Just copy and paste the below code in terminal.
root@tecmint:~# while true; do echo "$(date '+%D %T' | toilet -f term -F border --gay)"; sleep 1; done
Linux while command
Linux while command
Note: The above script when modified with following command, will gives similar output but with a little difference, check it in your terminal.
root@tecmint:~# while true; do clear; echo "$(date '+%D %T' | toilet -f term -F border --gay)"; sleep 1; done

14. Command: espeak

Just Turn the Knob of your multimedia speaker to full before pasting this command in your terminal and let us know how you felt listening the god’s voice.

Install espeak

root@tecmint:~# apt-get install espeak
root@tecmint:~# yum install espeak
Output
root@tecmint:~# espeak "Tecmint is a very good website dedicated to Foss Community"

15. Command: aafire

How about fire in your terminal. Just type “aafire” in the terminal, without quotes and see the magic. Press any key to interrupt the program.

Install aafire

root@tecmint:~# apt-get install libaa-bin
Output
root@tecmint:~# aafire
install aafire
aafire command

16. Command: bb

First install “apt-get insatll bb” and then, type “bb” in terminal and see what happens.
root@tecmint:~# bb
bb command
bb command

17. Command: url

Won’t it be an awesome feeling for you if you can update you twitter status from command line in front of your friend and they seems impressed. OK just replace username, password and your status message with your’s username, password and “your status message“.
root@tecmint:~# url -u YourUsername:YourPassword -d status="Your status message" http://twitter.com/statuses/update.xml

18. ASCIIquarium

How it will be to get an aquarium in terminal.
root@tecmint:~# apt-get install libcurses-perl
root@tecmint:~# cd /tmp 
root@tecmint:~# wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz
root@tecmint:~# tar -zxvf Term-Animation-2.4.tar.gz
root@tecmint:~# cd Term-Animation-2.4/
root@tecmint:~# perl Makefile.PL &&  make &&   make test
root@tecmint:~# make install
Install ASCIIquarium
Now Download and Install ASCIIquarium.
root@tecmint:~# cd /tmp
root@tecmint:~# wget http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz
root@tecmint:~# tar -zxvf asciiquarium.tar.gz
root@tecmint:~# cd asciiquarium_1.1/
root@tecmint:~# cp asciiquarium /usr/local/bin
root@tecmint:~# chmod 0755 /usr/local/bin/asciiquarium
And finally run “asciiquarium” or “/usr/local/bin/asciiquarium“ in terminal without quotes and be a part of magic that will be taking place in front of your eyes.
root@tecmint:~# asciiquarium
install aquarium
aquarium command

19. Command: funny manpages

First install “apt-get install funny-manpages” and then run man pages for the commands below. Some of them may be 18+, run at your own risk, they all are too funny.
baby
celibacy
condom
date
echo
flame
flog
gong
grope, egrope, fgrope 
party 
rescrog 
rm
rtfm
tm
uubp
woman (undocumented)
xkill 
xlart 
sex 
strfry
root@tecmint:~# man baby

20. Linux Tweaks

It is time for you to have some one liner tweaks.
root@tecmint:~# world

bash: world: not found
root@tecmint:~# touch girls\ boo** 

touch: cannot touch `girls boo**': Permission denied
root@tecmint:~# nice man woman

No manual entry for woman
root@tecmint:~# ^How did the sex change operation go?^ 

bash: :s^How did the sex change operation go?^ : substitution failed
root@tecmint:~# %blow 

bash: fg: %blow: no such job
root@tecmint:~# make love 

make: *** No rule to make target `love'.  Stop.
$ [ whereis my brain?                    
sh: 2: [: missing ]
% man: why did you get a divorce? 
man:: Too many arguments.
% !:say, what is saccharine? 
Bad substitute.
server@localhost:/srv$ \(- 
bash: (-: command not found
Linux is sexy: who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep (If you know what i mean)
There are certain other but these don’t work on all the system and hence not included in this article. Some of them are man dog , filter, banner, etc.
Have fun, you can say me thanks later :) yup your comment is highly appreciated which encourages us write more. Tell us which command you liked the most. Stay tuned i will be back soon with another article worth reading.

Credit to  

 >>

UTEE


Ref : http://www.tecmint.com/20-funny-commands-of-linux-or-linux-is-fun-in-terminal/

Sunday, 20 January 2013

Solaris 10 Internet not working problem with Web Browser

Solaris 10 Internet not working problem with Web Browser

Problem is here ..

I configured the static IP on Solaris 10. And I tried to browse the website on browser of Solaris 10. But I can't browse any website on the browser.






So Tested the "nslookup" on terminal , It's ok.





Ping to Google IP, It's return back "alive".





 So I tried search on the google/forum for this problem.

"This is what i founded and that is the perfect answer for this problem."


Yes , There have two things that you may be forget when you setting up the IP configuration on Solaris .

1) Must be sure to add nameserver on /etc/resolv.conf



 2) And Most of the people are forget to put the entry called "dns" at behind of "hosts" line in the /etc/nsswitch.conf . I am also no idea to do this before  :P



Ok now you may be restart the network service or reboot the system.

#svcadm restart network/physical


>>

UTEE


Ref :Forums




Friday, 18 January 2013

Configuration of Static IP on Solaris 10

Configuring the static ip on Solaris 10 is different with the other linux. You have to configure a few files.

Firstly you must know your interface name of your solaris. You can get your interface name with following command.

#dladm show-link


If your solaris is configured with the DHCP, you must delete file /etc/dhcp.interface (/etc/dhcp.e1000g0). Now you have to configure with below files :

/etc/hosts
/etc/hostname.interface
/etc/nodename
/etc/inet/hosts
/etc/inet/ipnodes
/etc/defaultrouter

Add the IP and hostname at /etc/hosts


Add IP and Netmask at /etc/hostname.interface (/etc/hostname.e1000g0)


Add the hostname at /etc/nodename , If nodename file isn't available at /etc by the default, create byself.


/etc/inet/hosts and /etc/inet/ipnodes will updated automatically if you updated your hostname on /etc/hosts. If not, add the same entries as /etc/hosts.

Add default gateway ip at /etc/defaultrouter, If defaultrouter file isn't available at /etc by the default, create byself.


Now, restart the Network service using following command or reboot the server for the changes to take effect.

# svcadm restart network/physical



 >>

UTEE

Ref: Forums

Monday, 10 December 2012

libc.so.1: version `SUNW_1.22.7' not found (Fixed)

    I faced this problem when I'm installing rsync on  Oracle Solaris 10 9/10 s10x_u9wos_14a X86. Even installed the all of the dependencies packages of rsync, errors is still there. And I tried to get solution from some of the forum but they said this is the major Bug and all are advised to patching or upgrade to Oracle Solaris 10 8/11 s10x_u10wos_17b X86. This error made me sick a few days :)
    But Finally I fixed the problem without patching and upgrading.

Solution :
    Don't install the "rsync-3.0.9-sol10-x86-local.gz" and Download the " rsync-3.0.9.tar.gz" and compile the package yourself then install it.

Here is the step by step how I fixed the problem >>>>

Requirements Packages.

rsync-3.0.9.tar.gz
popt-1.16-sol10-x86-local.gz
libiconv-1.14-sol10-x86-local.gz
libintl-3.4.0-sol10-x86-local.gz
libgcc-3.3-sol10-intel-local.gz
gcc-3.3.2-sol10-intel-local.gz
make-3.82-sol10-x86-local.gz

All of the packages can be download at www.sunfreeware.com

Installations Dependencies
popt-1.16-sol10-x86-local.gz

#gunzip popt-1.16-sol10-x86-local.gz
#pkgadd -G -d popt-1.16-sol10-x86-local
-------------------
libiconv-1.14-sol10-x86-local.gz

#gunzip libiconv-1.14-sol10-x86-local.gz
#pkgadd -G -d libiconv-1.14-sol10-x86-local
-------------------
libintl-3.4.0-sol10-x86-local.gz

#gunzip libintl-3.4.0-sol10-x86-local.gz
#pkgadd -G -d libintl-3.4.0-sol10-x86-local
-------------------
libgcc-3.3-sol10-intel-local.gz

#gunzip libgcc-3.3-sol10-intel-local.gz
#pkgadd -G -d libgcc-3.3-sol10-intel-local
-------------------
gcc-3.3.2-sol10-intel-local.gz

#gunzip gcc-3.3.2-sol10-intel-local.gz
#pkgadd -G -d gcc-3.3.2-sol10-intel-local
-------------------

After Installation, Check Library path

#ldd /usr/local/bin/gcc
        libc.so.1 =>     /lib/libc.so.1
        libm.so.2 =>     /lib/libm.so.2

#which gcc
no gcc in /usr/sbin /usr/bin   <<<------If Not Found

If not found, Add below two line in the /etc/profile with editing command "#gedit /etc/profile" or "vi /etc/profile"
PATH="$PATH:$HOME/bin:/usr/sbin:/usr/bin:/usr/local/bin:/lib/amd64:/lib:/usr/local/lib:"
export PATH

Recheck Library gcc

# which gcc
/usr/local/bin/gcc

Installation Make and Rsync

make-3.82-sol10-x86-local.gz

#gunzip make-3.82-sol10-x86-local.gz
#pkgadd -G -d make-3.82-sol10-x86-local
-------------------

#gunzip rsync-3.0.9.tar.gz
#tar xvf rsync-3.0.9.tar
#cd rsync-3.0.9.tar
#./configure
#make <<<<---------------- If Face with error check with exception step
#make install

Exception Step

Go to under below folder and execute mkheaders
#cd /usr/local/lib/gcc-lib(or)gcc/i386-pc-solaris2.10/3.3.2/install-tools
Execute the "mkheaders" file
#./mkheaders

Go back to under rsync folder and follow below step
#make clean
#./configure
#make
#make install

Checking installation of Rsync

# which rsync
/usr/local/bin/rsync

#rsync -v
rsync  version 3.0.9  protocol version 30
Copyright (C) 1996-2011 by Andrew Tridgell, Wayne Davison, and others.

# rsync -v <<<---------- If Face with error, follow step
ld.so.1: rsync: fatal: libiconv.so.2: open failed: No such file or directory
Killed

Check libiconv.so.2 path and copy into /lib folder

# pkgchk -LP libiconv |grep libiconv.so.2
/usr/local/lib/libiconv.so=libiconv.so.2.5.1 s none SMCliconv
/usr/local/lib/libiconv.so.2=libiconv.so.2.5.1 s none SMCliconv
/usr/local/lib/libiconv.so.2.5.1 f none 0755 bin bin 981967 8854 1334657763 SMClico

Copy the /usr/local/lib/libicopvs /usr/lib/libc.so.1nv.so.2 file under /lib folder

# cp /usr/local/lib/libiconv.so.2 /lib

Now you can successfully installed the rsync and ready to use !!!

You can check "SUNW_1.22.7" is still missing but now rsync is working well.. :)

#  pvs /usr/lib/libc.so.1
        libc.so.1;
        SUNW_1.23;
        SUNW_1.22.6;
        SUNW_1.22.5;
        SUNW_1.22.4;

So If you get this error when you are installing the other packages on Oracle Solaris 10 9/10 s10x_u9wos_14a X86, you should compile the package by yourself and install it. And don't forget to install the other dependencies packages. For me, "wget" installation also fixed with manually compiling.

Have a Nice Day .. :)

>>

UTEE



Wednesday, 17 October 2012

Getting Performance Result of Your Server (Shared, VPS, Dedicated or Cloud)



Server တလံုးရဲ့ Performance, I/O, Bandwidth, Monthly Cost..  ေတြ ဆိုတာ ဂ႐ုမစိုက္လို႕ မရဘူးဗ်.. ကိုယ္ရဲ့ လိုအပ္ခ်က္နဲ႕ Server က support ေပးႏိုင္မႈကို ခ်ိန္ကိုက္ အသံုးျပဳမယ္ဆိုရင္ေတာ့ End-User ကို အေကာင္းဆံုး support ေပးႏိုင္မွာပါ.

ဒီမွာေတာ့ ကိုယ္ရဲ့ လက္ရွိ Server က တျခား Server/host ေတြနဲ႕ဆိုရင္ဘယ္ေလာက္ ကြာတယ္ဘာညာကို တိုင္းတာဖို႕  ဒီ Benchmark  ဆိုတဲ့ script ကိုသံုးျပီး ခ်ိန္ကိုက္ၾကည့္ပါမယ္.. Result ထြတ္လာျပီးရင္ေတာ့ ကိုယ္ရဲ့ I/O Resource ေတြက လိုအပ္ခ်က္နဲ႕ ကိုက္ညီမႈ ရွိမရွိ ကို တိုင္းတာ ဆုံးျဖတ္ ႏိုင္ျပီေပါ့

ကိုယ္ဟာ Performance, I/O, Bandwidth, Monthly Cost.. စတဲ့ လိုအပ္ခ်က္ ေတြနဲ႕ Server တခု တည္ေထာင္ ေတာ့မယ္ ဆိုရင္လဲ ဘယ္ hosting ဘယ္ type  က ကိုယ္ရဲ့ လိုအပ္ခ်က္နဲ႕ ကိုက္ညီ ႏိုင္ မလဲဆို တာကို ဒီေနရာမွာ ေယဘူယ် ၾကည့္ႏိုင္ ပါတယ္...

 ကဲ စျပီး Run ဖို႕ အတြက္ Script  ကို ဒီ Link ကေန Download လုပ္လိုက္ပါ..



 ျပီးရင္ မိမိ Run မဲ့ Server  ေပၚ upload လုပ္ပါ ျပီးရင္ Package ကို Unzip လုပ္ပါမယ္..


ျပီးရင္ script ကို execute လုပ္လို႕ရေအာင္ permission ကို change ေပးရပါမယ္..
# cd Crowd9-Benchmark-4ccfe8a/
# chmod +x *


Script ကို စ Run  ပါမယ္..
 # ./sb.sh 'localhost' 'testbenchmark' 'yourmail@mail.com' '\\$100/mth'
localhsot = your hostname
testbenchmark = description of server name
yourmail@mail.com = your email address
\\$100/mth = Monthly Cost


Script ကို စျပီး Run လုပ္လိုက္တာနဲ႕ Server ေပၚမွာ Script အတြက္ လိုအပ္ Package ေတြကိုသူ႕ဟာသူ Install  လုပ္ပါလိမ့္မယ္..
Note : Running Time ကေတာ့ နာရီနဲ႕ကို ခ်ီျပီး ၾကာပါလိမ့္မယ္..
Note : Result (Online/txt) ကို Script Run တုန္းက ထည့္ခဲ့တဲ့ Email Address ဆီကို sent ပါလိမ့္မယ္


သင့္ရဲ့ Server BenchMark  က ဘယ္ေလာက္ရွိလဲ ... ???? :)

>>

UTEE


Ref : http://serverbear.com/
      : https://github.com/Crowd9/Benchmark




Tuesday, 25 September 2012

Installation of Hyperic Application & System Monitoring



သင့္ရဲ့  virtual, physical, and cloud infrastructures ေတြရဲ့ အမ်ိဳးမ်ိဳးေသာ availability, performance, utilization, and throughput ေတြအတြတ္ Monitoring  လုပ္ဖို႕ အသံုး ျပဳပါတယ္

Description
Hyperic is application monitoring and performance management for virtual, physical, and cloud infrastructures. Auto-discover resources of 75+ technologies, including vSphere, and collect availability, performance, utilization, and throughput metrics.



Features

  • vSphere auto-discovery of all components of virtualized applications
  • Automatically discovers, monitors, and manages software and network resources
  • Monitors apps on any platform, including Unix, Linux, Windows, Solaris, AIX, HPUX, VMware, and Amazon Web Services
  • Built-in support for 75 common components—including databases, application servers, middleware, web servers, network devices and more
  • Optimized for virtual environments with integration with vCenter and vSphere
Requirements

  • 1GHz or higher Pentium 4, or equivalent (2x2.4GHz Pentium Xeon or equivalent recommended)
  • 1GB RAM (4 or more GB recommended)
  • 1-5GB free disk space
  • Supported Operating System [Linux, Solaris 10 or higher, Mac OS X(Intel x86), Window 2003 Server, Window 2008 Server, Window 2008, Window Vista, Windows 7]
  • Oracle Java JDK 7 update 04
  • VMware vFabric Hyperic 4.6.6 Server and Agent
  • Supported Database Product [MySQL, Orcale, PostgreSQL] and can use the build-in database for production deployments
Notes: For Linux, Unix-based platforms, the libxp.so.6 X library is required.

Download Link
http://www.hyperic.com/hyperic-open-source-download

ဒီမွာေတာ့ Centos 6 (64bit)  ေပၚမွာ Install လုပ္ပံုကို ေဖာ္ျပမွာျဖစ္ပါတယ္..

Current OS Setting
  • CentOS 6 (64 bit)
  • i7 CPU 950 @ 3.07GHz
  • 2GB RAM
  • 30GB HDD
  • 100 MBps Network Cards
  • java-1.6.0-openjdk-devel-1.6.0.0-1.45.1.11.1.el6.x86
Notes: OS virtually installed on ESXi .

အရင္ဆုံး OS installation ျပီးျပီ ဆိုတာနဲ႕ Update လုပ္ဖို႕ မေမ့သင့္ပါ
#yum update

လိုအပ္တဲ့ Packages ေတြကို Download လုပ္ျပီး Server ရဲ့ အဆင္ေျပတဲ့ ေနရာမွာ ခဏ တင္ထားပါမယ္.. ဒီမွာေတာ့ /mnt မွာထားပါတယ္..


လိုအပ္တဲ့ libxp library  ကို install လုပ္ပါမယ္
#yum install libXp


User တခု Add ပါမယ္.. Username: hyperic | Home Directory location: /home/hyperic
#useradd hyperic


ျပီးေနာက္ အေစာက /mnt ေအာက္က packages ေတြကို hyperic user ရဲ့ home directory (/home/hyperic) ေအာက္ထဲကို ေရႊ႕လိုက္ပါမယ္...
#mv /mnt/* /home/hyperic


 Packages ေတြရဲ့ Owner ကို Hyperic user သို႕ change ေပးပါ
#chown hyperic:hyperic *


package ေတြကို extract လုပ္ပါမယ္..
#tar -zxvf hyperic-hq-installer-4.6.6-x86-64-linux.tar.gz
#tar -xvf hyperic-hq-agent-4.6.6-x86-64-linux.tar



စျပီး Server ကို install လုပ္ပါမယ္
#cd hyperic-hq-installer-4.6.6
#./setup.sh


Note: ဒီမွာေတာ့ Default Build-in Database နဲ႕ပဲ အသံုးျပဳမွာ ဆိုေတာ့ Script  အေနာက္မွာ ဘာ option  မွမပါပဲ install လုပ္ပါတယ္. အကယ္၍ database ကို mysql သံုးမယ္ဆိုရင္ေတာ့ option အေနနဲ႕ -mysql ဆိုျပီး run လုပ္ရပါမယ္ (#./setup.sh -mysql) MySql server ကို install လုပ္ျပီး database ကို create လုပ္ထားဖို႕ေတာ့လိုပါမယ္.. Default မသံုးဘူး တျခား database နဲ႕ အသံုးျပဳမယ္ဆိုရင္ေတာ့ link ပါ PDF မွာ ဆက္လက္ ၾကည့္ပါရန္..

Script ကို run လိုက္ျပီဆိုတာနဲ႕ ေအာက္က steps ေတြအတိုင္း သြားပါမယ္ ..

##########
[hyperic@centos02 hyperic-hq-installer-4.6.6]$ ./setup.sh
Unpacking JRE to temporary directory /tmp/jre
Please ignore references to missing tools.jar
Unable to locate tools.jar. Expected to find it in /tmp/lib/tools.jar
Loading taskdefs...
Taskdefs loaded
Initializing Hyperic HQ 4.6.6 Installation...
Choose which software to install:
1: Hyperic HQ Server
2: Hyperic HQ Agent
You may enter multiple choices, separated by commas.
1
HQ server installation path [default '/home/hyperic']:
/home/hyperic/hyperic-hq-installer-4.6.6
Enter the fully qualified domain name of the SMTP server that HQ will use to send email messages [default '192.168.1.138']:
enter
Enter the email address that HQ will use as the sender for email messages [default 'hqadmin@168.1.138']:
enter
Choices:
        1: Yes
        2: No
Would you like to use an auto generated encryption key to encrypt the database password? [default '1']:
enter
What should the username be for the initial admin user? [default 'hqadmin']:
enter
What should the password be for the initial admin user?: type password
(again): type password
What should the email address be for the initial admin user? [default 'hqadmin@168.1.138']:
enter
Loading install configuration...
Install configuration loaded.
Preparing to install...
Validating server install configuration...
Checking server webapp port...
Checking server secure webapp port...
Verifying admin user properties
Validating server DB configuration...
Installing the server...
Unpacking server to: /home/hyperic/hyperic-hq-installer-4.6.6...
Creating server configuration files...
Using "small" installing profile...
Copying binaries and libraries to server installation...
Copying server configuration file...
Copying server db-upgrade files...
Copying server libs...
Setting up server database...

Now login to another terminal as root and execute this script:

    /home/hyperic/hyperic-hq-installer-4.6.6/installer/data/hqdb/tune-os.sh


This script sets up the proper shared memory settings to run the
built-in database.

Press Enter after you run the script to continue this installation.


ဒီေနရာမွာ enter ႏွိပ္ျပီး ဆက္ မသြားေသးပဲ တျခား terminal  တခု ဖြင့္ျပီး root user နဲ႕ ဒီ /home/hyperic/hyperic-hq-installer-4.6.6/installer/data/hqdb/tune-os.sh ကို ေပးရပါမယ္
# sh /home/hyperic/hyperic-hq-installer-4.6.6/installer/data/hqdb/tune-os.sh


 Root user နဲ႕ script ကို run ျပီး ဆိုရင္ေတာ့ install လုပ္ေနတဲ့ terminal ကိုျပန္သြားျပီး enter ႏွိပ္ေပးရပါမယ္.. သူ႕ဟာသူ လိုအပ္ သလို လုပ္ေဆာင္ သြားပါလိမ့္မယ္..

Setting up JDBC driver...
Copying database files...
Configuring database...
Loading taskdefs...
Taskdefs loaded
Starting repopulation of configuration table...
Waiting for built-in database to start (on port 9432)...
Starting built-in database...
Preparing database...
Loading taskdefs...
Taskdefs loaded
Loading taskdefs...
Taskdefs loaded
Loading taskdefs...
Taskdefs loaded
Waiting for server to stop...
Stopping built-in database...
Built-in database stopped.
Installing the server JRE ...
Unpacking JRE amd64-linux-1.6_30.tar.gz to: /home/hyperic/hyperic-hq-installer-4.6.6/server-4.6.6...
Setting permissions on /home/hyperic/hyperic-hq-installer-4.6.6/server-4.6.6...
Setting permissions on server binaries...
Fixing line endings on text files...
--------------------------------------------------------------------------------
Installation Complete:
  Server successfully installed to: /home/hyperic/hyperic-hq-installer-4.6.6/server-4.6.6
--------------------------------------------------------------------------------


 You can now start your HQ server by running this command:

  /home/hyperic/hyperic-hq-installer-4.6.6/server-4.6.6/bin/hq-server.sh start (server  ကို run ရန္ script location)

 Note that the first time the HQ server starts up it may take several minutes
 to initialize.  Subsequent startups will be much faster.

 Once the HQ server reports that it has successfully started, you can log in
 to your HQ server at:
(Server ကို Access လုပ္ရန္ Information)
  http://192.168.1.138:7080/
  username: hqadmin
  password: xxxxxxxx


 To change your password, log in to the HQ server, click the "Administration"
 link, choose "List Users", then click on the "hqadmin" user.

Setup completed.
A copy of the output shown above has been saved to:
  /home/hyperic/hyperic-hq-installer-4.6.6/installer/logs/hq-install.log

Deleting temporary JRE
##########
ဒါဆို ရင္ေတာ့ Hyperic Server Installation  ျပီးသြားပါျပီ..
ဆက္လက္ျပီး Hyperic Agent ကို Install လုပ္ပါမယ္..

Server Install လုပ္တုန္းက script ကိုပဲျပန္ run ပါမယ္
#cd hyperic-hq-installer-4.6.6
#./setup.sh

#############
[hyperic@centos02 hyperic-hq-installer-4.6.6]$ ./setup.sh
Unpacking JRE to temporary directory /tmp/jre
Please ignore references to missing tools.jar
Unable to locate tools.jar. Expected to find it in /tmp/lib/tools.jar
Loading taskdefs...
Taskdefs loaded
Initializing Hyperic HQ 4.6.6 Installation...
Choose which software to install:
1: Hyperic HQ Server
2: Hyperic HQ Agent
You may enter multiple choices, separated by commas.
2
HQ agent installation path [default '/home/hyperic']:
/home/hyperic/hyperic-hq-agent-4.6.6
Loading install configuration...
Install configuration loaded.
Preparing to install...
Validating agent install configuration...
Installing the agent...
Looking for previous installation
Unpacking /home/hyperic/hyperic-hq-installer-4.6.6/hyperic-hq-agent-4.6.6-x86-64-linux.tar.gz to: /home/hyperic/hyperic-hq-agent-4.6.6/agent-4.6.6...
Setting permissions on /home/hyperic/hyperic-hq-agent-4.6.6/agent-4.6.6...
Setting permissions on agent binaries...
Fixing line endings on text files...
--------------------------------------------------------------------------------
Installation Complete:
  Agent successfully installed to: /home/hyperic/hyperic-hq-agent-4.6.6
--------------------------------------------------------------------------------
You can now start your HQ agent by running this command:

       /home/hyperic/hyperic-hq-agent-4.6.6/agent-4.6.6/bin/hq-agent.sh start ( agent ကို run ရန္ script ပါ )
Setup completed.
A copy of the output shown above has been saved to:
  /home/hyperic/hyperic-hq-installer-4.6.6/installer/logs/hq-install.log

Deleting temporary JRE
############
Hyperic Agent ကို Installation ျပီးပါျပီ..

Server  နဲ႕ Agent  ကို အခ်ိတ္အဆက္ လုပ္ပါမယ္..

အရင္ဦးဆုံး Server ကို run ပါမယ္..
# sh /home/hyperic/hyperic-hq-installer-4.6.6/server-4.6.6/bin/hq-server.sh start


ျပီးရင္ Agent ကို configure လုပ္ဖို႕ Agent Script ကို ပါမယ္..

#sh /home/hyperic/hyperic-hq-agent-4.6.6/agent-4.6.6/bin/hq-agent.sh start

############
[hyperic@centos02 /]$ sh  /home/hyperic/hyperic-hq-agent-4.6.6/agent-4.6.6/bin/hq-agent.sh start
Starting HQ Agent...... running (5530).
[ Running agent setup ]
What is the HQ server IP address: 127.0.0.1 ( Server ေရာ Agent ေရာ တေနရာထဲမွာ တင္ေတာ့ Server ကို 127.0.0.1  ပဲ type ပါမယ္)
Note: Agent ကို တျခား Machine တေနရာမွာ တင္ျပီး ခ်ိတ္ဆက္ ဖို႕ support မေပးေသးပါ
Should Agent communications to HQ always be secure [default=yes]: enter
What is the HQ server SSL port [default=7443]: enter
- Testing secure connection ... Success
What is your HQ login [default=hqadmin]: enter
What is your HQ password: type password
What IP should HQ use to contact the agent [default=192.168.1.138]: enter
What port should HQ use to contact the agent [default=2144]: enter
- Received temporary auth token from agent
- Registering agent with HQ
The server to agent communication channel is using a self-signed certificate and could not be verified
Are you sure you want to continue connecting? [default=no]: yes
- HQ gave us the following agent token
    1348630693911-7668705443229188126-6509605970126664619
- Informing agent of new HQ server
- Validating
- Successfully setup agent
##################
Hyperic Server and Agent Installation ျပီးဆုံး ပါျပီ..

Hyperic Server ကို Restart လုပ္ေပးလိုက္ပါ..
# sh /home/hyperic/hyperic-hq-installer-4.6.6/server-4.6.6/bin/hq-server.sh restart

ျပီးေနာက္ Web-browser  မွာ server ip port 7080  နဲ႕ browse လုပ္ျပီး အေစာက server installation တုန္းက username password နဲ႕ ဝင္ျပီး အသံုး ျပဳႏိုင္ပါျပီ..



  ဒီ server ကေန ဥပမာ network router  တလုံးကို monitoring လုပ္မယ္ဆိုရင္ေတာ့ ထို router မွ snmp support လုပ္ဖို႕ေတာ့ လိုအပ္ ပါမယ္
hyperic က snmp version 1, 2, 3 support ေပးပါတယ္..

Server မွာ Resource Add တာေတြ Server Function ေတြကိုေတာ့ ကိုယ္ဟာကို စမ္းေစ ခ်င္ပါတယ္ .. (တကယ္ေတာ့ က်ေနာ္လဲ Fully မစမ္း ရေသး လို႕ပါ .. :D)


>>

UTEE


Ref : http://www.hyperic.com/
        https://support.hyperic.com/download/attachments/77004927/vFabric_Hyperic_4.5_Installation_and_Configuration.pdf