i try to use python for get vm name on vmware (vsphere) when i execut this python script:
https://github.com/vmware/pyvmomi-community-samples/blob/master/samples/get_vm_names.py
i have this message :
python3 test2.py --host ip_of_vmware
usage: test2.py [-h] -s HOST [-o PORT] -u USER [-p PASSWORD] [-S]
test2.py: error: the following arguments are required: -u/--user
i don't know how to execut this script.
i think its this line which used to put in parameter:
si = SmartConnectNoSSL(host=args.host,
user=args.user,
pwd=args.password,
port=int(args.port))
atexit.register(Disconnect, si)
i want to know how to execute this script. thanks for any response,