9

I am trying to copy a show tech from an ASA to a remote server via FTP. My issue is that the password I am providing has a '@' and it is being interpreted incorrectly by the CLI. I have tried putting a '\@' but the command still fails.

Anyone have any luck with this?

This works

  show tech-support file ftp://username:password@xxx.xxx.xxx.xxx/ASA-SHOW-TECH

This Does not work

  show tech-support file ftp://username:p@ssword@xxx.xxx.xxx.xxx/ASA-SHOW-TECH
Blake
  • 922
  • 2
  • 10
  • 20

4 Answers4

6

The problem here is that the device is interpreting the first @ as the delimiter between the credentials and the FTP server address.

Perhaps configuring the username and password in global-configuration mode and then redirecting the show tech without specifying the credentials would do the trick. Otherwise, and I know this is a wimpy solution, changing the password to not include that one character may be the easiest and perhaps most secure way of working around this issue.

Yosef Gunsburg
  • 1,615
  • 10
  • 19
  • Can you specify how you set ftp username and password in the global config? Thanks – Blake Jun 17 '13 at 21:50
  • 2
    I am not sure if it is the same syntax on an ASA, but on a Cisco router you use the commands `ip ftp username` and `ip ftp password` in global configuration mode to set a default username and password for FTP connections. – Yosef Gunsburg Jun 17 '13 at 21:56
0

On IOS you can enter control-v to escape the next character. This lets you enter a question mark without pulling up help. Don't if that works on ASA but might be worth a try.

Dave Noonan
  • 950
  • 7
  • 16
0

It does not seem like it is supported, so the work around is to just change the password that does not have the @ special character if you need to automate the process.

Blake
  • 922
  • 2
  • 10
  • 20
0

This works for ios not sure if it will work for the ASA

https://supportforums.cisco.com/discussion/9945506/entering-question-mark-ios-command

  • 1
    Please consider adding more details to this answer so it remains useful even if the linked document is removed or changes. – Teun Vink Aug 04 '17 at 11:50