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

Script automated ESA version 8.5.6 configuration backup.

a12288
Level 3
Level 3

I have automated script to:

1) SSH into ESA

2) Generate configuration file

3) Back it up.

The script works fine until I did the upgrade in the past weekend, what I found is that now on version 8.5.6, the command "saveconfig no" is restricted to "cluster mode", and I need to find a way to insert "y" into my script,

here is my script, any suggestion to fix it? thanks.

FILENAME=`ssh -l xxx -i /home/xxx/.ssh/id_rsa $HOSTNAME "saveconfig no" | grep xml | cut -f 3 -d " "`
scp -i /home/xxx/.ssh/id_rsa xxx@$HOSTNAME:./configuration/$FILENAME /usr/tftpboot/tftp/ironport

 

Leo Song

 

1 Reply 1

annmar_szkb
Level 1
Level 1

Hi

i fixed this Problem with:

... $HOSTNAME "clustermode cluster; saveconfig no"

 

Regards

Martin Annen