I have a username and password with "@".Not able to use it in -u options #2917
-
I have a username and password with "@".Not able to use it in -u options.I tried setting the GOVC_USERNAME AND password as env but still not working |
Beta Was this translation helpful? Give feedback.
Answered by
soma-purestorage
Jul 28, 2022
Replies: 2 comments 1 reply
-
I cannot replicate this issue. See the following test and proper character encoding for environment variables: # run vcenter simulator container
docker run -p 8989:8989 --rm vmware/vcsim -username "[email protected]" -password "p@ssword" -l 0.0.0.0:8989 # configure govc
export GOVC_URL=https://some%40user.local:p%[email protected]:8989/sdk
export GOVC_INSECURE=true
# execute command
govc about
FullName: VMware vCenter Server 6.5.0 build-5973321 (govmomi simulator)
Name: VMware vCenter Server
Vendor: VMware, Inc.
Version: 6.5.0
Build: 5973321
OS type: linux-amd64
API type: VirtualCenter
API version: 6.5
Product ID: vpx
UUID: dbed6e0c-bd88-4ef6-b594-21283e1c677f |
Beta Was this translation helpful? Give feedback.
1 reply
-
working with escape character thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tenthirtyam
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
working with escape character thanks