Archive

Archive for the ‘bash scripting’ Category

Clear Digi_PortServer_TS16’s buffer using Scheduler on Solaris 10

24 September 2012 Leave a comment

Problem

Description : Digi PortServer TS16 always hang after operating for hours, and need to hot-restarted.
Analysis of Problem : We assume device hang because of buffer over flow.
Solution : Create script with specific function (login to the device, clear all buffer, logout) and execute automagicaly with cron scheduler.

Figure 1. Digi PortServer TS16 connect to Solaris box via UTP Cable

Read more…

Own Notes – Shell Script

3 September 2012 Leave a comment

Filename Wildcards

The following characters are interpreted by the shell as filename wildcards, and any word containing them is replaced by a sorted list of all the matching files.

Wildcards may be used in the directory parts of a pathname as well as the filename part. If no files match the wildcard, it is left unchanged. Wildcards are not full regular expressions. Sed, grep, awk etc. work with more flexible (and more complex) string matching operators.

*
Match zero or more characters.
?
Match any single character
[…]
Match any single character from the bracketed set. A range of characters can be specified with [ – ]
[!…]
Match any single character NOT in the bracketed set. Read more…

Categories: bash scripting

Kill Zombie Process on Solaris 10 (or another *nix family)

30 August 2012 Leave a comment

    Requirement :

  1. Paham konsep Operating System secara umum.
  2. Paham konsep “process” pada unix family, utamanya Solaris.
  3. Terbiasa menggunakan OS Solaris10.
  4. Mau membaca & mencoba tulisan ini 😀

Attention :

Tulisan ini adalah pengalaman pribadi saya, kalaupun bisa menjadi tips bagi pembaca sekalian ya alhamdulillah, tapi klo systemnya menjadi error saya tidak bersedia untuk dikejar-kejar. Read more…

Sending data to serial port simultaneusly using jpnevulator

31 March 2012 7 comments

This solution comes when we facing trouble on solaris10 at remote site, whenever the machine read data from GPS using usb2serial cable, core-dump is always happen.

Before we go to the site (medan) we must simulate & solve problem at our office.

Laptop CQ-42 Read more…

Backup konfigurasi “/etc” setiap hari [script-1]

25 April 2010 8 comments

Saat melakukan konfigurasi sebuah server, biasanya kita melakukannya dengan yang terbaik dan ter-secure. Oleh karena itu untuk mencegah hilangnya konfigurasi yang telah kita buat, ada baiknya directory /etc di-backup setiap hari.
Saya sendiri selalu melakukan backup /etc pada setiap server yang saya tangani.
Langkah yang harus dilakukan tidaklah sulit, cukup membuat script dan memasukannya pada scheduler cron utk di-eksekusi setiap hari.

  1. Script backup.sh
  2. Read more…

Menambahkan dan Menghapus variabel pada bash scripting language

23 April 2010 Leave a comment

Seperti biasa, ini hanya pengingat, kalo anda sudah ingat… yaa tidak perlu membaca tulisan ini lagi 😛
CMIIW yaa… Read more…