VMware vDS alternative, Cisco Nexus 1000V quickstart
Cisco Nexus 1000V is a virtual switch running Cisco NX-OS Software, it is similar to vSphere Distributed Switch. The Cisco Nexus 1000V has two main components: - Virtual supervisor module (VSM) A VM...
View ArticleUpgrade QLogic FC HBA firmware on IBM System x server
I have been researching the method to upgrade device firmware, my aim was to upgrade the firmware before installing operating system and perform the upgrade remotely by IBM RSA console. For IBM system...
View ArticleSetup VMware vCenter 5 to use Oracle 11g R2 database
VMware vCenter supports DB2,Oracle or MS SQL server as backend database, the built-in database for vCenter in Windows is SQL Server 2008 express,which has limits on disk space and memory, it is not...
View ArticleClone Windows 2008 R2 on UEFI based Servers
Unified Extensible Firmware Interface (UEFI) technology has been widely adopted by x86 servers hardware manufactures such as IBM and DELL to supersede BIOS, but it presents a challenge for operating...
View ArticleCreate GPT partition for LVM using parted tool
Traditional MBR(MSDOS) disk label has limitation of 2^32 (2TiB) in capacity and 15 in partition numbers(including logical partitions), while GUID Partition Table (GPT) supports 2^64 KiB (2 ZiB) and 128...
View ArticleDetect increased new size of existing LUN in RHEL by rescanning FC port...
If the usual command : echo “- - -“ > /sys/class/scsi_host/hostX/scandoesn’t work for FC target, you can try this: echo 1 > /sys/devices/{PCI-DEVICE-ID} /rescan The path is the device path to the...
View ArticleEnable Windows Active Directory Authentication in vSphere 5.1.
vSphere Single Sign On is a new feature in vSphere 5.1, vSphere SSO controls authentication service, so you can no longer add new authentication provider in vCenter by standard vSphere client. It has...
View ArticleAuthenticate RHEL 5 Linux users by Windows 2008 R2 AD
My previous post was tested on Windows 2003 AD, which use non-RFC compliant scheme, Windows 2003 R2 or later is RFC2307bis compliant, the following is tested on Windows 2008 R2, but it should be...
View ArticleAuthenticate RHEL 6 Linux users by Windows 2008 R2 AD
The nss_ldap in RHEL 5 for LDAP authentication has been obsolete in RHEL 6, the replacement is nss-pam-ldapd. But the preferred method for LDAP authentication in RHEL 6 is System Security Services...
View ArticleZabbix: Monitor customized applications by SNMP and JSON Low-level discovery
Low-level discovery (LLD) is an amazing feature in Zabbix, once you have defined the template you can start to monitor hundreds of hosts in few minutes by importing hosts definition in XML file....
View ArticleZabbix: configure SNMP traps – a simpler approach
Zabbix has well documented guide to configure SNMP traps, I followed the guide and gave it up after facing the challenge to install additional software SNMPTT or recompile SNMPD to include...
View ArticleShell script to check Oracle Tablespace usage
I searched a shell script to check Oracle Tablespace usage, most scripts returned use complex SQL statements and they don’t report usage accurately, because auto-extend or multiple data files was not...
View ArticleMonitor customized application in Windows by SNMP
The native SNMP service in Windows can provide basic metrics like CPU, memory and disk etc, but it doesn’t have “extend” feature in net-snmp, which allows you run a script for application monitoring....
View ArticleConfigure multipath on Solaris 11 for IBM V7000 SAN storage
IBM V7000 is not listed from command “mpathadm show mpath-support libmpscsi_vhci.so”, but it is still supported, Solaris 11 mpxio supports any third party storage device that is T10/T11...
View ArticleUnderstanding SysV-style Initscripts in Red Hat Linux
It is often needed to write your own init start/stop script, the following is the minimum requirement for your script to behave as expected. The discussion is based on Red Hat Linux family, other...
View ArticleScript to automatically partition a new disk and create LVM PV
It is a very common task to create a single partition on whole disk and create LVM PV, How to automate it?fdisk doesn't support making partition in script mode, sfdisk can, but it is not as good as...
View ArticleVMware PowerCLI: Map datastore name to LUN devicename.
It is not obvious as it is thought to be to map datastore name to LUN devicename in native PowerCLI codes, The esxcli interface exposed to PowerCLI make it very easy.(Tested in ESXi...
View ArticleAutomate Server deployment with Ansible
There are many server automation applications in the market: puppet,chef,cfengine and salt. Ansible is relatively new, but I think it is better than puppet in server deployment automation tasks.1....
View ArticleSetup SAN Boot for RHEL 6.x using native multipath on EMC storage
Requirements:1) RHEL 6.x (most apply to RHEL 5.x too, RHEL 5.x use mkinitrd instead of Dracut and the /etc/multipath.conf is slightly different refer to Red Hat KB in reference section)2) EMC storage...
View ArticleBuild Puppet module to use Hiera lookup
Puppet can use Hiera to look up data. This helps you disentangle site-specific data from Puppet code, for easier code re-use and easier management of data that needs to differ across your node...
View ArticlePython script to run remote SSH commands with sudo permission
I created a Python script to run remote SSH command with sudo permission. Linux SSH command doesn’t support password as command option, you have to use expect script to connect to multiple servers for...
View ArticleAnsible - turn values in CSV file into list of dictonary
Ansible can load yaml values into Ansible variable easily, However I am still fan of plain CSV file, because it is easy to edit and has no strict format and repetitive of variable names.How to convert...
View ArticlePython script to generate Ansible ini inventory file from csv file
Ansible in memory inventory file created by add_host is often used in AWS EC2 provisioning. Inventory file can be generated easily,however it has drawback. Because it is in memory, all server post...
View ArticleSend Docker container log to Splunk
Docker engine has Splunk logging driver to send container logs to Splunk via HEC(http event collector. It is easy to setup, however it could suffer data loss if HEC is down. That is the advantage of...
View ArticleBuild Custom AWS Config rules using Guard DSL
I want to use AWS config to report S3 buckets without public blocking enabled except for some buckets with prefix like www, there is a AWS managed rule which can achieve this with a limitation: the...
View Article