vCheckReport / vCheck-NSX

vCheck-NSX is an NSX-focussed reporting tool that can give you a periodic (i.e. Daily) look into the health of your platform.
https://vcheck.report/
MIT License
18 stars 6 forks source link

error with tool #10

Open ianeriksonVMware opened 7 years ago

ianeriksonVMware commented 7 years ago

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.

2017-03-22_17-43-30 1

Snippet of cred file is as below $newPScreds = Get-Credential -message "abcd" $newPScreds | Export-Clixml nsxMgrCreds.xml

thanks, Ian

vScripter commented 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?:

  1. Open ~\Plugins\00 Initialize\01 Connection Plugin for NSX.ps1 in you editor of choice
  2. On line 20, replace everything with the following: $creds = Import-Clixml "$PSScriptRoot\..\Plugins\15 NSX\nsxmgrCreds.xml"
davehocking commented 7 years ago

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.

davehocking commented 7 years ago

..did this get resolved?

ianeriksonVMware commented 7 years ago

Hi, our Customer is working out of Singapore, so its taking some time to get feedback. Will update ASAP.

thanks, Ian