ESXi 5.0 PXE Install


ESXi PXE install has no differences from other PXE installs, you need DHCP server, tftp server and the installation ISO. In my example, I build the DHCP server and tftp server on CentOS 6.3 minimal installation. 1) Install and configure the DHCP Server yum –y install dhcp cd /etc/dhcp/ cp –a dhcpd.conf dhcpd.conf.bak Modify dhcpd.conf … Continue reading ESXi 5.0 PXE Install

Install syslog-ng on CentOS 6.3


syslog-ng is an open source syslog server that can be installed on many *nix servers. In my example, I installed it on a 64bit CentOS 6.3 server with minimal package. 1) Download and extract the source code. wget http://www.balabit.com/downloads/files?path=/syslog-ng/open-source-edition/3.4.0alpha3/source/eventlog_0.2.12.tar.gz wget http://www.balabit.com/downloads/files?path=/syslog-ng/open-source-edition/3.4.0alpha3/source/syslog-ng_3.4.0alpha3.tar.gz tar xvzf eventlog-0.2.12.tar.gz tar xvzf syslog-ng-3.4.0alpha3.tar.gz 2) Install dependencies. yum -y install kernel-headers* glibc-headers-* … Continue reading Install syslog-ng on CentOS 6.3

Bash: Log File Archive Script


There are some logs files are in such format: 20120130-174201-130947.log. I created two bash scripts to archive them by year/month/day: The first one is based on the log file creation date, the other one is based on the time stamp within the file name. #Backup Script1: Use modification date of the file#!/bin/bash #Define the Log … Continue reading Bash: Log File Archive Script