zjp0633 发表于 2018-8-30 11:35:12

window-运行perl脚本(搭建health-check环境)


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

[*]  修改系统环境变量,将安装路径Perl/bin和Perl/site/bin添加到path变量的后面
[*]  cmd到perl脚本目录:
  perl *.pl--serrver ip –username name –type vcenter ##vcenter服务器
  perl *.pl   --server ip –username name –type host          ##ESXi/ESX主机

[*]  对于windows环境变量这块的perl修改,建议安装ActivePerl来设置。效果会更好。
  ActivePerl
  activerPerl下载地址:http://www.activestate.com/activeperl/downloads

页: [1]
查看完整版本: window-运行perl脚本(搭建health-check环境)