Welcome, Guest. Please login or register.

Author Topic: Config Backup Cisco ASA55xx - Cisco WLC  (Read 3043 times)

ralto

  • Newbie
  • *
  • Posts: 12
    • View Profile
Config Backup Cisco ASA55xx - Cisco WLC
« on: April 08, 2016, 02:28:53 PM »
Hi,

whats the secret to get Configuration backups running on these devices.

For ASAs i got:
Quote
Prepare (CLI)  ----------------------------------------------------------------
PREP:No working user

But working users are defined in nedi.conf

BG
Ralph

ralto

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Config Backup Cisco ASA55xx - Cisco WLC
« Reply #1 on: April 10, 2016, 10:29:35 AM »
hi again,

ok now the next question... how could i get an answer .... there are no more topics to descripe!

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2697
    • View Profile
    • NeDi
Re: Config Backup Cisco ASA55xx - Cisco WLC
« Reply #2 on: April 12, 2016, 11:48:10 AM »
If you tried a backup without a working user, the tcp port is set to 1 with that NeDi knows not to try again. You need to reset the CLI port in Devices-Status, then click "Configuration Backup" to try again.
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

ralto

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Config Backup Cisco ASA55xx - Cisco WLC
« Reply #3 on: April 18, 2016, 07:50:35 AM »
Hi Remo,

i got this error also during the fresh first scan, and yes i also resettet the CLI. I also tried to delete the devices several times.

Gruß
Ralph

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2697
    • View Profile
    • NeDi
Re: Config Backup Cisco ASA55xx - Cisco WLC
« Reply #4 on: April 19, 2016, 05:29:35 PM »
I can recommend the CLI tutorial on youtube to debug such problems...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

ascii

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
Re: Config Backup Cisco ASA55xx - Cisco WLC
« Reply #5 on: April 20, 2016, 06:41:44 AM »
my ASA 5555-X and my WLC CT5505 work fine.
but i'm not sure if i tweaked somethink somewhere.

attached are both of my def files

my nedi/inc/libcli.pm looks like these
Code: [Select]
$cmd{'IOS-wlc'}{'ropr'} = '\(Cisco Controller\) >$';
$cmd{'IOS-wlc'}{'enpr'} = $cmd{'IOS-wlc'}{'ropr'};
$cmd{'IOS-wlc'}{'conf'} = 'show run-config commands';
$cmd{'IOS-wlc'}{'strt'} = '.';
$cmd{'IOS-wlc'}{'page'} = 'config paging disable';

...

$cmd{'IOS-asa'}{'ropr'} = '[\w+().-]+>\s?$';
$cmd{'IOS-asa'}{'enpr'} = '[\w+().-]+#\s?$';
$cmd{'IOS-asa'}{'enab'} = 'enable';
#$cmd{'IOS-asa'}{'conf'} = 'show run';
$cmd{'IOS-asa'}{'conf'} = 'more system:running-config';                                                 # displays plain-text keys, tx uestueno
$cmd{'IOS-asa'}{'strt'} = '^PIX|ASA';
$cmd{'IOS-asa'}{'end'}  = '^: end$';
$cmd{'IOS-asa'}{'page'} = 'no terminal pager';                                                          # PIX 8.0.3, ASA 8.2
$cmd{'IOS-asa'}{'arp'} = 'show arp';

lewelschfou

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Config Backup Cisco ASA55xx - Cisco WLC
« Reply #6 on: May 13, 2016, 03:47:49 PM »
Hello,

Most of our ASAs have contexts. When you are directly connected to a context the command "more system:running-config" does not work, so I switched the comment of the 2 lines of libcli.pm as following.

$cmd{'IOS-asa'}{'conf'} = 'show run';
#$cmd{'IOS-asa'}{'conf'} = 'more system:running-config';

Now backup ASA config are working fine.

Regards
Alain

Thanks Remo for your great job. I moved to another company. I could install Nedi here, so I am learning our infrastructure quicker and better.

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2697
    • View Profile
    • NeDi
Re: Config Backup Cisco ASA55xx - Cisco WLC
« Reply #7 on: May 14, 2016, 11:24:32 AM »
Wasn't aware this would work! Excellent, if it does. I'll switch to your suggestion and leave the old one commented as reference...

Glad NeDi is helpful to you, tx for the feedback  ;D
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2697
    • View Profile
    • NeDi
Re: Config Backup Cisco ASA55xx - Cisco WLC
« Reply #8 on: May 24, 2016, 03:45:45 PM »
I'm working on a 5585 at a customer right now. We can't seem to get the contexts with "sh run". Looks like we only get the admin configuration. Did you configure anything to get all contexts?

I suspect a "sh contexts" and then iterate through them with "changeto context name" and do a "sh run" in each one of them. Has anyone else a better idea?

Alternatively a "ftp get" on *CFG might work as well?

Last but not least, can a "ftp put" be scheduled on the ASAs?
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo