cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
476
Views
0
Helpful
1
Replies

Issue with Nexus 3K automation backup with scheduler command

Saleh_BCC
Level 1
Level 1

Hi Cisco Team,

 

Can anyone Help me to provide a solution on automation backup configuration step on Cisco nexus 3k platform. I have done all the steps according to cisco site but still its failing the backup due to permission issue with Backup server. Please find the relevant configuration from my end.

 

Configuration:

===========

config terminal
  feature scheduler
  scheduler logfile size 128
end

config terminal
scheduler aaa-authentication username cisco password 7 EyG1Kc02
end

config terminal
 scheduler job name NX-BackUp-Config
copy running-config scp://172.22.48.97/home/cisco/NEXUS3K-2/$(SWITCHNAME)-conf.$(TIMESTAMP) vrf management

end

config terminal
  scheduler schedule name NX-Schedule
    time daily 10:50
end

no feature telnet
feature scp-server
feature vrrp
feature tacacs+
feature scheduler
feature lacp
feature lldp
feature vtp

 

ip ssh source-interface mgmt0
ip ssh source-interface mgmt0 vrf management

 

Output error

==========

 

==============================================================================
Job Name       : NX-BackUp-Config                  Job Status: Failed (1)
Schedule Name  : NX-Schedule                       User Name : cisco
Completion time: Wed Jan 17 17:17:16 2018
--------------------------------- Job Output ---------------------------------
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
lost connection
 
`copy running-config startup-config `
[###                                     ]   6%
[######                                  ]  12%
[#########                               ]  20%
[###########                             ]  26%
[##############                          ]  32%
[#################                       ]  40%
[###################                     ]  46%
[######################                  ]  53%
[#########################               ]  60%
[###########################             ]  67%
[##############################          ]  73%
[#################################       ]  81%
[###################################     ]  87%
[######################################  ]  93%
[########################################] 100%
Copy complete, now saving to disk (please wait)...
==============================================================================

 

While doing manually with this script:

============================

 

BCC_NEXUS_SW_02# copy running-config scp://172.22.48.97/home/cisco/NEXUS3K-2/$(SWITCHNAME)-conf.$(TIMESTAMP) vrf management
Enter username: cisco
The authenticity of host '172.22.48.97 (172.22.48.97)' can't be established.
RSA key fingerprint is 11:5c:d4:78:29:61:eb:59:53:3b:e2:d2:14:97:ee:ae.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '172.22.48.97' (RSA) to the list of known hosts.
cisco@172.22.48.97's password:
Permission denied, please try again.
cisco@172.22.48.97's password:
BCC_NEXUS_SW_02-running-config                                                                                                        100%   12KB  12.3KB/s   00:00
Copy complete, now saving to disk (please wait)...
BCC_NEXUS_SW_02#

1 Reply 1

Saleh_BCC
Level 1
Level 1

Hi,

 

Anyone there to solve this issue urgently. Thanks 

 

Regards,

Saleh

Review Cisco Networking for a $25 gift card