NeDi Community

NeDi Software Specific => Discovery => Topic started by: martynstar on July 22, 2019, 06:32:46 PM

Title: Cisco backup config error
Post by: martynstar on July 22, 2019, 06:32:46 PM
Hi all!

I am having a bit of an issue with backing up our cisco switches, the first time we run through after an initialising scan, discovery and then adding the usernames to backup the devices it seems to only backup 3 of the 5 devices.

We have then built another NEDI install, and its a different set of the 5 that can be backed up.
I am able to SSH to the device direct from nedi console, discovery via SNMP works fine, and the only error i get is

Matched 'Password: ' login failed

Over and over.

I have tried forcing it to use SSH and telnet and it seems to make no difference, they are exactly the same error.
I cannot get any input or output logs to populate in the file structure, I have followed the Youtube cli diagnostics from 2012? and still cannot see what on earth is going on.

The fact that the different installs, are not able to backup different switches, leads me to a fault in NEDI somewhere?
Title: Re: Cisco backup config error
Post by: ascii on July 25, 2019, 07:42:55 AM
could you please run
Code: [Select]
perl /var/nedi/nedi.pl -vvvkK -B0 -SAFGgsjmvpadobewitu -a IP-of-Switch
from the CLI and post the output
Title: Re: Cisco backup config error
Post by: martynstar on August 05, 2019, 11:12:25 AM
Testing posting, as im getting a security prompt everytime?
Title: Re: Cisco backup config error
Post by: martynstar on August 05, 2019, 11:13:40 AM
sorry was out of touch for a while!

From one server - you get this response, same username and passwords on both..
It seems like Nedi can only have 3switches the same model backed up!
So basically we have two servers, which one can backup a few switches and the other can backup the remaining ones.

Title: Re: Cisco backup config error
Post by: rickli on August 06, 2019, 11:02:25 AM
I know this can be frustrating at times (and I should renew the CLI tutorial)...

If you add -dc the log files should be created, where you can exactly see what's sent and received. Try uncommenting only those credentials that are supposed to work on those devices (or log files get overwritten).

One scenario could be that the banner (or some other output) is interpreted as error. But this should be seen in the log as well.
I did improve this in 1.8, which will be public soon. So it might be worth the wait...
Title: Re: Cisco backup config error
Post by: martynstar on August 16, 2019, 03:24:55 PM
Thanks!

I really cant see any issues between the servers, they are not reporting any error just not able to backup more than 3 switches each, out of the 5. FYI they are running at different times.

Both servers are able to SNMP all 5 switches, but cannot login to all 5..

Server 1 - backs up 1,4 and 5 switches
Server 2 - backs up 2,3,4 switches


I select them all and they are all the same username,password and version, but one server can backup some the other can back up the other, but none can do all 5 in one go!
Title: Re: Cisco backup config error
Post by: rickli on August 19, 2019, 10:00:33 AM
Did the SSH keys change on the switches and you have "known" set in nedi.conf? In that case you could simply update the keys with nedi.pl -kK ...