How to backup Cisco ASA with Inventory Manager

  • 0
  • 2
  • Article
  • Updated 1 year ago
The default TFTP script does not work for backing up a Cisco ASA using inventory manager.  So I changed it to this: (just needed a few spaces for the return character to be interpreted.


-- Use these scripts to manage Cisco devices
name="BackupASA"
desc="Cisco Systems ASA SSH/TFTP Scripts"
protocol=TFTP
--
-----BEGIN SCRIPT "Configuration Upload"-----
enable
%ENABLEPSWD%
copy running-config tftp:

%TFTP_IP%
%RELATIVE_TARGET_FILE_PATH%



@receive 40
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "Configuration Upload"-----
bytes copied
-----END SUCCESS-----
-----BEGIN SCRIPT "Configuration Download"-----
enable
%ENABLEPSWD%
copy %TFTP_URL% startup-config

startup-config

@receive 60

exit
-----END SCRIPT-----
-----BEGIN SUCCESS "Configuration Download"-----
bytes copied
-----END SUCCESS-----


Put the script in your devicefiles directory on your NetSight server.
Photo of Jeremy

Jeremy, Embassador

  • 9,788 Points 5k badge 2x thumb

Posted 1 year ago

  • 0
  • 2
Photo of Ronald Dvorak

Ronald Dvorak, Embassador

  • 47,414 Points 20k badge 2x thumb
Thanks Jeremy,

great work, I've put it in my notes for future use.
Photo of Brian Anderson

Brian Anderson

  • 722 Points 500 badge 2x thumb
Just tried it, works great!
Photo of daniel.griffis

daniel.griffis

  • 260 Points 250 badge 2x thumb
I wonder if this same trick works for other Cisco scripts that do not work correctly
Photo of Jeremy

Jeremy, Embassador

  • 9,788 Points 5k badge 2x thumb
Most likely! 
Photo of daniel.griffis

daniel.griffis

  • 260 Points 250 badge 2x thumb
I have built several scripts now that work great with Cisco, do you have any other info about Cisco integration? I have came really close to getting the Firmware upgrade to work but not at 100%. I even finally have been able to get the flexviews I have created to work in Extreme Management rather than just the java application. After I am able to get the IOS upgrades to work my next attempt will be to enable the ability to see and historically monitor cpu, fan status and temperature.