vmware-archive / powernsx

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

problem with get-nsxedge #574

Open MartinEtcheverry opened 5 years ago

MartinEtcheverry commented 5 years ago

first of all , i am fairly new to powernsx . when i put get-nsxedge , i get : Exception calling "WriteContentTo" with "1" argument(s): "'☺', hexadecimal value 0x01, is an invalid character." At C:\Users\user\Documents\WindowsPowerShell\Modules\PowerNSX\3.0.1125\PowerNSX.psm1:3516 char:9

Exception calling "WriteContentTo" with "1" argument(s): "'↑', hexadecimal value 0x18, is an invalid character." At C:\Users\user\Documents\WindowsPowerShell\Modules\PowerNSX\3.0.1125\PowerNSX.psm1:3516 char:9

any hint?

alagoutte commented 5 years ago

Hi,

What your powershell release ?

MartinEtcheverry commented 5 years ago

PS C:> $PSVersionTable.PSVersion

Major Minor Build Revision


5 0 10586 117

alagoutte commented 5 years ago

other cmdlet work ? (you are connected to the NSX ?)

MartinEtcheverry commented 5 years ago

hi , sorry for my lateness , yes is connecting correctly PS C:> Connect-NsxServer -NsxServer xxx.xxx.xxx.xxx Using existing PowerCLI connection to xxx.xxx.xxx.xxx

Version : 6.2.5 BuildNumber : 4818372 Credential : System.Management.Automation.PSCredential Server : xxx.xxx.xxx.xxx Port : 443 Protocol : https UriPrefix : ValidateCertificate : False VIConnection : vcenter DebugLogging : False DebugLogfile : C:\Users\admin\AppData\Local\Temp\2\PowerNSXLog-admin@xxx.xxx.xxx.xxx-2019_04_05_09_45_32.log

alagoutte commented 5 years ago

Ok... it is a very old release of NSX...

other cmdlet work ?

MartinEtcheverry commented 5 years ago

well get-nsxservice is working, sorry i was just starting with powernsx. so i don't know much about the commands.

alagoutte commented 5 years ago

There is something on the Edge don't like by the API...

You don't have a special configuration ?

Do you have multiple Edge ?

MartinEtcheverry commented 5 years ago

Hi, thank you for the reply! as i know the nsx doesen't have any special config. the edges are pretty simple configs , only ha in some , but nothing more . i will create a new "clean" vm to discard the running environment. you have any sugestion about the versions of powershell / powercli , to better support powernsx?

alagoutte commented 5 years ago

last release work for me... (but i think the issue coming from the NSX Release... 6.2.x is very old...)

MartinEtcheverry commented 5 years ago

yes , i know but checking the updates path , they gona update "this year" so i will try to check everything else :-D wish me luck !

MartinEtcheverry commented 3 years ago

hi , i found this old problem , and actually today i get the same (and blindly open another problem #649), this time with other powershell version (windows/linux)

windows - ps version 7.06 powercli PowerCLI Version

VMware PowerCLI 12.2.0 build 17538434

Component Versions

VMware Common PowerCLI Component 12.3 build 17838947 VMware Cis Core PowerCLI Component PowerCLI Component 12.3 build 17839331 VMware VimAutomation VICore Commands PowerCLI Component PowerCLI Component 12.3 build 17839688---- VMware VimAutomation Storage PowerCLI Component PowerCLI Component 12.3 build 17855705 VMware VimAutomation Vds Commands PowerCLI Component PowerCLI Component 12.3 build 17856667