4:15 PM (3 minutes ago)
Hello,
Im wondering if there is a way without using send_pexpect to validate a host. I have hundreds of IPs where i need to validate if my tacacs username is valid and if not then to expect a comment. The issue im running is that im unable to validate the expect was due to my credentials or the host is not up.
i=0 while i
try:
conn = SSH2(verify_fingerprint = False)
conn.connect(allips)
conn.login(usuario)
adding = allips, "goods"
print adding
lista_buena.append(allips)
#time.sleep(1)
except:
adding2 = allips,"NOT GOOD"
print adding2
lista_mala.append(adding2)
i += 1
Thanks,