VMware Global Community
Tanaris
Contributor
Contributor

powercli 修改主机名

这是我目前使用的脚本

1.PNG

我想通过powercli实现域名加最后几位IP作为主机名:test-50-180

我尝试使用Length来定位,但是由于多个网段,地址长度不一样,无法使用

希望能帮解决,感谢!

0 Kudos
1 Reply
scott28tt
VMware Employee
VMware Employee

Moderator: Thread moved to the Simplified Chinese area.


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos