Closed michaelshaoul closed 5 years ago
Hi,
show control-cluster network ipsec status is not a PowerNSX cmdlet but it is a command for CLI (on NSX Controller)
You can look to use NSX Cli cmdlet (via Invoke-NsxCli)
thanks
Hello Alexis, do you know of a command to connect to the controller cluster , perhaps something similar to Connect-NSXServer that I use to connect to the NSX Manager ?
When you use Connect-NsxServer, you can query NSX Controller
What do you need ?
I ran "Connect-NsxServer" command and entered credentials. Then I ran "show control-cluster network ipsec status" .
show : The term 'show' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1
+ CategoryInfo : ObjectNotFound: (show:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Since "show control-cluster network ipsec status is not a PowerNSX cmdlet but it is a command for CLI (on NSX Controller)" So how do I connect to controller via Cli command ? so I may run "show control-cluster network ipsec status"
From: Alexis La Goutte notifications@github.com Sent: 17 July 2019 09:29 To: vmware/powernsx Cc: michaelshaoul; State change Subject: Re: [vmware/powernsx] show control-cluster network ipsec status error (#591)
When you use Connect-NsxServer, you can query NSX Controller
What do you need ?
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://github.com/vmware/powernsx/issues/591?email_source=notifications&email_token=AMSLTRRPWP5RUJNPKUQKIDDP73J7LA5CNFSM4IBJ6PD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2DOJNI#issuecomment-512156853, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMSLTRXF73CE2IYVTLKVXSDP73J7LANCNFSM4IBJ6PDQ.
Sorry it is not possible with API to get this info actually
it is only possible to call CLI for a Edge
thanks Alexis
PS C:\WINDOWS\system32> show control-cluster network ipsec status show : The term 'show' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1
I'm very new to PowerNSX, but please tell why do I get the above error ? and is there a fix ?