cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1020
Views
0
Helpful
3
Replies

[D9902] Backup via SSH

wbunce
Level 1
Level 1

Edit: This is in regards to a DCM 9902.

 

I'm aware of the configuration backup via the GUI. It appears the only interface via SSH is bash. Is there a script or command available via SSH that will allow backup of current configurations that stores the settings file in the device inventory similar to how the export utility in the GUI does?

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

There is 2 method of backof you can do, depends on device support.

 

event manager applet backup-crl

event timer watchdog time 86400 maxrun 4294967295

action 1.0 cli command "enable"

action 2.0 cli command "copy flash:/iosca.crl ftp://username:passwd@a.b.c.d/" pattern "a.b.c.d"

action 3.0 cli command "a.b.c.d" pattern "iosca.crl"

action 4.0 cli command "iosca.crl"

action 5.0 syslog msg "FTP backup successful"

 

 

you can do in teh device EEM script to auto backup every day.

or bash script from Linux using expect command to backup (using cron job)

 

#!/usr/bin/expect

# ACCESSW01

# Backup script for ACCESSW01

#

set timeout 15

set name "username"

set pass "password-for-user"

spawn telnet ACCESSW01

expect "sername:"

send "$name\r"

expect "password:"

send "$pass\r"

expect "HQ-ACCESSW01#"

send "copy start tftp\r"

expect "ddress or name of remote host []?"

send "XXX.XXX.XXX.XXX\r"

expect "?"

send "\r"

expect "HQ-ACCESSW01#"

send "exit\r"

expect eof

 

 

change the script as per your requirement.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

If I'm not mistaken the DCM D9902 does not run IOS, so the standard commands will not work.

Apologies, i have give information in related to Switch and routers.

 

i will get back to you after looking DCM 9902.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help