Have questions about how the Nutanix Platform works? Looking to get started - start here!
Recently active
Below are new knowledge base articles published on the week of September 15-21, 2019. KB 7966 - LCM Pre-check : test_esxi_scratch_space KB 8031 - Alert A1103 - Physical Disk Removed From Slot KB 8047 - Error when adding roles and features KB 8127 - Changing IP address of DB Server in Era KB 8160 - Secure Boot/UEFI with Nutanix KB 8169 - IKVM console error server disconnected code 1006 KB 8173 - LCM: GUI displays "No data found" after successful Inventory operation KB 8178 - BEAM GOVCLOUD FAQs KB 8191 - This cluster has multiple licensing violations KB 8211 - Removing Unreachable DB servers from Era KB 8212 - ESXi-6.5U3 - Updated iso_whitelist Note: You may need to log in to the Support Portal to view some of these articles.
Hi. I am fairly new to scripting especially with Nutanix. I can do Powershell scripting just fine but making the conversion to shell scripts has my brain in a knot. I have some acli commands to create a new vm, create a new Disk and a new NIC but I was unsure how to run them as an executable from my Windows desktop. Our cluster is Nutanix AHV. So I run this from a command line to open putty and connect. It works fine without the script. putty.exe -ssh admin@xxx.xxx.xxx.xxx -pw ****** -m "C:\newVM.sh" The script is: acli; #creates a clone of Server2016 #vm.clone aTest clone_from_vm="Server2016RefImage" memory=8G num_cores_per_vcpu=2 num_vcpus=2; #creates a D drive # vm.disk_create aTest bus=scsi create_size=200G index=1 container="Container-1"; #Add a NIC #vm.nic_create aTest connected=true network="Vlan6"; Each line will run fine if I run it in putty but I am not sure if I am stringing the commands together correctly. If I try to execute the script it opens the putty session the
Below are the top knowledge base articles for the month of August 2019. KB 4141 - Alert - PowerSupplyDown KB 1540 - What to do when /home partition or /home/nutanix directory is full KB 4409 - LCM: (LifeCycle Manager) Troubleshooting Guide KB 4188 - Alert - IPMIError KB 4519 - NCC Health Check: check_ntp KB 4158 - Alert - PhysicalDiskBad KB 2090 - AHV | Host and Guest Networking KB 1863 - NCC Health Check: sufficient_disk_space_check KB 6937 - Firmware Binary Links for Host Boot device(SATADOM/M.2), HBA(LSI 3008) & SATA Drive devices KB 3357 - NCC Health Check: ipmi_sel_cecc_check KB 7077 - Alert - CassandraSSTableHealth KB 2608 - Cluster Health Checks Incorrectly Show Warnings and Failures KB 7503 - G6, G7 platforms -DIMM Error handling and replacement policy KB 1709 - NCC Health Check: hostname_resolution_check KB 7386 - NCC Health Check: power_supply_check KB 5731 - NCC - ERR: Identified as CPU intensive KB 2896 - Nutanix BMC Manual Upgrade Guide KB 1438 - Sh
I am not sure how to check total of Vcpus and how much Vcpus are being used.
Working with the NTNX Powershell cmdlets and struggling to find information regarding the required -metrics argument for the Get-NTNXHostStat cmdlet. Where can the metrics be found?
We are happy to finally say the Nutanix Calm API is live! This includes the release of the Nutanix Calm API documentation on Nutanix.dev, our Developer Portal. The possibilities that are now available along with this announcement are huge for us. It means we can do things like the following in code: Integrate the control of Calm blueprints into external scripts or applications Use conditionals to control when a blueprint gets launched Use conditionals to control which blueprint gets launched Run applications actions on demand by calling the appropriate API It’s also true that, while APIs as an overall “thing” are definitely nothing new, the ability to automate the automation platform is a critical step in controlling infrastructure. Check out the blog 👉 Automate Everything: Nutanix Calm API Docs Are Live! to learn more
Why am I not able to view API v2.0 in the "Rest explorer live" in the console? Also, why does I get an unauthorized error when I use v2 with basic_auth when v3 works fine with the same authentication?
How to list Prism Central servers that belongs only to certain project. For example list only those Vm's that belongs to project "default". "Powerstate" expression name is "powerstate" but what is corresponding name of "project" which I should use to call "project" name? This script is showing vmname and powerstate (runned against Prism Central): Get-NTNXVM | Select @{Expression={$_.vmname};Label=”VMName”},@{Expression={$_.powerstate};Label=”PowerState”}
After having the CVMs down for some cluster maintenance \ VLAN ID changes, everything is back up but after running an NCC check the first check, CVM reboot check, failed. Is this something to be concerned about? What is actually being checked with this?
Dear Friends, I am trying to find out VMs to Storage Container relations using Nutanix REST APIs but not able to get. I have tried both V2.0 and V3 APIs. In 'vms/list' v3 API, we do get "disk_list" for each VM but I do not see these vDisks in 'vdisk' or virtual_disks APIs (v2). Also there is no reference to Storage_Containers in 'vms/list' output so it is difficult for me to find the correlation. Please help.
Using PowerShell and AOS 5.11 and same version cmdlets... I have an AHV VM in the object $VM that I retrieved from Prism Central. I'm trying to retrieve the NIC information but I keep getting an error: PS E:\Scripts> get-ntnxvmnic -vmid $vm.uuid -IncludeAddressAssignments Error occurred while getting NIC list of VM get-ntnxvmnic : The remote server returned an error: (500) Internal Server Error. At line:1 char:1 + get-ntnxvmnic -vmid $vm.uuid -IncludeAddressAssignments + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (Nutanix.Prism.Common.NutanixCluster:NutanixCluster) [Get-NTNXVMNIC], WebException + FullyQualifiedErrorId : {"message":"Error occurred while getting NIC list of VM"},Nutanix.Prism.PS.Cmds.Acropolis.GetVMNIC I get a similar error if I specify the UUID (this VM only has 1 NIC): PS E:\Scripts> get-ntnxvmnic -vmid $vm.uuid -nicid $vm.virtualNicUuids -IncludeAddressAssignments For input string: "Sy" get-ntnxvmnic :
I'm exploring the API and noticed that for listing operations (specifically the /vms/list operation) supports providing sorting parameters. I can't find any information on the proper values for the sort_attribute key in the request. Has anyone used this and can shed some light for me? Thanks
Hi all, We are attempting to update our AOS offline (all of our clusters do not have internet access) and we have tried uploading via IE, FF and Chrome to no avail. IE "uploads forever" and Chrome and Firefox say "Server Error" everytime. We are way past due for an AOS update (5.1.0.3) and we are trying to get this done! I have a few other side questions as well -- Is the AOS upgrade process non-disruptive? I saw the KB about updating the AOS and it says the CVMs will reboot, but other than that it should be seamless, correct? We need to update our hypervisor (ESXi 5.5 Patch 10) and need some input there as well if possible here, since we are on a Nutanix node config and posting here seems like the right place. If not, please let me know! We are running a NX-1065-G4 ESXi 5.5 Patch 10 vCenter 6.0 AOS 5.1.0.3 NCC 3.1.3 Foundation 3.7.2 BIOS 2141203 BMC 01.92 LCM 1.0.e1416e5 HBA MPTFW-10.00.07.00-IT Any input on the order of operations
Using PowerShell and AOS 5.11 connecting to Prism Central of mixed hypervisor environment (VMware and AHV), is there a quick way to return just the AHV VM's? I see there are some search string, filter criteria, etc.. options for Get-NTNXVM Right now, there are 1600 VMs and the ones I am looking for are AHV. I can retrieve the whole list from Prism Central but I wondered if I could have it only send a filtered list. $VMList = Get-NTNXVM | Where { $_.acropolisVm -eq "True" } but that reads all 1600 VMs from Prism Central... Thanks!
Good day I have a requirement to POC CloudFoundry platform(cf push). I have tried project-eirini running on Karbon k8s cluster, it works, kind of, BUT it is still on alpha . So it can't use it on Production. I researched a bit further to see if PCF(Pivotal CloudFoundy) can be installed on Nutanix and found there is no support for vanilla PCF on Nutanix. And the journey led me to this > https://github.com/nutanix/Cloud-Foundry-CPI-for-Nutanix-AHV Creating a CPI for CF on Nutanix. I need to know if this is worthy before I can invest time implementing. Has anyone implemented it? Is it production ready? (seeing it is part of nutanix GH repo) Thanks in advanced
Starting now, the Nutanix Developer Portal will have something new. In addition to our blog, API reference and code samples, we’re going to publish an ever-expanding collection of hands-on labs. Aimed at providing ground-up, hands-on experience with building Nutanix-related developer scripts and apps, they will cover the most popular requests from our valuable developer community. Get started with the labs 👉 Labs
The code samples provided here are intended as standalone examples. They can be downloaded, copied and/or modified in any way you see fit. Please be aware that all code samples provided here are unofficial in nature, are provided as examples only, are unsupported and will need to be heavily modified before they can be used in a production environment. Most code samples can be directly accessed from the NutanixDev GitHub code samples repo. Larger samples will be published via dedicated repos when required. Get started with the code samples 👉 Code Samples
The API references shown here are the official documentation for the Nutanix REST APIs. Please use these in conjunction with the code samples, blog posts and lab guides linked here. In addition to the API reference, the NutanixDev GitHub code samples repo provides working code that implements the practices shown in the documentation. You are welcome to use these code samples in any way you see fit, although they will need modification before being used in a production environment. Get started with our product APIs 👉 Product APIs
I have lots of Protection Domains. I need to keep their schedules straight, prevent overlap, and report the schedules to management. I am not the only admin, so I cannot track the configuration manually. Is there a powershell cmdlet that presents this information? I cannot find it. I want to know the schedule and the replication information(sites and how many to retain). I'm not using protection policies, just old school PD. Thanks, Bill Beavis
All, For info there is a lot of great information, scripts, worked code and examples in the official Nutanix GitHub. Check it out here : https://github.com/nutanix Regards to all Andy @andymlloyd
Hi, I`m very new to Nutanix and have a question. Does anyone know if there is a way to list all current snapshots via a script? I`d like to find out if there are any lingering snapshots that should be removed. Thanks for any advice you might have.
Hi All I've rather large number of non-managed and managed networks to create on multiple clusters and really am not willing to be creating them manually. I've created PowerShell script to create non managed networks, that was pretty easy. However, I'm finding it a bit more challenging to create managed networks using PowerShell commandlets. I understand that the command should look something like New-NTNXNetwork -Name "vLAN_Name" -VlanId "vLAN_ID" -ipconfig "IpConfigDTO" I can not find any samples of IpConfigDTO format. I understand that IPv4 default gateway address and subnet in CIDR notation should be provided as values but I can't work it out how. Any assistance would be much appreciated. Cheers
Our CVMs are locked down tight, I have no intention of allowing any internet access to PE, all support actions must be done through a webex session where our admin grants control to the support tech. but I have PC set up for NAT so it can communicate outside our private network. my question is, will pulse work strictly through PC or does PE need to be set up for it? Everything i see documented is about PE talking to insights.nutanix.com.
Looking for a simple script to Power on a shutdown Nutanix VM. Perhaps there is already a thread on this but I couldn't locate it if so. Thanks!!
I am a huge VS Code user, all I do is run my scripts/codes for local/remote/cloud products within VS Code. So I am now trying to get it so I can compile and run Nutanix Cmdlets within VS Code. I am trying to find the neatest, safest and most maintainable way possible without putting at risk the core of PowerShell. I've only found one post where someone has mentioned doing this and it was by installing the Nutanix Cmdlets and copying the contents of the module's folder into "C:\Windows\System32\WindowsPowerShell\v1.0\Modules". Maybe possible but there are over 200 items that would need copying into the root of this folder, seems messy to me. Can a sub folder called Nutanix be created for the contents to be copied too? Is there a better way to achieving what I feel be a great tool for all? Advice/support much appreciated 🤓
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.