Use the Vmwarehealthcheck script to patrol vsphere

Source: Internet
Author: User

Environment:

ESXi 5.1:

192.168.1.20

192.168.1.21

VCenter 5.1:

192.168.1.105

Vma

First, download and install VMware vSphere Management Assistant

After downloading the extract, open the. ova file directly with VMware Workstation and automatically import the virtual machine

After the import is complete, such as:

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8C/27/wKiom1hjdk3A-PExAADCbuuqTTc319.png-wh_500x0-wm_3 -wmp_4-s_3809170964.png "title=" 1.png "alt=" Wkiom1hjdk3a-pexaadcbuuqttc319.png-wh_50 "/>


Direct start, the process of starting will require the change of vi-admin password, the default is VMware, when the boot is completed as

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/8C/27/wKiom1hjdwuh2-b1AAAZXGobcjI437.png-wh_500x0-wm_3 -wmp_4-s_3350213948.png "title=" 2.png "alt=" Wkiom1hjdwuh2-b1aaazxgobcji437.png-wh_50 "/>

Second, the vmwarevSphereHealthCheck.tar.gz import VMA

Import scripts into VMA's/tmp directory via FTP

Third, unzip the script

Command: TAR-XVF vmwarevSphereHealthCheck.tar.gz

There are two files in the extracted Vmwarevspherehealthcheck folder.

healthcheck.conf//configuration file

vmwarevspherehealthcheck.pl//script File

Iv. Patrol

./vmwarevspherehealthcheck.pl--server esx_esxi_server--username esx_esxi_username--password ESX_ESXi_PASSWORD-- Type Host

IP address or hostname of the ESX_ESXI_SERVER:ESXI host

User name of the ESX_ESXI_USERNAME:ESXI host

Login Password for ESX_ESXI_PASSWORD:ESXI host

Example: Take 192.168.1.20 ESXi host as example (username is root, password is root123)

./vmwarevspherehealthcheck.pl--server 192.168.1.20--username root--password root123--type host

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/8C/23/wKioL1hjeBjyKTmrAAAw3moAtuQ815.png-wh_500x0-wm_3 -wmp_4-s_470966216.png "title=" 3.png "alt=" Wkiol1hjebjyktmraaaw3moatuq815.png-wh_50 "/>

Using LS view, a file named vmware_health_report.html is generated in the current directory

Use FTP to export

Sample report:

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/8C/27/wKiom1hjeJ-TMtCzAADOGi3MsdY424.png-wh_500x0-wm_3 -wmp_4-s_2891079621.png "title=" 4.png "alt=" Wkiom1hjej-tmtczaadogi3msdy424.png-wh_50 "/>


V. Other SCRIPT commands

1. Collection of cluster information provided by vcenter

./vmwarevspherehealthcheck.pl--server vc_server--username vc_username--password VC_PASSWORD--type vcenter

2. Collection of information from a designated data center provided by vcenter

./vmwarevspherehealthcheck.pl--server vc_server--username vc_username--password VC_PASSWORD--type Datacenter-- Datacenter Datacenter_name


3. Collection of information for a specified cluster provided by vcenter

./vmwarevspherehealthcheck.pl--server vc_server--username vc_username--password VC_PASSWORD--type cluster--cluster Cluster_Name


4. Collecting information for a separate ESXi host

./vmwarevspherehealthcheck.pl--server esx_esxi_server--username esx_esxi_username--password ESX_ESXi_PASSWORD-- Type Host


Use the Vmwarehealthcheck script to patrol vsphere

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.