/var/sadm/install/contents
File ini menyimpan package yang kita install di solaris, jika kita hendak membuat mesin cloning yang memiliki package level sama, maka bisa melakukan copy file ini ke mesin baru tersebut. Dengan asumsi mesin baru ini akan dibuat sama level packagenya dengan mesin reference.
Untuk melakukan test terhadap file contents ini bisa dilakukan dengan mereboot(shutdown -i6 -g0 -y), jika server berhasil up berarti contents nya lengkap.
Tuesday, 2 December 2008
Dapat command baru screen
Pastikan screen terinstall di sun solaris/linux anda:
#which screen
/usr/local/bin/screen
Setelah itu tinggal ketik:
#screen
dan
lakukan aktifitas anda, jika anda ingin keluar :
ctrl + a and z
Lalu jika anda ingin kembali bekerja:
login ke mesin anda dan ketik
#screen -r
maka anda masih mendapatkan sesi anda tanpa terinterupt.
#which screen
/usr/local/bin/screen
Setelah itu tinggal ketik:
#screen
dan
lakukan aktifitas anda, jika anda ingin keluar :
ctrl + a and z
Lalu jika anda ingin kembali bekerja:
login ke mesin anda dan ketik
#screen -r
maka anda masih mendapatkan sesi anda tanpa terinterupt.
Wednesday, 23 July 2008
.profile
When you are making a user, then you will have a .profile, you can export your environment setting here, your path, so it make easy so you dont have to run full path command, just run the alias you set
Monday, 7 July 2008
How to make solaris 10 using dhcp client
1.if in /etc/hosts you already have ip static configured for this host, please comment it.
2. touch empty file /etc/dhcp.interfacename example : touch /etc/dhcp.bge0
3. touch empty file /etc/hostname.interfacename example : touch /etc/hostname.bge0
4. reboot the system
2. touch empty file /etc/dhcp.interfacename example : touch /etc/dhcp.bge0
3. touch empty file /etc/hostname.interfacename example : touch /etc/hostname.bge0
4. reboot the system
How to do jumpstart
1. clean all unnecessary log and config files from the server we want to clone
2. make backup for the /etc/inittab
3. uncomment all the process of application in /etc/inittab
4. enter single mode (init s)
5. login using serial console cable
6. flarcreate -n hostname -c -S -x /oradata hostname_images.flar
7. restore inittab
8. reboot the system
9. transfer the image files to jumpstart server
to be Continue
2. make backup for the /etc/inittab
3. uncomment all the process of application in /etc/inittab
4. enter single mode (init s)
5. login using serial console cable
6. flarcreate -n hostname -c -S -x /oradata hostname_images.flar
7. restore inittab
8. reboot the system
9. transfer the image files to jumpstart server
to be Continue
Friday, 9 May 2008
Small tools
You can compare two files using command diff and sdiff:
example: diff file1 file2 or sdiff file1 file2
head --> to see the top content of the file
head filename.txt
head -10 filename.txt ---> to see the first 10 lines
tail filename.txt --> to see the last line
tail -10 --- > to see the last 10 lines
tail -f --> to see files/log, when it keep updating
example: diff file1 file2 or sdiff file1 file2
head --> to see the top content of the file
head filename.txt
head -10 filename.txt ---> to see the first 10 lines
tail filename.txt --> to see the last line
tail -10 --- > to see the last 10 lines
tail -f --> to see files/log, when it keep updating
Monday, 28 April 2008
Check Sun Environment
How to check environment of machine SUN :
df -k = checking disk space and partition info
top = to see the most heavy process
sar 1 5 = to see the cpu idle rate
prstat = to see the memory usage
netstat -an |grep port_number = to check listening/open port of certain port_number
ps -ef|grep process_name = to check if a process is up
df -k = checking disk space and partition info
top = to see the most heavy process
sar 1 5 = to see the cpu idle rate
prstat = to see the memory usage
netstat -an |grep port_number = to check listening/open port of certain port_number
ps -ef|grep process_name = to check if a process is up
Subscribe to:
Posts (Atom)