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

Automatic backup config ASA/PIX

andrey.iliyov
Level 1
Level 1

How i can do Automatic backup configuration on ASA/PIX

like: "archive" on IOS

Someone has ideas how I can make it on ASA/PIX?

Thanks

3 Replies 3

srue
Level 7
Level 7

i wrote perl scripts for it - if you want it posted, lemmie know.

Yes, I would like to look it.

Thanxs

I am by no means a Perl expert, this is just something i happened to get working. It opens a file at location /path/to/file/pixhosts.db, to get IP's (which i configured a web interface to add/remove hosts for). the format for that is simply one IP address per line. you must first configure each pix/asa with the tftp-server command, and make sure your tftp server is configured properly. then, run the script as a cron job. the script performs a 'write mem and write net'. i wrote a similar script for IOS.

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

use Net::Telnet::Cisco;

$passwd = 'telnet_passwd';

$enable_passwd = 'enable_password';

open (HOSTS, "/path/to/file/pixhosts.db");

@hosts = ;

chomp (@hosts);

foreach $pix (@hosts)

{

my $session = Net::Telnet::Cisco->new(Host => $pix, Timeout => 30);

$session->prompt('/[\$%#>] $/');

$session->login('username', $passwd);

$session->enable($enable_passwd);

$session->cmd("write mem\nwrite net\n");

}

close (HOSTS);

Review Cisco Networking products for a $25 gift card