vmware-archive / powernsx

PowerShell module that abstracts the VMware NSX-v API to a set of easily used PowerShell functions
173 stars 89 forks source link

show control-cluster network ipsec status error #591

Closed michaelshaoul closed 5 years ago

michaelshaoul commented 5 years ago

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 ?

alagoutte commented 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)

michaelshaoul commented 5 years ago

thanks

michaelshaoul commented 5 years ago

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 ?

alagoutte commented 5 years ago

When you use Connect-NsxServer, you can query NSX Controller

What do you need ?

michaelshaoul commented 5 years ago

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​

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.

alagoutte commented 5 years ago

Sorry it is not possible with API to get this info actually

it is only possible to call CLI for a Edge

michaelshaoul commented 5 years ago

thanks Alexis