Unable to access Viptela-Shell from script for version 20.12
Manage Password (Note: Tool doesn't support passwords containing "!") :
Traceback (most recent call last):
File "newsure.py", line 1954, in
def showCommand(exec_mode_command): exec_mode_command = exec_mode_command+'\n' exec_mode_command = exec_mode_command.encode() p = subprocess.Popen('viptela_cli'.format(args.username), shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) p.stdin.write(exec_mode_command) #passing command stdOutput,stdError = p.communicate() p.stdin.close() return stdOutput.decode()
Manage Password (Note: Tool doesn't support passwords containing "!") :
/home/admin/newsure.py(1955)
() -> version, version_tuple = vManageVersion() (Pdb) print(showCommand('show version'))
(Pdb) version=showCommand('show version')
(Pdb) print(version)
(Pdb)
I have the same issue, running Manager version 20.12.3.
vmanage# show version
20.12.3
vmanage:~$ python3 py3_sure.py -u admin
vManage Password (Note: Tool doesn't support passwords containing "!") :
Traceback (most recent call last):
File "py3_sure.py", line 1953, in <module>
version, version_tuple = vManageVersion()
File "py3_sure.py", line 315, in vManageVersion
version_tuple =tuple([int(i) for i in version_tuple])
File "py3_sure.py", line 315, in <listcomp>
version_tuple =tuple([int(i) for i in version_tuple])
ValueError: invalid literal for int() with base 10: ''