|
Small collection of VMware PowerCLI / Powershell scripts and onliners to save time re-typing them:
Get a list of all virtual machines with snapshots and save it to a csv file; # Get-VM | Get-Snapshot | Select-Object VM, Name, SizeMB, Created, Description | Export-Csv c:snapshots.csv # Get a list of virtual machines, guest IP address, […]
The service you will need to start or stop simultaneously on multiple servers is likely to be the SSH (TSM-SSH) service.
Here is how you do it with PowerShell / PowerCLI:
$vCenter = ‘vCenter.vstrong.info’ ; Name or IP address of your vCenter Server $Cluster = ‘Vblock cluster 1’; Name of the cluster Connect-VIServer $vCenter $Scope […]
There are several ways to get HBA WWNs on VMware vSphere ESX/ESXi host:
vSphere Client; Using ESXi Shell; Using Powershell / PowerCLI script.
1. Connect to a server or vCenter, open server Configuration tab, under Hardware select Storage Adapters:
You can also copy WWNN (World Wide Node Name) and WWPN (World Wide Port […]
In my ongoing battle with Trend Micro Deep Security I came across another problem / strange behavior. Virtual machines running on a particular host had Anti-Malware Engine Offline status.
DSVA was Managed (Online) and did not present any other issues. Going through the usual sequence <Clear Warnings/Errors> – <Check Status> did not clear the […]
Q: What is Lockdown Mode? A: Lockdown Mode prevents users from logging directly to the host. The host will only be accessible through local console or vCenter Server. None of remote management options e.g. vCLI, PowerCLI script, SSH will work. When it is enabled, only vpxuser () has authentication permissions and can connect to the […]
How to identify what vNICs correspond to physical NICs on HP ProLiant BL680 G5 full-height blade with two quad-port mezzanine cards:
This diagram is for a blade in Device Bay 1:
VMware NICs:
vmnic0 Embedded Ethernet Port 1 Bay 1 Port 9 vmnic1 Embedded Ethernet Port 2 Bay 2 Port 9 vmnic2 Embedded Ethernet […]
This script creates a new user and adds the user to a role on the ESX host:
$NewUser = ‘_New_user_name_’ $NewUserPassword = ‘_New_user_Password_’ $NewUserDesc = ‘_New_user_description_’ $HOSTCredentials = Get-Credential -Credential root $ESXhost = ‘_My_ESX_HOST_’ Connect-VIServer $ESXhost -Credential $HOSTCredentials New-VMHostAccount -Id $NewUser -Password $NewUserPassword -Description $NewUserDesc -UserAccount -Server $ESXhost -AssignGroups users $AuthMgr = Get-View (Get-View ServiceInstance).Content.AuthorizationManager […]
Login to the server Run msinfo32.exe Navigate to “Software Components“, “System Drivers“ Check if the ‘vsepflt‘ / ‘VFileFilter‘ system driver is in the list and the state is ‘Running’
What ports do I need to open for VMware vSphere ESXi 5.x and vCenter Server / Update Manager?
You can study vSphere Installation and Setup guide and VMware vSphere 5.x Security Guide. I also found VMware KB 1012382 article: TCP and UDP Ports required to access vCenter Server, ESX hosts, and other network components and, […]
In my last project the customer had a large number of virtual machines with a really old VMware Tools installed, some with version 3.1.0000. Neither Automatic nor Interactive Tool Upgrade worked. I tried to uninstall VMware Tools via Add/Remove Programs but it did work not either as Windows Installer could not find VMware Tools.msi.
The […]
|
Subscribe to Blog via Email
Join 169 other subscribers
|
Recent Comments