Skip to content

Instantly share code, notes, and snippets.

View rmorimoto4's full-sized avatar

rmorimoto rmorimoto4

  • Japan
  • 19:47 (UTC +09:00)
View GitHub Profile
@rmorimoto4
rmorimoto4 / hosts-shutdown.sh
Created October 8, 2023 00:49
Shutdown of all VMs on the specified host and host
#!/bin/zsh
# Setting env
export GOVC_URL=<vCenter FQDN>
export GOVC_USERNAME=XXXXX
export GOVC_PASSWORD=XXXXX
export GOVC_INSECURE=true
# Add host names you want to shutdown
host_names=("ESXi FQDN#1" "ESXi FQDN#2" "ESXi FQDN#3" "ESXi FQDN#4")
@rmorimoto4
rmorimoto4 / deploy_nsxt-manager.ps1
Last active January 4, 2022 09:33
Deploying NSXT-Manager using powercli
#Credentials
$vcenter="172.16.xx.xx"
$vcsa_user="administrator@vsphere.local"
$vcsa_password="VMware1!"
#Connect
Connect-VIServer $vcenter -User $vcsa_user -Password $vcsa_password –force
#Setting
$ova_file = "C:\work\xxxxx.ova"