Connecting Cloud Innovators: Building Community at .NEXT 2024
Thank you @Sergei Ivanov for the quick response. I got it right. However, I am trying to run the .csv report by collecting all these information in a single csv file and below is script I am using for that but however I am not right output . Nut sure what I am missing here? I am getting the output only for $NTNXHost and not getting any info for $NTNXVM. $report = @() $NTNXHost = Get-NTNXHost | Select-Object name,serviceVMExternalIP,hypervisorAddress,hypervisorUsername,ipmiAddress,ipmiUsername,serial,blockModelName $report+=$NTNXHost $report += "`r`n" $NTNXClusterInfo = Get-NTNXClusterInfo | Select-Object name,clusterExternalIPAddress $report+=$NTNXClusterInfo $report += "`r`n" $NTNXVM = Get-NTNXVM -SearchString "VM is a Nutanix CVM" | ft vmname,ipAddresses $report+=$NTNXVM $report | Export-Csv -Path testreport.csv -NoTypeInformation -UseCulture
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.