[rancid] ASA-5585 Enable mode

2017-12-28 Thread Azher
Hi All,

Our current Cisco ASA devices "ASA5550" , 8.4(7)30, work fine with RANCID.

Same config does not work for ASA-5585, 9.8(1). I am not sure why it is
sending "admin" twice and later it sends "enable" at the prompt  Any
suggestions ?

add user sslvpnb admin
add password sslvpnb pass1 pass2
add autoenable sslvpnb 0
add method sslvpnb ssh

[rancid@rancid ~]$ more var/asa/router.db
sslvpn1;cisco;up
sslvpn2;cisco;up
sslvpna;cisco;up
sslvpnb;cisco;up

[rancid@rancid ~]$ clogin sslvpnb
sslvpnb
spawn ssh -c aes128-ctr,aes128-cbc,3des-cbc -x -l admin sslvpnb
admin@sslvpnb's password:
User admin logged in to sslvpnb
Logins over the last 44 days: 29.  Last login: 18:09:41 PST Dec 28 2017
from 68.181.191.19
Failed logins since the last login: 0.  Last failed login: 06:47:32 PST Dec
28 2017 from 68.181.191.19
Type help or '?' for a list of available commands.
sslvpnb> admin
 ^
ERROR: % Invalid input detected at '^' marker.

Error: Unrecognized command, check your enable command
sslvpnb> admin
 ^
ERROR: % Invalid input detected at '^' marker.
sslvpnb> enable
Password:
Invalid password
Password:
Invalid password
Password:
Invalid password
Access denied.
sslvpnb>


Thanks
-Azher
___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

Re: [rancid] Enterasys Switches help

2017-12-28 Thread Azher
Hi Chris,

I added following lines in the "rancid.types.base " otherwise there is just
a reference of enterasys to rivrancid.

enterasys;script;xrancid
enterasys;login;xlogin
enterasys;command;enterasys::ShowVersion;show version
enterasys;command;enterasys::WriteTerm;show config

Running in debug mode:

[rancid@rancid ~/etc]$ rancid -d -t enterasys cal3-n7
loadtype: device type enterasys
loadtype: found device type enterasys in /opt/rancid/etc/rancid.types.base
loadtype: undefined function in enterasys: enterasys::ShowVersion
Couldn't load device type spec for enterasys

I am not sure why it is complaining because xrancid does have this function
defined:

# This routine parses "show version"
sub ShowVersion {
print STDERR "In ShowVersion: $_" if ($debug);

And in the main routine:

# Main
@commandtable = (
{'show version' => 'ShowVersion'},
### {'show memory'  => 'ShowMemory'},
### {'show diag'=> 'ShowDiag'},
### {'show switch'  => 'ShowSwitch'},
### {'show slot'=> 'ShowSlot'},
# way too confusing {'show configuration detail'=> 'WriteTerm'},
{'show config'  => 'WriteTerm'},
);

Trying rivrancid also complains about no commands:

[rancid@rancid ~]$ rivrancid -d cal3-n7
executing rivlogin -t 90 -c"system show uptime;system show version;system
show hardware;system show active-config" cal3-n7
cal3-n7: missed cmd(s): all commands
cal3-n7: End of run not found
cal3-n7: clean_run is false
!

Thanks
-Azher




On Thu, Dec 28, 2017 at 2:39 PM, Gauthier, Chris 
wrote:

> I would take a look at the rancid types file to make sure it’s running the
> commands you need.  It seems like it’s throwing up in the very beginning of
> its run.
>
>
>
> There are several emails in the list on how to get into a “debugging” mode
> if you’re not already familiar.  That will help completely isolate the
> issue.
>
>
>
> --Chris
>
>
>
>
> Chris  Gauthier  Senior Network Engineer  |  comScore, Inc.
> t +1 *(503) 331-2704* <(503)%20331-2704>  |
> *cgauth...@comscore.com* 
> 317
> 
>  SW
> 
>  Alder
> 
>  Street,
> 
>  Suite
> 
>  700
> 
>  |
> 
>   Portland,
> 
>  OR
> 
>  97204
> 
>United
> 
>  States
> 
> *comscore.com* 
> ​​​This e-mail (including any attachments) may contain information that is
> private, confidential, or protected by attorney-client or other privilege.
> If you received this e-mail in error, please delete it from your system and
> notify sender.
>
>
> *From: *Rancid-discuss  on behalf
> of Azher 
> *Date: *Thursday, December 28, 2017 at 2:26 PM
> *To: *"rancid-discuss@shrubbery.net" 
> *Subject: *[rancid] Enterasys Switches help
>
>
>
> Hi All,
>
> I have a large deployment of different Enterasys switches
> (S,K,B,C,D,7100). It seems rancid is not happy with 

Re: [rancid] Enterasys Switches help

2017-12-28 Thread Gauthier, Chris
I would take a look at the rancid types file to make sure it’s running the 
commands you need.  It seems like it’s throwing up in the very beginning of its 
run.

There are several emails in the list on how to get into a “debugging” mode if 
you’re not already familiar.  That will help completely isolate the issue.

--Chris



Chris Gauthier Senior Network Engineer | comScore, Inc.
t +1 (503) 331-2704 |
cgauth...@comscore.com
317 SW Alder Street, Suite 700 | Portland, OR 97204  United States
comscore.com
​​​This e-mail (including any attachments) may contain information that is 
private, confidential, or protected by attorney-client or other privilege. If 
you received this e-mail in error, please delete it from your system and notify 
sender.
From: Rancid-discuss  on behalf of Azher 

Date: Thursday, December 28, 2017 at 2:26 PM
To: "rancid-discuss@shrubbery.net" 
Subject: [rancid] Enterasys Switches help

Hi All,
I have a large deployment of different Enterasys switches (S,K,B,C,D,7100). It 
seems rancid is not happy with these switches somehow.

clogin to the same device successfully logs into the switch and gives prompt 
and I can type the commands.

When trying "rancid-run -r cal3-n7", the log file throws this error:

[rancid@rancid ~/var/logs]$ tail -f extreme.20171228.113653
starting: Thu Dec 28 11:36:53 PST 2017

Trying to get all of the configs.

cal3-n7 xlogin error: Error: Unknown: "terminal"
cal3-n7: missed cmd(s): show version,show config
cal3-n7: End of run not found
#
=
Getting missed routers: round 1.
cal3-n7 xlogin error: Error: Unknown: "terminal"
cal3-n7: missed cmd(s): show version,show config
cal3-n7: End of run not found
#
All routers successfully completed.

cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs
---
Here is the config section:
[rancid@rancid ~/var/extreme]$ more router.db | grep cal3-n7
cal3-n7;enterasys;up

# Extreme Switches
add user cal3-n7 admin
add autoenable cal3-n7 1
add password cal3-n7 
add method cal3-n7 ssh

I have gone through some of the scripts which are in the mailing list, tried 
them, but no luck.

Any one has experience with Enterasys devices ? Any working scripts would 
greatly help.


Thanks
-Azher



___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

[rancid] Enterasys Switches help

2017-12-28 Thread Azher
Hi All,

I have a large deployment of different Enterasys switches (S,K,B,C,D,7100).
It seems rancid is not happy with these switches somehow.

clogin to the same device successfully logs into the switch and gives
prompt and I can type the commands.

When trying "rancid-run -r cal3-n7", the log file throws this error:

[rancid@rancid ~/var/logs]$ tail -f extreme.20171228.113653
starting: Thu Dec 28 11:36:53 PST 2017

Trying to get all of the configs.

cal3-n7 xlogin error: Error: Unknown: "terminal"
cal3-n7: missed cmd(s): show version,show config
cal3-n7: End of run not found
#
=
Getting missed routers: round 1.
cal3-n7 xlogin error: Error: Unknown: "terminal"
cal3-n7: missed cmd(s): show version,show config
cal3-n7: End of run not found
#
All routers successfully completed.

cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs
---

Here is the config section:
[rancid@rancid ~/var/extreme]$ more router.db | grep cal3-n7
cal3-n7;enterasys;up

# Extreme Switches
add user cal3-n7 admin
add autoenable cal3-n7 1
add password cal3-n7 
add method cal3-n7 ssh


I have gone through some of the scripts which are in the mailing list,
tried them, but no luck.

Any one has experience with Enterasys devices ? Any working scripts would
greatly help.


Thanks
-Azher
___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss