-
1. Re: Getting error with Connect-NsxtServer : Invalid JSON primitive
LucD Jan 12, 2018 9:19 AM (in response to pkharekofax)Any more info when you add the Verbose switch?
-
2. Re: Getting error with Connect-NsxtServer : Invalid JSON primitive
pkharekofax Jan 12, 2018 10:03 AM (in response to LucD)Hi LucD,
Exact same error with Verbose.
C:\> Connect-NsxtServer -Server xxx -Verbose
Connect-NsxtServer : 1/12/2018 12:59:29 PM Connect-NsxtServer Invalid JSON primitive: .
At line:1 char:1
+ Connect-NsxtServer -Server xxx -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Connect-NsxtServer], VimException
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.Cis.Nsxt.Commands.Cmdlets.ConnectNsxtServer
Thanks,
Khare
-
3. Re: Getting error with Connect-NsxtServer : Invalid JSON primitive
LucD Jan 12, 2018 10:04 AM (in response to pkharekofax)Looks like a bug, I suggest you open a SR
-
4. Re: Getting error with Connect-NsxtServer : Invalid JSON primitive
pkharekofax Jan 12, 2018 10:11 AM (in response to pkharekofax)I asked another person in my team to try and he got the same error.
Thanks,
Khare
-
5. Re: Getting error with Connect-NsxtServer : Invalid JSON primitive
pkharekofax Jan 12, 2018 10:12 AM (in response to LucD)OK, I'll log an SR.
Thanks,
Khare
-
6. Re: Getting error with Connect-NsxtServer : Invalid JSON primitive
LucD Jan 12, 2018 10:14 AM (in response to pkharekofax)When they give you a hard time to open a SR for PowerCLI, point them to PowerCLI Support Breakdown
-
7. Re: Getting error with Connect-NsxtServer : Invalid JSON primitive
pkharekofax Jan 18, 2018 8:01 AM (in response to LucD)Thanks, LucD.. That's good to know.
This was a user error, my bad - I was trying to connect to NSX-V using an NSX-T command. The correct command is Connect-NsxServer, not Connect-NsxtServer.
Khare