Open ianeriksonVMware opened 7 years ago
@ianeriksonVMware What directory were you in when you exported/generated the credential file? / Have you verified that it exists and there is valid content within the file, located in the \Plugins\15 NSX
directory?
If so, can you try the following and see if it helps?:
~\Plugins\00 Initialize\01 Connection Plugin for NSX.ps1
in you editor of choice$creds = Import-Clixml "$PSScriptRoot\..\Plugins\15 NSX\nsxmgrCreds.xml"
Hi, can I ask if the steps in the README were followed before running the report? - you need to create and store an xml credentials file, did that happen?
Sent from my iPhone
On 4 Apr 2017, at 18:38, Kevin Kirkpatrick notifications@github.com wrote:
@ianeriksonVMware What directory were you in when you exported/generated the credential file? / Have you verified that it exists and there is valid content within the file, located in the \Plugins\15 NSX directory?
If so, can you try the following and see if it helps?:
Open ~\Plugins\00 Initialize\01 Connection Plugin for NSX.ps1 in you editor of choice On line 20, replace everything with the following: $creds = Import-Clixml "$PSScriptRoot..\Plugins\15 NSX\nsxmgrCreds.xml" — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
..did this get resolved?
Hi, our Customer is working out of Singapore, so its taking some time to get feedback. Will update ASAP.
thanks, Ian
Hi,
Working with a customer who is trying the tool..
They are getting an error "Import-Clixml : Data at the root level is invalid. Line 1, position 1" while setting up the initial configuration.
Snippet of cred file is as below $newPScreds = Get-Credential -message "abcd" $newPScreds | Export-Clixml nsxMgrCreds.xml
thanks, Ian