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
Send ESXi 5.0 Syslog to Splunk
1) Install Splunk. In my example, I use Linux as the Splunk server. rpm -i splunk-4.3.4-136012-linux-2.6-x86_64.rpm /opt/splunk/bin/splunk start 2) Go the web server http://dev-linux-01:8000 to open the TCP and UDP 514 port. Do the same to open UDP port 514. 3) Login to the ESXi host to configure the remote syslog host. esxcli system syslog … Continue reading Send ESXi 5.0 Syslog to Splunk
PowerShell: Check VMware Tools Status
To ensure the VMware Tools is running or not out of date, we have to periodically check it. The following PowerShell script can generate a VMware Tools status report in csv format. #Uncomment if this SnapIn has not been added #Add-PSSnapIn VMware.VimAutomation.Core CLS $creds = Get-VICredentialStoreItem -file “C:\powercli\credfile.xml” Connect-viserver -Server $creds.Host -User $creds.User -Password $creds.Password … Continue reading PowerShell: Check VMware Tools Status
ESXi 5.0 Command: Change Storage Path Selection
1) Run ‘esxcli storage nmp device list | grep ^naa.’ to list the current connected storages. 2) Run ‘esxcli storage nmp device set –d <DEVICE_ ID> –P <PSP_NAME>’ to change the path selection policy. e.g. esxcli storage nmp device set -d naa.60050768028081713c0000000000003a -P VMW_PSP_RR 3) Additionally, you can run ‘esxcli storage nmp satp list’ to … Continue reading ESXi 5.0 Command: Change Storage Path Selection
Setup BgInfo in Windows 2008 R2
1) Download BgInfo, and unzip the file to C:\Windows 2) Open BgInfo and adjust the configuration to meet you needs, then save it to C:\windows\bg.bgi 3) Create a bat script file C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\bginfo.cmd @ECHO OFF %systemroot%\bginfo /i%systemroot%\bg.bgi /timer:0 /nolicprompt /silent