vDan / virtualisation
.hopefully some useful VMware…
| User: | dan |
|---|---|
| Tags: | virtual, vmware, esx, virtualisation, virtualization |
Recent user posts
CIFS share Locked files on a NetApp filer
Issue with a locked file on a CIFS share. First check Computer Management and then connect to the filer. Look at Open Files or Sessions and see if the lock can be released from there. If it isn't showing, then telnet to the filer. You can use these commands to see CIFS status, current Locks and… Read more
Reset IP Address on an IBM DS4300 via Serial Cable
Resetting the IP addresses of a DS4300 controller when the IP address is unknown and can't be contacted through Storage Manager. The DS4300 has a 9 pin serial interface on each controller, and requires a NULL Modem cable. The wiring for this is as follows: http://www.lammertbies.nl/comm/info/RS… Read more
Insert network drivers into the VMware Converter CD coldclone…
When booting a physical server with the coldclone.iso VMware Converter CD to do a P2V convertion the message 'Network Adapter Not Found' appears despite a network card being present in the machine. In order to complete the P2V and detect the network card, the network drivers need to be inserted into… Read more
Script to identify Inactive Active Directory User Accounts for…
Get all Active Directory users in the domain, pick out firstly User accounts which have never logged in and second get the last logged in time for each account which have logged in and report back any accounts which haven't logged in within the last 31 days. Couldn't find PowerShell cmdlets for Active… Read more
Script to test Veeam replica Virtual Machines in a protected…
This script is if you want to check the validity of your Veeam replica virtual machine by bringing it up either disconnected from the network or connected to another test network, without affecting the integrity of the replica and allow the replication to continue after testing. Requirements: VMware… Read more
Remote Desktop Session Commands - qwinsta and rwinsta
QWINSTA - Query remote desktop sessions, for remote machines use QWINSTA /SERVER:servername RWINSTA - Reset remote desktop session, for remote machines use RWINSTA /SERVER:servename … Read more
Healthcheck Script
Healthcheck Script (ver 1.78) Version 1.78 Download Building on the works of the below mentioned individuals, and with help from others on the VMware Communities forum like Zsoldier and LucD, this is the current Healthcheck script that I am using. 1. Ivo Beerens (started this wonderful script) 2.… Read more
Configuring boot order for ESX on an IBM x3550 or x3650 M2
After installing ESX onto an M2 version of the IBM x3550 or x3650, the server fails to boot. This is due to the server wanting a UEFI enabled Operating System like Windows Server 2008. If a Server 2008 DVD is in the drive, the server will boot into ESX after detecting the DVD providing no key is presses… Read more
Display number of vCPUs assigned and vCPU to Core ratio
Script displays Overall number of Cores available over all hosts, then the number of Virtual CPUs assigned and then the ratio. The script can be run from a standard PowerShell window, as it checks for the VMware snapin and loads if necessary. If no connection exists to vCenter server it will prompt… Read more
Show Hidden Devices in Device Manager
Taken from the Microsoft Knowledge base article: http://support.microsoft.com/kb/315539 Display devices when you click Show hidden devices: Click Start, point to All Programs, point to Accessories, and then click Command Prompt. At a command prompt, type the following command , and then press… Read more
Creating vSwitches, Port Groups and assigning VLAN IDs
Add a physical NIC uplink to a virtual Switch: esxcfg-vswitch -L eg: esxcfg-vswitch -L vmnic1 vSwitch0 (adds the uplink of vmnic1 to vSwitch0) Create a Virtual Switch: esxcfg-vswitch -a vSwitch1 Create portgroup on virtual switch: esxcfg-vswitch -A NewPortGroup vSwitch0 Add a VLAN ID to a port… Read more
Dump IP address information for local network adaptors when…
When doing a P2V of a Windows box, a new network adaptor is created and the old one becomes hidden, the IP address information is not automatically transferred to the new adaptors in the converted machine. One of my colleagues put me on to this, and it certainly sped up the process. The following… Read more
Add the VMware Network adapter to a Windows NT4 server after…
After a Physical to Virtual (P2V) convertion of an old Windows NT4 SP6 server, the network adapter is not automatically added or detected. The following process successfully adds the 'VMware Virtual Ethernet Adapter' to the new Virtual Machine. First of all Install VMware Tools. Confirm that the… Read more
NetApp filer Aggregate space used by Volumes report
To avoid over-committing storage it is essential to know how much space you have assigned to volumes on your aggregates. If you just run an aggregate list, the amount of space shown as used and free doesn't equal the actual amount used. The script below creates a table showing Filer, the aggregate name… Read more
About Me
About Me My name is Dan Yates, I live in Scotland and work all over the UK as a Senior Technical Consultant for a VAC company based in Glasgow. I am a VMware Certified Professional (VCP) on VI3 and vSphere 4.0, and a Microsoft Certified Technology Specialist on Windows Server Virtualization and System… Read more
Powershell and VI-Toolkit
Download PowerShell for Windows Server 2003 from the below link. http://www.microsoft.com/downloads/details.aspx?FamilyId=10EE29AF-7C3A-4057-8367-C9C1DAB6E2BF&displaylang=en Install and then open the PowerShell. At the command line type the following: set-executionpolicy remotesigned Exit the command… Read more
Authenticate to ESX server using Public / Private keys over…
Use this procedure to allow you to connect over SSH into your ESX server(s) without using a password using a Public / Private key pair. Although you can set your ESX server to allow you to authenticate as root over SSH this is not recommended so this procedure relies on you having created a limited… Read more
Removing Snapshots older than X days
The script below queries virtualcenter for all snapshots and then checks if each one is older than the amount of days you specify in the command line. Download Here If they are older you get a confirmation as to whether to remove or not. Then it moves on to the next snapshot or ends if the last one. #… Read more
View Disk Usage from the command line with df and vdf
View Disk Usage from the command line with df and vdf When logged into the ESX at the command line run the following: df df -h (to show the values in more helpful formats) Extending on this, to view the VMFS datastore useage run the following: vdf vdf -h … Read more
Display memory allocated and memory available across environment…
Script displays total memory available in each cluster, total memory allocated to VMs in each cluster and a percentage allocated. If over 100% message stating over-commitment is present. Then a table for each host in the cluster and same items as above is displayed. The script can be run from a standard… Read more
Execute remote commands on ESX and IBM NSeries using plink
Came across this whilst trying to schedule replication throttling on an IBM NSeries unit. This works from the Windows Command line and executes remote commands on your remote unit. Using this withing a batch file running from a scheduled task. Download PLink from the download page HERE. Create a… Read more
NetApp Snapmirror Status - Email Report
PowerShell Script to Email a report of the status of Snapmirror Replication on your NetApp filers. The Script uses the PoSh OnTap Module downloadable from http://poshontap.codeplex.com/ which gives masses of NetApp PowerShell commands. Download script HERE is also below the screenshot. # Dans… Read more
Contact Me
Contact Please contact me by either the feedback page or at dan@a2-alpha.co.uk… Read more
Useful firewall commands
Some useful firewall commands: esxcfg-firewall -e ntpClient Open port 123 for the NTP Client to allow synchronization with an external time source esxcfg-firewall -BlockOutgoing Block all outgoing ports which have not been explicitly opened, also -BlockIncoming esxcfg-firewall -AllowIncoming Allow… Read more
Build your Free Website!
- 100% free
- In only 5 min
- Your own domain
- No Ads
- No installation
- No technical skills
Follow us on Facebook!
Webnode on FacebookWebnode on Twitter:
Don't forget to enter our Valentine’s Day Contest! Pledge your love to Webnode and win an Apple iPhone S4! http://t.co/dcxM0b9C
Follow us!




