Skip to main content

 

Cisco Catalyst 3750 - Backup config [SSH]

14 months ago
OfflineBrittany Ross
Brittany Ross
Description:

[Originally posted by A Erickson]

The following script is what we are using to backup our Cisco 3750's using SSH.

All we did was adjust the 'PasswordPrompt' variable to include "Using keyboard-interactive authentication" when we SSH'd into the switch.  The rest is default.

Language: WhatsConfigured
Code:
PasswordPrompt = /.*Using keyboard-interactive authentication.*|.*password: /

@login

[running-config,trim-before="!"] show run

[-] exit
-----
You liked this too0 people like this discussion.
 
Concluded

0 Conclusions:

1 Reply

Offlinec ellis c ellis said 3 months ago

I am having issue with it actually saving the config file out.

the script runs all ok, but does not generate the .config file. I have tried unc path/ip and pointing it local to the server.

ssh credentials are all correct, timeouts are fine. however I do notice that when i do a sh users under the switch it does not state my user account is logged into the switch, yet the script runs all ok. any ideas?


Would you like to comment?

You must be a member. Sign In if you are already a member.

  • 1,789 views
  • $obj.VersionIndex versions
  • 1 reply
  • 1 follower
     
Post Date:
February 23, 2011
Posted By:
Brittany Ross

About this forum

  • 23,037 views
  • 19 topics
  • 3 followers
     

Viewed 1,789 times