This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ova_file = "C:\work\nsx-edge-3.1.2.0.0.17884008-le.ova" | |
$nsx_manager_thumbprint = "XXXXXXXXXXXXXXXXXXXXXXXXXXX" | |
$ovf_config = Get-OvfConfiguration -Ovf $ova_file | |
# DeploymentOption | |
$ovf_config.DeploymentOption.Value = "small" | |
# NetworkMapping | |
$ovf_config.NetworkMapping.Network_0.Value = "dvpg-0010-mgmt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ova_file = "C:\work\nsx-unified-appliance-3.1.2.0.0.17884005-le.ova" | |
$ovf_config = Get-OvfConfiguration -Ovf $ova_file | |
# DeploymentOption | |
$ovf_config.DeploymentOption.Value = "small" | |
# NetworkMapping | |
$ovf_config.NetworkMapping.Network_1.Value = "dvpg-0010-mgmt" | |
# Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-VMHost | Sort-Object Name | % { | |
$hv = $_ | |
$hv_pcpu_count = $hv.NumCpu | |
$power_on_vms = $hv | Get-VM | where {$_.PowerState -eq "PoweredOn"} | |
$hv_vcpu_count = ($power_on_vms| Measure-Object -Sum NumCpu).Sum + 0 | |
$hv_oc_percent = $hv_vcpu_count / $hv_pcpu_count * 100 | |
"-----" | |
$hv.Parent.Name + "/" + $hv.Name + " ConnectionState:" + $hv.ConnectionState | |
"$hv_pcpu_count pCPU で、$hv_vcpu_count vCPU が起動中です。" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Delete Nutanix Files File Server | |
hosts: localhost | |
connection: local | |
gather_facts: no | |
vars_files: | |
- ./login.yml | |
- ./login-ad.yml | |
vars: | |
fs_name: "test-fs-01" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Create Nutanix Files File Server | |
hosts: localhost | |
connection: local | |
gather_facts: no | |
vars_files: | |
- ./login.yml | |
- ./login-ad.yml | |
vars: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "test-fs-01", | |
"sizeGib": 1024, | |
"dnsDomainName": "ntnx.lab", | |
"numCalculatedNvms": 1, | |
"numVcpus": 4, | |
"memoryGiB": 12, | |
"externalNetworks": [ | |
{ | |
"name": "nw-vlan-31", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ncli file-server create \ | |
name=test-fs-01 \ | |
dns-domain-name=ntnx.lab \ | |
size-gib=1000 \ | |
nvm-count=1 \ | |
external-virtual-network=f513d008-8d20-4826-893e-5363918a6f46 \ | |
external-virtual-network-mask=255.255.255.0 \ | |
external-virtual-network-gateway=192.168.31.1 \ | |
external-virtual-network-ips=192.168.31.11 \ | |
dns-server-ip-address-list=192.168.10.170 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"active_standby": true, | |
"aggressive_failure_detection": false, | |
"algo": "PLACEMENT_ALGO_DISTRIBUTED", | |
"app_cache_percent": 0, | |
"app_cache_threshold": 5, | |
"app_learning_memory_percent": 0, | |
"archive_shm_limit": 8, | |
"async_ssl": false, | |
"async_ssl_threads": 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Create / Output Avi SE Group | |
hosts: localhost | |
connection: local | |
gather_facts: false | |
vars_files: | |
- ./login.yml | |
vars: | |
avi_cloud_name: Default-Cloud |