Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Change the advanced settings of ESXi in bulk through PowerCli

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

1. Connect VCenter

Connect-VIserver vcenter_ip-user user_name-password password

two。 Get all hostnames and assign values to the variable vmhost

$vmhost= get-VMHost

/ / * if you just want to get a list of hosts for a cluster

/ / * $vmhost= get-Cluster-Name cluster_name | get-VMHost

3. Change the advanced parameters of Esxi (take Syslog.global.logHost as an example)

Set-VMHostAdvancedConfiguration-VMHost $vmhost-Name Syslog.global.logHost-Value "udp://192.168.1.100:514"

/ / *-Name is followed by the item to be changed, and-Value is followed by the value to be changed

/ / * all advanced parameter changes refer to the above

#

How do I install PowerCLI on WIN7? Please refer to

Https://blog.51cto.com/14101497/2336447

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report