Discovery script Login issue
I am writing a discovery which has to log-in into a switch with SSH. The switch is discovered by the host connection by SNMP discovery a while ago.
A added the credentials for SSH into the ucmdb, discovered it by host connection by shell (so there is a reference in the the credentials dictionary) and wrote the script.
So far, nothing special.
When I run the script it connects to the client (createClient) and according to the communication log there is a successful connection. But...
The switch asks me for another log-in, before I can run the command.
The username and password are for both times the same.
I can log-in into the switch and run the command, manually.
What did I tried already.
* createClient twice did not help. I got twice the same client.
* execute the username and password as commands. So when the system asks for a username, I would send the username. The same for password.
* created properties to add as parameter to the createClient.
Please help me to tackle this issue.
Re: Discovery script Login issue
I noticed that when I connect with telnet it does not asks me twice for the username and password.
Still have to find out why the connection with telnet via ucmdb fails and via putty works.