08-16-2013 01:48 AM
hi, guys
I am a newbie of MDS switches.
but I got a request this week asking me to actively backup a "show tech" and a "running config" from the MDS switches........
so my questions are:
1) if I want to back up MDS configurations, which commnds should I run? or just "show tech" is enough?
2) is the MDS itself have the backup function? for example can ftp the configuration to someplace?
please help point me the right direction or is there any official referece docs I can refer to ?
thanks in advance!!!
Solved! Go to Solution.
08-16-2013 01:52 AM
1) to backup MDS configuration you want to run this command:
copy running-config
and then you have multiple options where you can send it to for example you could tftp it
copy running-config tftp://yourftpserver/mdsbackup.txt
2) i don't believe there is a native solution that performs scheduled backups but it's say easy to write a little bash/perl script.
@dynamoxxx
08-16-2013 05:10 AM
Hi,
There is an example of a scheduled backup here on page 1-15 (adobe page 31)
http://www.cisco.com/en/US/docs/storage/san_switches/mds9000/sw/rel_3_x/cookbook/MDScookbook31.pdf
Regards,
David
08-16-2013 01:52 AM
1) to backup MDS configuration you want to run this command:
copy running-config
and then you have multiple options where you can send it to for example you could tftp it
copy running-config tftp://yourftpserver/mdsbackup.txt
2) i don't believe there is a native solution that performs scheduled backups but it's say easy to write a little bash/perl script.
@dynamoxxx
08-16-2013 05:00 AM
Thank you so much dynamoxxx! so the current problem is how to schedulely run this command on the MDS.......but I don't believe there is crontab on the MDS. May need to use expect to log in MDS automactically and run the command to back up the mds config to a target location.
08-16-2013 05:10 AM
Hi,
There is an example of a scheduled backup here on page 1-15 (adobe page 31)
http://www.cisco.com/en/US/docs/storage/san_switches/mds9000/sw/rel_3_x/cookbook/MDScookbook31.pdf
Regards,
David
08-16-2013 05:36 AM
Thank you so much dakester! This is exactly what I am looking for!! I will try it on our environment next week.
08-17-2013 08:42 PM
problem that i have with using automated scheduler from MDS, you can't add any error checking. If your tftp server is down you will not get any alerts, you will think backups are happening but in reality a change on your tftp server broke your backup strategy.
@dynamoxxx
08-19-2013 02:02 AM
thanks for your kindly reminder Dynamoxxx
08-19-2013 08:12 AM
I cured the "no backup happened" by running a script (assuming your tftp is linux/unix) via crontab that checks for a file with the right name and >0 bytes (actually went to higher number after some use history)
08-19-2013 10:41 PM
yeah, that's right, we indeed can monitor the file size on the target tftp location.......
but my current issue is that switch can't connect with my tftp server.......
I just pick up a linux box of the same network section as tftp server....so there is no firewall blocking
but not sure if I need to make some tftp configuration on this linux box.....
so I am still digging~~~
lasfswcor01(config)# copy startup-config tftp://10.119.9.90/home/iyang
Trying to connect to tftp server......
Connection to server Established. Copying Started.....
TFTP put operation failed:Connection timed out
08-19-2013 11:09 PM
I want to use scp way since it uses TCP and requires 22 port only.
but scp requires login usename and password, so it is interactive way ...
so I am wondering if I can put both username and password in the command line?
then I can use Scheduler for scp way.........
lasfswcor01# copy startup-config scp://root@10.119.9.90/home/iyang
The authenticity of host '10.119.9.90 (10.119.9.90)' can't be established.
RSA key fingerprint is 69:d0:55:fe:db:fd:79:7a:65:94:dc:d6:cc:15:e4:75.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.119.9.90' (RSA) to the list of known hosts.
password:
lasfswcor01-startup-config 100% 727KB 727.4KB/s 00:00
08-20-2013 02:46 AM
after configure the tftp server now I can backup our mds config via tftp+scheduler now!!!
thanks everybody for your help!!
really appreciate for your help!!