Showing posts with label vSphere. Show all posts
Showing posts with label vSphere. Show all posts

Tuesday, July 30, 2013

vCheck Powershell script - LOVE IT!!!

So I came across vCheck by Alan Renouf recently. It is a great utility. He has made it extensible by making plugins available. You can create custom monitoring scripts for any part of vSphere, or infact any other system that you can use Powershell with.

I'm working on adding performance graphs to the utility. I'd like to have both vCenter and NetApp graphs. vCenter Operations manager is nice, but it is a bit clumsy and slow. You can't set defaults, so you have to click through window after window to get where you want.

vCheck has a -config option where you can set the default values for each plugin and the global variables. You can set it up in a scheduled task and have it run at night and e-mail you a daily report.

I've been thinking about a plugin that will know the difference between a daily report and a weekly report and select different plugins for each.

Go check it out. The more we get involved in it, the more we can find other useful plugins for our unique equipment.

Monday, January 7, 2013

PowerCLI extremely slow startup


I found that when I open PowerShell ISE and try to run my PowerCLI scripts, there is a HUGE delay in getting the snapin loaded. I don't mean a long delay like a user would say "there's a long delay" I mean like an IT Professional says there is a log delay.

Friday, August 17, 2012

How to get the Firmware Version of your hardware

If you are looking to see if the Firmware on your ESXi 5.0 host is upto date, you need to find out what it is right now, so try these commands for the basic items.

  1. In ESXi 5.0, run this command:

    # esxcli network nic list
  2. or this still works
# esxcfg-nics -l
  1. You will get something like this:
Name    PCI         Driver Link Speed    Duplex MAC Address
vmnic0  00:02:04.00 ACME   Up   1000Mbps Full   01:23:45:67:89:AB
vmnic1  00:02:05.00 ACME   Up   1000Mbps Full   01:23:45:67:78:AC


Now use the ethtool command to get the info:

# ethtool -i vmnic0

driver: ACME
version: 1.2.3a-1vmw
firmware-version: 7.8.9
bus-info: 0000:02:04.00


For HBAs: Check this link out Get Firmware Version

  • To obtain the driver version of a Host Bus Adapter on an ESX/ESXi host:
    1. Obtain the driver type that the Host Bus Adapter is currently using:

      # esxcfg-scsidevs -a

      This will produce an output similar to:

      vmhba0  ata_piix          link-n/a  ide.vmhba0                              (0:7.1) Intel Corporation Virtual Machine Chipset
      vmhba1  mptspi            link-n/a  pscsi.vmhba1                            (0:16.0) LSI Logic / Symbios Logic LSI Logic Parallel SCSI Controller
      vmhba32 ata_piix          link-n/a  ide.vmhba32                             (0:7.1) Intel Corporation Virtual Machine Chipset


      Note: The second column shows the driver that is configured for the HBA.
    2. Use the following command to see what driver version is being used:

      # vmkload_mod -s HBADriver |grep Version
      Taking the the mptspi driver as an example:

      # vmkload_mod -s mptspi |grep Version
      Version: Version 4.00.37.00.30vmw, Build: 721907, Interface: 9.0, Built on: May 18 2012


      From the above output you can see the driver version is 4.00.37.00.30vmw
    3. To check to see what driver is recommended for that card we need to get the VID (Vendor Id), DID (Device Id), SVID (Sub-Vendor Id) and SDID (Sub-Device Id)

      # vmkchdev -l |grep vmhba1
      000:16.0 1000:0030 15ad:1976 vmkernel vmhba1

      In the above cases the VID=1000, DID=0030, SVID=15ad, SDID=1976
    4. You can now search the VMware Compatibility Guide for VID (Vendor Id), DID (Device Id), SVID (Sub-Vendor Id) and SDID (Sub-Device Id) or in some cases you may need to do a text search here to narrow down the particular card. You can check the version of the ESX/ESXi with following command

    5. # vmware -v

    Friday, April 6, 2012

    XenDesktop Services needed for VDA

    OK, so I'm creating a desktop and the thing gets stuck at Pending. If you look in vCenter, it has reconfigured the deployed machines three 3 times. But now it is sitting at Pending.

    One of the things to look for is services required for Virtual Desktop Agent to run.
    - HTTP SSL   - Startup Mode should be at least Manual.
    - RPC Locator Service   - Startup Automatic(?) Manual should work.

    If these are disabled, it may cause this problem.

    Look in your group policy, it may be blocked by group policy. If it is, it will be in:
    Computer Configuration
    Windows Settings
    Security Settings
    System Services


    GPO Setting can be fun, check my other post for GPO enforce, block-inheritance, and no-override.