script to find configuration of esxi host problems.

Need a script to find if all configuration host on all issues the esxi host in the vCenter...

example: alert, warning.

Hello, nareshunik-

You can consult the properties TriggeredAlarmState and ConfigIssue to display HostSystem for the VMHost objects, such as:

Get-View -ViewType HostSystem -Property Name,TriggeredAlarmState,ConfigIssue | ?{$_.TriggeredAlarmState -or $_.ConfigIssue} | `    select name,         @{n="NumConfigIssues"; e={($_.ConfigIssue | Measure-Object).Count}},        @{n="NumAlarms"; e={($_.TriggeredAlarmState | Measure-Object).Count}}

This will return just all hosts with a triggered alarm, a configuration problem or two (and the course of each):

Name       NumConfigIssues  NumAlarms
----       ---------------  ---------
myHost001                1          0
myHost122                2          0
myHost212                1          1

How does do for you?

Tags: VMware

Similar Questions

  • Script of PowerCLI to capture ESXi host CPU & memory

    Hi all

    I'm having the time more difficult to find a script that will give me ESXi host CPU and memory. I just need something simple, if there is such a thing?

    Example of what I'm looking for:

    Host name Ability of GHz CPU CPU GHz used Free GHz CPU

    Host name The memory capacity The memory used Free memory

    Help, please.

    You mean like this

    Get-VMHost-name MyEsx |

    Select Name,

    @{N = 'GHz CPU capacity'; E = {[math]: tour ($_.)} (CpuTotalMhz/1000,2)}},

    @{N = "GHz CPU used"; E = {[math]: tour ($_.)} (CpuUsageMhz/1000,2)}},

    @{N = "CPU GHz free"; E = {[math]: Round (($_.))} CpuTotalMhz - $_. {{(CpuUsageMhz) / 1000,2)}}.

    @{N = "GB memory capacity"; E = {[math]: tour ($_.)} (MemoryTotalGB, 2)}},

    @{N = 'Memory used GB'; E = {[math]: tour ($_.)} (MemoryUsageGB, 2)}},

    @{N = "GB free memory"; E = {[math]: Round (($_.))} MemoryTotalGB - $_. {{(MemoryUsageGB), 2)}}

  • Create notification of a particular hardware for ESXi host problem?

    Hello

    One of our 5.1 ESXi hosts is constantly a hardware problem (with hardware alert status).

    We would like to ask for your opinion

    (1) if we create a notification, should we use 'host' alarm?

    (2) is it possible to send a notification to the staff for this particular host with error alarm "host" other than other ESXi hosts (i.e. send to Tony and Stephen for ESXi host A Harware problem BUT only sent to Tony for another hardware ESXi hosts problem)?

    Your opinion is requested.

    Hello

    No, there is no option to select specific host in a cluster. When you set the alarm, it is fixed for the whole army in the cluster.

  • Script to enable ssh on ESXi host.

    I need a powercli script to enable ssh on single, multiple/all ESXi ESXi servers in clusters.

    With the permission of Alan Renouf. I modified slightly to be independent of the version. Have not tested, but it should work.

    Get-VMHost | {Foreach}
    Start-VMHostService - HostService ($_ |) Get-VMHostService | Where {$_.} ({Key - match "* SSH '})
    }
  • script to find the local TSM and TSM remote is activated on the esxi host

    Need to generate scripts to find on which esxi host in the vcenter is enabled for Local TSM and TSM remote...

    Hello, nareshunik-

    Thanks to the handy Get-VMHostService cmdlet, you can quite easily get this info:

    Get-VMHost | Get-VMHostService | ?{"TSM","TSM-SSH" -contains $_.Key -and $_.Running} | Select VMHost,Key,Running
    

    The result is something like:

    VMHost    Key      Running
    ------    ---      -------
    myHost01  TSM         True
    myHost02  TSM         True
    myHost05  TSM         True
    myHost05  TSM-SSH     True
    

    TSM is the local service of TSM or "ESXi Shell", and the TSM - SSH service is "SSH".  How does do for you?

  • How to change the sha - 1 certificate in my new esxi host

    Hi guys...

    as my lab crashed this morning (my computer has a blue screen) and of all the vm in my workstation crashed.

    When I'm the my computer upward run again and pressed 'play' to start the esxi host, I received some strange error messages.

    I decided to install a new host esxi5.1, and when I have finished configuring the esxi host, I noticed that the SHA - 1 certificate is not the same as the one I have (I have the new esxi I installed, and the older and sha-1 are different between the two hosts).

    I added the vCENTER esxi host, and now I have 2 hosts esxi 5.1 with different certificates of sha - 1?

    I can continue to work in this situation?

    I built this laboratory to study the vcp 5.0 certification. (I also installed the 5.1 vsphere to manage guests)

    It's a way to modify the certificate to the other esxi I have?

    Hope to hear from you soon,

    Best regards

    Nahum

    Israel.

    Hi Nahum,

    Each host is supposed to have a different SSL certificate

    If you are looking to implement of the CA signed CERT for only ESXi hosts, this should help

    VMware KB: Configuration CA signed certificates for guests of ESXi 5.x

    or

    http://www.derekseaman.com/2013/02/VMware-vCenter-51-installation-part-15.html

    Blog of Derek has also to the replacement of all certificates of vSphere if you want to go this route

    Concerning

    one

  • Problema conexao ao 5.1 ESXI host using IP address

    Good afternoon!

    Enfrentei ler um problema ao try connect ao console ESXI. Beauté na tela dinna host ESXI as o mesmo não distãncia IP.

    "Then fled ao"configuration management network " para configurar o IP, para a minha surpresa access estava indisponivel o para o meu usuario root, nao conseguia joints o IP.

    Then sobrou a configurar por linha comando option. After some tempo, um colega para resolver o problema precisou realocar o meu para VMKernel interface devida. Problema esta IA, fazer isso, houve o why?

    Then para voces entenderem better, o cenario e este aqui:

    1. Servidor com interface to enable gerencia IBM;
    2. A team of suporte e love por joints o IP without Configuration Management Network;
    3. Apparently a suporte o IP joints esqueceu team - but why nao era possible joints o IP da forma normal, pelo esxi host?
    4. A team of only, the faz joints nome o suporte e ip e demais configuracoes using o do ESXI console.
    5. List of Ao as interfaces, one ""Management Network; " " era presented, however, neste host ping ao address 127.0.0.1 localhost o mesmo não estava running.

    Then pessoal, estou Querenda hear what it happened neste don't host ESXI, afim sanar registaram problemas no futuro.

    Desde ja Agradea§o!

    Fabio,

    UM problema e possible a members interface (VMKernel port) ter sido removed do group members ports, through e of da comando voce poderia verificar linha an existencia da mesma utilizando o comando esxcli list of network ip interface.

    Uma vez não exista essa interface, possivelmente voce nao let configurar o IP do through configure networking, ja nao existía uma porta para ser configurada.

  • Update VSAN task configuration failed for ALL 3 ESXI hosts

    I enabled VSANS on the cluster, but the task of updating VSAN configuration failed with the below error

    Operation failed, the diagnostic report: not associate the host to the cluster VSAN (Exec command "/etc/init.d/vsanvpd restart" succeeded, but came back with zero State: 1).

    On all esxi hosts 3, I can see a warning

    Host is in an active VSAN cluster but doesn't have a Service of active VSAN

    Please help me fix this isseu... I need all the VSAN here experts... I do not find a troubleshooting for this issue.

    This information was supposed to do in the VSAN Release Notes, although I must admit that I don't check that they exist.

    Here's a post I made on the memory requirements which came into force for GA

    Part 14 & #8211 VSAN. Memory of the host requirements. CormacHogan.com

  • Backup of ESXi host configurations

    When you use the host profiles, what is the best way to save specific ESXi hosts?  Your host profile standardizes the host configuration, but if you need to restore your ESXi host for a reason, even after the application of the host profile must be configured to the specific IP, hostname, etc of the host.

    Assume that you have an installation of VMware enterprise with 50 + guests.  Is there a good way to automate the backup and restoration of specific configurations of different ESXi hosts?  RCLI scripts? VMware Assistant management scripts? Some 3rd party management software tools?  Your ideas / popular experiences. (In this environment Auto-déployer has been dismissed as a management option)

    Thank you

    Yep, answer files are a feature of the host profile and do not depend on deploy Auto.

    Automatic deployment takes just left this feature also.

  • Configure Passthrough in ESXi host for USB Dongle?

    Hello

    You have to connect a USB dongle to a virtual machine specific.

    On the web, we find that we can plug the dongle to 5 ESXi host.  For this particular virtual machine, add USB controller and then add the USB device.

    We wonder if we were to "Configure Passthrough" in "Advanced settings" of the ESXi host?  If so, is there an easy way for us to identify the particular USB port used?

    Thank you

    Post edited by: TonyJK

    Hello

    If you want to only connect the USB dongle to a virtual machine, add a USB controller to the virtual computer is simpler. Once you have added a USB controller, turn on the virtual machine. Plug the dongle on the ESXi host. Open the page change the setting of this virtual machine, add a USB device and you should be able to find the dongle in the list. Save the settings and your virtual machine can now access the dongle.

    Martin

  • Retrieve message to ESXi host Summary tab "Configuration issues."

    Using VMware Perl SDK API, how to get the message of 'Problems of Configuration' tab summary ESXi host?

    For example, I have an ESXi host disconnected from the cluster, and in the summary for this host tab, there 'Problems of Configuration' message "disconnected from esxi_hostname in esx_clustername." "Reason: expired license."

    Is it possible to recover the message above through Perl SDK API? The host is already disconnected from the cluster, not sure if this is possible.

    Yes, you can take a look at the configIssue (http://vijava.sourceforge.net/vSphereAPIDoc/ver5/ReferenceGuide/vim.ManagedEntity.html#configIssue) for the object HostSystem connecting to vCenter, i.e. When this information appears. It contains a table of configuration problems and it is exposed in the API, which means that it can be accessed by using one of our SDKs including the vSphere SDK Perl

  • ESXI hosts 5-2 and the best way to configure vSwitch and Nic redundancy

    Hi all

    Could someone help me find the best way to configure the vNetwork on 2 5 ESXI host for redundancy.  Once I managed to correctly configure the 2 hosts I will seek to use the same installation process for 6 guests.  3 sites with 2 hosts on each site managed all of vCentre Server

    I have 2 DL380 G7 servers 5 ESXI installed on a class 10, 8 GB SD card, I'm looking to install VSA on the 2 hosts on each server with 4 TB of internal storage (8 * 600 GB 10 k SAS).  Each server has a gigabit integrated 4-port NIC and I installed a 2nd NIC gigabit PCIe 4 ports, I also x 2 16 switches of port with Layer 3 routing.  I use vSphere 5 Standard acceleration Kit I am looking to use vCentre server for managing, vMotion for maintenance, HA for the failover and VM 10/15 (vCentre Server Std, DB SQL to vCentre Server, Exchange 2010, SQL Server 2008 R2, IIS Intranet, Helpdesk, 1 DC, 2 Domain Controller, AV Server, WSUS, SCCM Server, and Terminal Server server).

    What would be the best way to install and configure the network for performance and redundancy and am I missing something?

    My thoughts are, Teaming: -.

    vCenter - vswitch0 - port1 on NIC1 and port1 on NIC 2 - port1 on NIC1 to physical switch 1 - port1 on NIC2 to physical switch 2

    vMotion - vswitch1 - port2 on NIC1 and port2on NIC 2 - port2 on NIC1 to physical switch 1 - port2 on NIC2 to physical switch 2

    HA - vswitch3 - port3 on NIC1 and port3on NIC 2 - port3 on NIC1 physics 1 - port3 on NIC2 to physical switch 2 switch

    VM - vswitch4 - port4 on NIC1 and port4on NIC 2 - port4 on NIC1 to physical switch 1 - port4 on NIC2 to physical switch 2

    or do I need an additional NIC on each server to hit the VM 12-6 VM for 2 ports on 2 NETWORK interface card, or maybe something else I missed?

    Thank you

    In your case, to keep it simple and what I can say here is what would be my recommendation:

    3 standard vSwitches

    vSwitch0:

    • Management - vmnic0, vmnic2

    vSwitch1:

    • vMotion - vmnic1, vmnic3

    vSwitch2:

    • VM network - vmnic4, vmnic5, vmnic6, vmnic7

    The only reason why that I didn't split the VM in other network adapters shipped is because the difference in the types of the DL380 adapter shipped and the PCIe quad.

  • ESXi host change IP back to the old Configuration in vCenter

    Hi all! I'm having a problem with a host computer in my vCenter. I had 2 guests and both were in the same network. I moved to a remote site and change its IP from 10.10.2.253 to 10.10.3.250.

    While I'm trying to connect it to the vCenter, he connects well then (in vCenter) he's trying to connect to his old address IP 10.10.2.253.

    I have reset the vCenter, database, but it still does not work. When I move first the host at the remote site, I did not disconnect. I deleted it just (may be the source of this problem).

    Can someone help me on this one? A big thank you.

    Hi Alex,

    is it possible for you to create a record of host DNS (A) for this remote ESXi host name and then add to vCenter using its FULL domain name rather than IP address?

  • Hello, how can the form in Adobe Muse run on a third-party hosting site?  MANDIC use the server to host the site. More the form of error. I couldn't find the solution to this problem.

    Hello, how can the form in Adobe Muse run on a third-party hosting site? MANDIC use the server to host the site. More the form of error. I couldn't find the solution to this problem.

    Please see this document for troubleshooting:

    https://forums.Adobe.com/docs/doc-3581

    Thank you

    Sanjit

  • Need a powercli script to create a new account a local administrator on all ESX and ESXi hosts in the vcenter

    Hi all

    If someone can help me with a powercli script to create a new account a local administrator on all ESX and ESXi hosts in the vcenter, create a role called admin and give all access except the root. This shoulb be past by a virtual centre.

    Very much appreciated to help him.

    Kind regards

    MelLvin

    I suspect that you posted your question to the wrong thread

    This requires only a minor change to the script above actually.

    Something like that

    $groupName = "group"$accountName = "user"$accountPswd = "password"$accountDescription = "A user"
    
    $esxlist = Get-VMHostforeach($esx in $esxlist){    Connect-VIServer -Server $esx -User root -Password "password"
    
        Try {      Get-VMHostAccount -Id $groupName -Group -ErrorAction Stop | Out-Null    }    Catch {      New-VMHostAccount -Id $groupName -GroupAccount | Out-Null    }
    
        $rootFolder = Get-Folder -Name ha-folder-root    Try{        $account = Get-VMHostAccount -Id $accountName -ErrorAction Stop |        Set-VMHostAccount -Password $accountPswd -Description $accountDescription -AssignGroups $groupName    }    Catch{        $account = New-VMHostAccount -Id $accountName -Password $accountPswd -Description $accountDescription -UserAccount -GrantShellAccess -AssignGroups $groupName    }
    
        $rootFolder = Get-Folder -Name ha-folder-root    New-VIPermission -Entity $rootFolder -Principal $account -Role admin
    
        Disconnect-VIServer -Confirm:$false}
    

Maybe you are looking for

  • Airport Extreme Base Station model bricks A1408 after failed firmware update

    Shown on Macbook Pro iOS X 10.10.5 airPort utility update the firmware available for both devices on my network 3 June 20161 Airport Express 7.6.7 2 version of Extreme Base Station Airport unknown as not reported as I expected not die After the updat

  • Windows Update has no 800703F9 8007371C

    KB958690 failure error code 800703F9KB960225 has no error 8007371C code After that update failed, the system restore no longer works Windows Vista Edition Home Premium SP1 This is the first and only the failures I've had, all the previous updates ins

  • Spooler subsystem app and should close__ stopprd working.

    all of a sudden I cannot print

  • vWorkspace VDI

    Hello I'm currently setting up a VDI solution and using vWorkspace as the broker for connections.   Did anyone seen any good technical document that can give me some advice and maybe to bypass some of the traps Any help would be great Thank you, John

  • Windows Live Mail Server error: 0x80072EFF

    Server error: 0x80072EFF Server: "https://mail.services.live.com/Deltasync_v2.0.0.Sync.aspx" Windows Live Mail error ID:080072eff original title: error 80072eff