cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
45078
Views
1
Helpful
6
Replies

Write Memory Command

jaysoo
Level 1
Level 1

It seems weird to me that when you type "wr" at an ASA prompt it does a write memory.  Shouldn't it come back and tell you it's an ambiguous command?

1 Accepted Solution

Accepted Solutions

Because is an option meaning "write" by itself can be executed as a command.

ASA# write ?

  erase     Clear flash memory configuration
  memory    Save active configuration to the flash
  net       Save the active configuration to the tftp server
  standby   Save the active configuration on the active unit to the flash on
            the standby unit
  terminal  Display the current active configuration

ASA# write
Building configuration...
Cryptochecksum: 36477bc7 288bc4ea 13323898 2ef48dde

18090 bytes copied in 1.480 secs (18090 bytes/sec)
[OK]

-KS

View solution in original post

6 Replies 6

andamani
Cisco Employee
Cisco Employee

Hi,

It will not give you ambiguos command as there is only one command which starts with wr.

Here is the output when you type '?' after wr.

ciscoasa# wr?

  write

Hope this answeres your query.

Regards,

Anisha

P.S.: Please mark this query as resolved if you feel your query is answered.

Yes but there are multiple options after a write command, such as:

erase

net

standby

terminal

So I would expect it to at least say "incomplete command" like it does with the command "conf" (configure), as an example.

I guess my question should have been why doesn't it say "incomplete command" rather than just doing a write memory.

Because is an option meaning "write" by itself can be executed as a command.

ASA# write ?

  erase     Clear flash memory configuration
  memory    Save active configuration to the flash
  net       Save the active configuration to the tftp server
  standby   Save the active configuration on the active unit to the flash on
            the standby unit
  terminal  Display the current active configuration

ASA# write
Building configuration...
Cryptochecksum: 36477bc7 288bc4ea 13323898 2ef48dde

18090 bytes copied in 1.480 secs (18090 bytes/sec)
[OK]

-KS

Yeah I see what you mean. So I guess the "memory" option is redundant really.

Well, if you just issue "write" the default is mem althought it is an available option.

Just like the "snmp-server enable traps" command if you hit enter the default is syslog although that is an option as well.

ASA(config)# snmp-server enable traps ?

configure mode commands/options:
  all            Enable all traps
  entity         Enable ENTITY MIB notifications
  ipsec          Enable IPSec traps
  remote-access  Enable remote-access traps
  snmp           Enable SNMP traps
  syslog         Enable syslog traps
 

ASA(config)# snmp-server enable traps
ASA(config)# sh run snmp-s
snmp-server host inside 192.168.2.2 community *****
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
snmp-server enable traps syslog
snmp-server enable traps ipsec start

-KS

Understood. It's just something I've wondered about for a few years and finally got around to asking. I do "wr t"s all day and sometimes I type too fast for my own good and hit enter before the "t", and end up doing a "write memory" instead of a "write terminal".

Thanks for your help.

Review Cisco Networking for a $25 gift card