Tech
-
Find location of your VMs
Ok so now you have many, many VMs running on your Hyper-V hosts. You wanna know where are they actually running from… I mean on which SAN, which LUN or which local disk array are they running. There is no easy way to find out that information from the VMM Manager console. You can open up the properties of each and every VM and look at the config but it is not practical. PowerShell to the rescue! Here is a small PS code snippet which will show you the information quickly. Get-VM –ComputerName HOSTNAME1, HOSTNAME2 | Get-VMHardDiskDrive | Select-Object -Property VMName, ComputerName, ControllerType, Path | Sort-Object -Property VMName | Out-GridView…
-
Monitor a website using SCOM 2012
So you just installed SCOM? Now you are excited to put it to use. One of the first things I wanted to do is to monitor a website. Here I will describe how you can do it quickly.
-
Quick install guide for System Center 2012 – Operations Manager
Here are my notes for installing SCOM on a single server. The DB will be on a different server. Prerequisites: In a nutshell you need to do these things first. For reference, Here is the official documentation. I also used Kevin Holman’s blog about a similar deployment here.
-
Troubleshooting Windows Remote (WinRM)
Here are a few commands which can be run to troubleshoot Windows Remote (WinRM) connectivity (These commands may need to be run on an elevated CMD): This shows you which port and IP addresses WinRM is listening to: winrm e winrm/config/listener This checks if WinRM has some problem: winmgmt /salvagerepository This shows you the configuration: winrm get winrm/config I ran these commands on my Hyper-V nodes and VMM server, while troubleshooting connectivity / permission related errors.
-
Querying for SPNs
While troubleshooting connectivity problems in VMM 2012 I had to query AD to check if SPNs have been created for the service account used to run VMM. Here is what I used to query AD: setspn –l Domain_name\VMM_service_account_name Incidentally, this showed me that I have two SPNs for this service account. One was for the current VMM server and the second one was for the old VMM server. I had an old VMM server at one time. Then I killed it and created a new VMM server. I deleted the old SPN using this command: setspn -d SCVMM/VMM_server_name Domain_name\VMM_service_account_name PS: Microsoft PSS told me to do this.