Author Archive

Mount Windows CIFS share on Linux server using kerberos keytab

May 4, 2016
By

Use kerberos ticket to mount CIFS shares on a Linux server. You do not need to know the password for the account, nor have the password stored in a file. Create the keytab file for the account my-account, this step must be completed by a Domain Admin on a domain controller C:\>ktpass -princ my-account...
Read more »

Tags: , ,
Posted in Technology | No Comments »

Change the IP address of a Windows servers with VMware PowerCLI script

April 27, 2016
By

VMware vSphere PowerCLI script to change the IP addresses of Windows servers. $TranscriptFile = “.\change-ip-2.txt” #Stop-Transcript Start-Transcript -Path $TranscriptFile $windowsID = “administrator” $windowsPassword = “MyPassword” Function Set-WinVMIP ($VM, $IP, $SNM, $gateway){ $nics = Get-VMGuestNetworkInterface -VM $VM -GuestUser $windowsID -GuestPassword $windowsPassword | ?{$_.ip -ne $null} Write-Host “Changing IP for $VM to $IP” -BackgroundColor DarkBlue Set-VMGuestNetworkInterface...
Read more »

Tags:
Posted in Technology | No Comments »

Find VMware Guests with Raw Physical Disks

February 27, 2016
By

VMware vSphere PowerCLI script to find all guests that have RDMs or raw physical disks. $Servers=”vcenter1″ Connect-VIServer $Servers $vms = get-cluster | get-vm Get-VM | Get-HardDisk -DiskType “RawPhysical”,”RawVirtual” | Select Parent,Name,DiskType,ScsiCanonicalName,DeviceName | out-gridview -PassThru | Export-Csv -Path .\vm-with-rdm.csv
Read more »

Tags:
Posted in Technology | No Comments »

VMware PowerCLI script to list snapshots older than specific days

July 27, 2015
By

A VMware vSphere PowerCLI script to find and email a list of all VMware guests that have snapshot older than 3 days. # List all VM with snapshots # Run as scheduled task with a user with rights to view all VMs Add-PSSnapin VMware.VimAutomation.Core $Age = 3 $strOutFile = “c:\snapshot-result.htm” del $strOutFile # HTML/CSS...
Read more »

Posted in Technology | No Comments »

Configure VMware Datastore Multipath Policy by Disk Type

May 27, 2015
By

Here is a VMware vSphere PowerClI script that will find all datastores that are of the model Hitachi – Open-V, set the multipath policy to RoundRobin if it is anything else. $clustername = ‘clustersomething’ $datastore = get-datastore # Find datastores by HITACHI, model OPEN-V and multipath not RoundRobin and Change to RoundRobin $disks =...
Read more »

Tags:
Posted in Technology | No Comments »

Configuring SNMPv3 client on Red Hat Linux

January 27, 2014
By

To configure snmp client version 3 on a Red Hat server you will need to install the packages net-snmp-utils and net-snmp. yum install net-snmp-utils net-snmp Make sure the snmpd service is stopped before you can configure it. service snmpd stop Create a new SNMPv3 user called “andrew”. The authentication password is “auth-pass” using MD5...
Read more »

Tags: ,
Posted in Software | No Comments »

Add new disk to Red Hat Linux server, create new filesystem without reboot.

January 27, 2014
By

If you are running a VMware virtual Red Hat Linux server then it is very easy to add a new disk. For physical servers with hot add capability this is also possible. I am going to show you how to add a new disk to Red Hat Linux complete with a new filesystem, without...
Read more »

Tags: , ,
Posted in Software | No Comments »

VMware converting RAW disk to VMDK

August 28, 2013
By

Convert a Vmware RDM disk to VMDK while guest VM is powered off Power down the guest VM Clone the VM, under select virtual disk format – select Advanced – change the disk format to Thick provisioned. You only need to do this step for the RDM disk. Completed the steps to create the...
Read more »

Tags:
Posted in Miscellaneous | No Comments »

Expanding VMware virtual IDE disk for Windows XP

November 30, 2012
By

In VMware ESX 4.x the default disk type for Windows XP 32bit virtual machine is IDE. If you did not size your drive correctly, you will be unable to expand this virtual disk later using the VMware management client. But if you had selected SCSI adapter instead of IDE, then expanding the disk after...
Read more »

Tags: ,
Posted in Software | No Comments »

Script to power down many Windows servers

November 14, 2012
By

If you ever have the need to power down hundreds of Windows servers, then here is a script to do just that. This script will work for Windows 2000, 2003 and 2008. The servers will shut down gracefully. for /F %%a in (names.txt) do call:Sub %%a goto:eof :Sub echo Shutting Down %1 #shutdown -m...
Read more »

Tags:
Posted in Software | No Comments »