Linux VMWare Windows

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 […]


Windows 7 Environment variables

Windows 7 Environment variables The variables most likely apply to later versions of Windows too. Variable name Value %ALLUSERSPROFILE% (%PROGRAMDATA%) C:\ProgramData %APPDATA% C:\Users\{username}\AppData\Roaming %COMPUTERNAME% {computername} %COMMONPROGRAMFILES% C:\Program Files\Common Files %COMMONPROGRAMFILES(x86)% C:\Program Files (x86)\Common Files %COMSPEC% C:\Windows\System32\cmd.exe %HOMEDRIVE% C: %HOMEPATH% \Users\{username} %LOCALAPPDATA% C:\Users\{username}\AppData\Local %LOGONSERVER% \\{domain_logon_server} %PATH% C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;{plus program paths} %PATHEXT% .com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc %PROGRAMFILES% C:\Program Files %PROGRAMFILES(X86)% C:\Program […]


Get Windows server uptime

To find server uptime: (this works on server 2008 / Vista / Windows 7 & 8 / server 2012) systeminfo | findstr “Boot” Output: System Boot Time: 13/01/2016, 10:59:27 Boot Device: \Device\HarddiskVolume1 The command net statistics server will also provide the server up time, as well as many other related statistics.


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 […]

ESXi Hardware VMWare

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 […]


Windows command line for various control panel options

Control panel tool Command —————————————————————– Accessibility Options control access.cpl Add New Hardware control sysdm.cpladd new hardware Add/Remove Programs control appwiz.cpl Date/Time Properties control timedate.cpl Display Properties control desk.cpl FindFast control findfast.cpl Fonts Folder control fonts Internet Properties control inetcpl.cpl Joystick Properties control joy.cpl Keyboard Properties control main.cpl keyboard Microsoft Exchange control mlcfg32.cpl (or Windows Messaging) […]

CentOS Debian ESXi Linux VMWare

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 #!/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 […]