System CMD for ASA

ASA platforms can maintain one or more startup configuration files in flash
By default, an ASA stores its startup configuration in a hidden partition of flash memory. That file has no usable name
To force the ASA to use a different startup configuration filename, you can use the following command:
ciscoasa(config)# boot config url
flash:path/disk0:path/disk1:path     !path represents the directory path that points to the file.
boot config disk0:/new-startup.cfg    !on next reload it will use newconfig file

After the above comand save the config (wr mem) to stop ASA using the hiden location and start using the new one
show bootvar                    !See the current startup configuration environment variable
If empty its using default location

Clear the ASA Config
====================
clear configure all        !Clears the entire running configuration
clear configure primary     !Clears all commands related to connectivity (ip address/mtu/monitor-interface/boot/route/failover/tftp-server)
clear configure secondary     !Clears all commands not related to ASA connectivity
clear configure command     !Clears all commands that use the command keyword

IOS image
=========
copy tftp://192.168.100.10/asa823-k8.bin disk0:/asa823-k8.bin
ciscoasa# configure terminal
ciscoasa(config)# boot system disk0:/asa823-k8.bin
ciscoasa(config)#
ciscoasa# show bootvar

Reload
======
reload at hh:mm [day month | month day]
reload in {mm | hhh:mm}

reload cancel

Download IOS from ROMMON
========================
1. Interrupt the bootup sequence. Press Esc or Break at the appropriate time
2. Identify an ASA interface where the TFTP server is located.
rommon> interface physical-name
3. Assign an IP address to the ASA interface. rommon> address ip-address
4. Assign a default gateway. rommon> gateway ip-address
5. Identify the TFTP server address. rommon> server ip-address
6. Identify the image filename. rommon> file filename
7. Test connectivity to the TFTP server. rommon> ping ip-address
8. Initiate the TFTP file download. rommon> tftpdnld

Note: Be aware that even though the image file is downloaded and executed by the ASA,
it is not permanently stored anywhere. After the ASA finishes booting, you should copy
the same image file onto a flash file system by using the copy command.

rommon #1> address 192.168.100.5
rommon #2> gateway 192.168.100.1
rommon #3> server 192.168.100.10
rommon #4> file asa823-k8.bin
rommon #6> ping 192.168.100.10
Sending 20, 100-byte ICMP Echoes to 192.168.100.10, timeout is 4 seconds:
!!!!!!!!!!!!!!!!!!!
Success rate is 95 percent (19/20)
rommon #7>
rommon #7> tftpdnld
ROMMON Variable Settings:
ADDRESS=192.168.100.5
SERVER=192.168.100.10
GATEWAY=192.168.100.1
PORT=Ethernet0/0
VLAN=untagged
IMAGE=asa823-k8.bin
CONFIG=
LINKTIMEOUT=20
PKTTIMEOUT=4
RETRY=20
tftp asa823-k8.bin@192.168.100.10 via 192.168.100.1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Tags: ,

About Alexis Katsavras

Working as Freelance Cisco Unified Communications Consultant in the UK. www.NetPacket.co.uk