7 articles VMWare

HP Smart array CLI commands

HP Smart array CLI commands (these should apply to any system with the CLI installed) Show configuration /opt/hp/hpssacli/bin/hpssacli ctrl all show config Controller status /opt/hp/hpssacli/bin/hpssacli ctrl all show status Show detailed controller information for all controllers /opt/hp/hpssacli/bin/hpssacli ctrl all show detail Show detailed controller information for controller in slot 0 /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 show detail…

Update a VMWare Host with Individual VIBs

Determine which VIBs are installed on the host. esxcli –server=server_name software vib list Install from a URL esxcli –server=server_name software sources vib list –depot=http://web_server/depot_name Install from a local zip file esxcli –server=server_name software sources vib list –depot=path_to_depot_zip_file/depot_ZIP_file Update VIBs from a depot accessible by URL esxcli –server=server_name software vib update –depot=http://web_server/depot_name Update VIBs from a…

How to install MegaCli on ESXi 5.x

Enable ssh service (you can use Vsphere client for that purpose, or directly on the VM Host with F2 -> Troubleshooting Options) Download MegaCli 08.07.07 Copy attached VIB to ESXi host using SFTP / SCP (I use FileZilla) to /tmp/ Install VIB with PUTTY using following command: esxcli software vib install -v=/tmp/vmware-esx-MegaCli-8.07.06.vib –force –maintenance-mode –no-sig-check…

Graphing disk temperatures with the Eluna Graph System

I have been using the Eluna Graph System for several years, as I like it’s simplicity. As per this post, I graph my ESXi disk temperatures so that I can keep an eye on them. Content of create.sh: #!/bin/bash rrdtool create esxi_disks.rrd \ –start `date +%s` \ –step 300 \ DS:disk1:GAUGE:600:0:U \ DS:disk2:GAUGE:600:0:U \ DS:disk3:GAUGE:600:0:U…

VMWare / ESXi logging disk temperatures

Following on from a previous post, this details how I log my ESXi disk temperatures. The temperatures are gathered with this script: #/bin/sh # /vmfs/volumes/datastore2/hp/hpacucli ctrl slot=16 pd all show detail |grep “Current Temperature (C):” |awk -F “:” {‘print $2’} |xargs |sed -e ‘s/ /,/g’ > /vmfs/volumes/datastore2/hp/disk_temps.txt cat /vmfs/volumes/datastore2/hp/disk_temps.txt | nc -w 3 1025 Port…

Adding firewall rules to ESXi 5.5

I needed to add a custom firewall rule to my ESXi box, so that it could send email notifications. Firstly, I created an smtp.xml file (see below) and this is stored on one of my datastores (in my case /vmfs/volumes/datastore2/hp/). To make this persistent across reboots add the following lines to: /etc/rc.local.d/local.sh cp /vmfs/volumes/datastore2/hp/smtp.xml /etc/vmware/firewall/…