12-19-2018 11:26 AM - edited 03-15-2019 05:42 AM
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?
12-19-2018 01:09 PM
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.
12-20-2018 06:48 AM
12-20-2018 09:38 AM
Apologies, i have give information in related to Switch and routers.
i will get back to you after looking DCM 9902.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide