asbuiltreport / asbuiltreport.nutanix.prismelement Goto Github PK
View Code? Open in Web Editor NEWRepository for AsBuiltReport Nutanix Prism Element module
Home Page: https://www.asbuiltreport.com
License: MIT License
Repository for AsBuiltReport Nutanix Prism Element module
Home Page: https://www.asbuiltreport.com
License: MIT License
Is your feature request related to a problem? Please describe.
It is always important to know the current usage of IP addressing in subnets. Collecting information can be difficult.
Describe the solution you'd like
It would be really useful to have an IP address Report as part of the export. This would allow for easy input into a IPAM, spread sheet, DB, etc. The idea would be to have this in a list of individual IPs. So each IP address would be on a line/row of its own.
Maybe the columns would be something like below.
IP(v4/v6),VMName,vNIC,VLAN#,SubnetName,IPAMMethod,vSwitch,Node/Host,Cluster,Location
Describe alternatives you've considered
Writing my own script to do the same thing but this is a nice solution and would benefit others so coding in a vacuum is not ideal.
Additional context
None
*** Bug Description ***
Receiving the following error when trying to run New-AsBuiltReport against a Nutanix cluster:
New-AsBuiltReport : The remote server returned an error: (412) Precondition Failed.
At line:1 char:1
+ New-AsBuiltReport -Report Nutanix.PrismElement -Target 10.118.17.30 - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-AsBuiltReport
*** To Reproduce (Method 1) ***
Steps to reproduce the behavior:
$nxUser = "<Nutanix Username>"
$nxPassword = ConvertTo-SecureString "<Nutanix Password>" -AsPlainText -Force
$nxCredentials = New-Object System.Management.Automation.PSCredential ( $nxUser, $nxPassword )
New-AsBuiltReport -Report Nutanix.PrismElement -Target <Nutanix Prism Element Cluster VIP> -Credential $nxCredentials -Format Word -Orientation Portrait -OutputPath 'C:\!Incoming\'
*** To Reproduce (Method 2) ***
Steps to reproduce the behavior:
New-AsBuiltReport -Report Nutanix.PrismElement -Target <Nutanix Prism Element Cluster VIP> -Username '<Nutanix Username>' -Password '<Nutanix Password>' -Format Word -Orientation Portrait -OutputPath 'C:\!Incoming\'
Expected behavior
Expecting As Built Report to be generated at 'C:!Incoming'
Screenshots
If applicable, add screenshots to help explain your problem.
*** Environment Information ***
*** Additional Context ***
Connect-NTNXCluster -Server 10.118.17.30 -Password $nxPassword -UserName admin -AcceptInvalidSSLCerts
Describe the bug
VERBOSE: [ 09:29:39:222 ] [ Document ] - Processing section 'Licensing' started.
New-AsBuiltReport: You cannot call a method on a null-valued expression.
Expected behavior
when i launch the script, with admin right on Prism Element, Ip and user admin - password correct.. always this error message.. when the script Process the section 'Licensing' apparently
always at this moment, at this check
Desktop (please complete the following information):
Describe the bug
In certain conditions on AOS 6.5.3, Licensing in the API reflects starter and not fully licensed.
This causes the script to fail with error "You cannot call a method on a none valued expression" when processing Licensing region beginning at line 425 of Invoke-AsBuiltRreport.Nutanix.PrismElement.ps1.
The specific failure is when ($NtnxLicense.category).Replace('_',' ') is called on line 433 as the object is null and has no methods
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The script looks for information in the object retrieved from the API called licenseDTO. In the fault condition this is null and information is in a different object called licenseInfoDTO which has a different structure.
Screenshots!
image
Desktop (please complete the following information):
Additional context
This was tested against AOS 6.5.7 on another cluster and the script ran without issue.
Commenting out lines 425 to 483 in Invoke-AsBuiltRreport.Nutanix.PrismElement.ps1. is a work around to let the script continue to run.
Describe the bug
I ran the Nutanix as build report for the first time on two different clusters and got the exact error.
New-AsBuiltReport : Cannot bind argument to parameter 'Name' because it is an empty string.
At line:1 char:1
Desktop (please complete the following information):
Describe the bug
While attempting to run the Nutanix Element script, against a single or multiple PEs, with either admin creds, or AD creds, I get the following error without any files being created:
New-AsBuiltReport : Cannot bind argument to parameter 'Rows' because it is an empty collection.
At line:1 char:1
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-AsBuiltRepor
To Reproduce
I'm using the following to run the script: New-AsBuiltReport -Report Nutanix.PrismElement -Target 10.11.6.10 -Credential (Get-Credential) -Format HTML,Word -OutputPath 'd:\scripts\asbuilt' -TimeStamp -Verbose
Expected behavior
expect it to finish the run without errors and produce the files.
Screenshots
Screenshot attached
Desktop (please complete the following information):
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.