首页 > 技术文章 > window-运行perl脚本(搭建health-check环境)

skylumia 2015-06-11 13:43 原文

  1. 安装vsphere sdk

VMware-vSphere-Perl-SDK-5.1.0-780721.exe ##看具体的情况安装对应版本的sdk

  1. 修改系统环境变量,将安装路径Perl/bin和Perl/site/bin添加到path变量的后面
  2. cmd到perl脚本目录:

perl *.pl  --serrver ip –username name –type vcenter ##vcenter服务器

perl *.pl     --server ip –username name –type host          ##ESXi/ESX主机

 

  1. 对于windows环境变量这块的perl修改,建议安装ActivePerl来设置。效果会更好。

ActivePerl

activerPerl下载地址:http://www.activestate.com/activeperl/downloads

 

推荐阅读