[rancid] Aruba - Wireless Controllers

2019-10-25 Thread reza
Hello Rancid Group,

I’m trying to get my Rancid setup working with newly acquired Aruba wireless 
controllers, A650 and A3000s running 6.1, 6.3 and 6.4 AOS versions.

I’m using Mike32’s Aruba module which was recommended from the Shrubbery FTP, 
https://github.com/miken32/rancid-aruba/. 

When I run rancid in debug mode against one of my device it failed in “End of 
run not found”. I manually logged in with clogin to the device and ran “write 
term” and verified the last line is end. Which is was is expected on line 546 
of the Aruba.pm file, 
https://github.com/miken32/rancid-aruba/blob/master/aruba.pm#L546. 

I’m hoping someone else has had some luck with this module and can provide some 
help.

rancid@rancid:~$ rancid -d -t aruba site2-wc2
loadtype: device type aruba
loadtype: found device type aruba at /etc/rancid/rancid.types.conf:115
executing clogin -t 90 -c"no paging;show version;show master-redundancy;show 
boot;show image version;dir;show interface transceivers;show 
packet-capture;show inventory;show vlan;write term" site2-wc2
    In aruba::inloop: PROMPT MATCH: \(site2-wc2\) >
HIT COMMAND:(site2-wc2) >no paging
    In RunCommand: (site2-wc2) >no paging
HIT COMMAND:(site2-wc2) >show version
    In aruba::ShowVersion: (site2-wc2) >show version
HIT COMMAND:(site2-wc2) >show master-redundancy
    In aruba::ShowMasterRedundancy: (site2-wc2) >show master-redundancy
HIT COMMAND:(site2-wc2) >show boot
    In aruba::ShowBoot: (site2-wc2) >show boot
HIT COMMAND:(site2-wc2) >show image version
    In aruba::ShowImageVersion: (site2-wc2) >show image version
HIT COMMAND:(site2-wc2) >dir
    In aruba::Dir: (site2-wc2) >dir
HIT COMMAND:(site2-wc2) >show interface transceivers
    In aruba::ShowInterfaceTransceivers: (site2-wc2) >show interface 
transceivers
HIT COMMAND:(site2-wc2) >show packet-capture
    In aruba::ShowPacketCapture: (site2-wc2) >show packet-capture
HIT COMMAND:(site2-wc2) >show inventory
    In aruba::ShowInventory: (site2-wc2) >show inventory
HIT COMMAND:(site2-wc2) >show vlan
    In aruba::ShowVLAN: (site2-wc2) >show vlan
HIT COMMAND:(site2-wc2) >write term
    In aruba::WriteTerm: (site2-wc2) >write term
site2-wc2: End of run not found
site2-wc2: found_end is false
!
rancid@rancid:~$

I’m running Rancid 3.10 (built from source) on Ubuntu 18.04.

rancid@rancid:~$ rancid -V
rancid 3.10

rancid@rancid:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"

rancid@rancid:~$ grep aruba /etc/rancid/rancid.types.conf
aruba;script;rancid -t aruba
aruba;login;clogin
aruba;module;aruba
aruba;inloop;aruba::inloop
aruba;command;aruba::RunCommand;no paging
#aruba;command;aruba::RunCommand;encrypt disable
aruba;command;aruba::ShowVersion;show version
aruba;command;aruba::ShowMasterRedundancy;show master-redundancy
aruba;command;aruba::ShowBoot;show boot
aruba;command;aruba::ShowImageVersion;show image version
aruba;command;aruba::Dir;dir
aruba;command;aruba::ShowInterfaceTransceivers;show interface transceivers
aruba;command;aruba::ShowPacketCapture;show packet-capture
aruba;command;aruba::ShowInventory;show inventory
aruba;command;aruba::ShowVLAN;show vlan
aruba;command;aruba::WriteTerm;write term
rancid@rancid:~$

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


Re: [rancid] Fwd: Rancid - cmwlogin - HPE switches

2019-10-25 Thread john heasley
Fri, Oct 25, 2019 at 02:27:52PM +0200, Kevin Olbrich:
> Hi Henri,
> 
> ok, old releases are a no-go for me, as I have HP devices with recent FW
> that would loop (find diff on every refresh) as HP introduced a timestamp
> for some commands.
> I would like to see CMW work in 3.9+ but I was unable to get this working
> on my own (I have no perl skills and don't plan to extend them).

Assuming code quality, old scripts ought to work to with rancid 3.9/3.10.
See the FAQ S4 Q1.  The shebang of the script may need to be updated for
your environment.

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


Re: [rancid] Fwd: Rancid - cmwlogin - HPE switches

2019-10-25 Thread Kevin Olbrich
Hi Henri,

ok, old releases are a no-go for me, as I have HP devices with recent FW
that would loop (find diff on every refresh) as HP introduced a timestamp
for some commands.
I would like to see CMW work in 3.9+ but I was unable to get this working
on my own (I have no perl skills and don't plan to extend them).

Kind regards
Kevin

Am Fr., 25. Okt. 2019 um 13:50 Uhr schrieb henri hemery <
henri.hem...@gmail.com>:

> Hi Kevin, I am using rancid 3.4.1, I followed this procedure:
> https://www.petenetlive.com/KB/Article/0001331
>
> HPE 5130 was not working with cmwlogin module, but works fine with module
> h3crancid, after I modified it as mentioned in my previous mail.
>
>
>
> On Fri, Oct 25, 2019 at 5:20 AM Kevin Olbrich  wrote:
>
>> Are you using a recent release of rancid, eg. 3.9?
>>
>> As these scripts did not work for me and the switch stack does not get
>> many updates, I simply backed them up myself in the past.
>> All other devices worked fine.
>>
>> Kind regards
>> Kevin
>>
>>
>> Am Do., 24. Okt. 2019 um 20:29 Uhr schrieb henri hemery <
>> henri.hem...@gmail.com>:
>>
>>>
>>> I think I found the solution.

 I finally can use h3clogin//h3crancid work for my HPE 5130.
 Here is what I modified in the file h3crancid:

 I had to modify the first line by this:

 #! /usr/bin/perl5.16.3 --» Because it is what we have in
 /usr/bin

 And I also modified this line:

 my $logincmd = "/usr/local/rancid/bin/h3clogin";--» because the
 script was unable to locate h3clogin

 Thanks for your help all!



 On Thu, Oct 24, 2019 at 10:27 AM Ugo Bellavance  wrote:

> There is no such file on my version (2.3).
>
> In 2.3, the config was in rancid-fe, I think and it looked like this:
>
> 'h3c'   => 'h3crancid',
>
> The login command was defined it the *rancid script:
>
> my $logincmd = "h3clogin";
>
>
> On Thu, Oct 24, 2019 at 8:55 AM henri hemery 
> wrote:
>
>> Thanks Ugo, so you modified /usr/local/rancid/etc/rancid.types.conf
>> like this? :
>>
>> h3c;script;h3crancid -t cmw
>> h3c;login;h3clogin
>>
>> On Thu, Oct 24, 2019 at 8:11 AM Ugo Bellavance  wrote:
>>
>>> I don't know if that helps, but I'm running rancid with a 5120, but
>>> I'm using h3crancid, because I use an old version of rancid.
>>>
>>> Regards
>>>
>>> On Thu, Oct 24, 2019 at 8:07 AM henri hemery 
>>> wrote:
>>>

> Have you read this
> https://sites.google.com/site/jrbinks/code/rancid/cmwrancid ?
>
> Yes, I dicovered cmwlogin from this page and I followed every
 step, but I think this module is not for every type of comware 7 
 devices


> You may want to read this thread:
> http://www.shrubbery.net/pipermail/rancid-discuss/2018-February/010065.html
>

 Yes I read that thread, not so much to learn from..But I gonna try
 to get in touch with the person.

>
> On Wed, Oct 23, 2019 at 3:57 PM henri hemery <
> henri.hem...@gmail.com> wrote:
>
>> Hi,
>>
>>
>>
>> I would like to know if some of you succeeded in backing UP HPE
>> switches.
>>
>> I successfully backed up HP FF 7910, HP 2530, but no way to back
>> up HPE 5130 and HP 5120.
>>
>>
>>
>> If I type this command:
>>
>>
>>
>>
>>
>> *[rancid@cardlswbkp1 bin]$ ./cmwlogin -c "display version"
>> 10.1.170.1*
>>
>> *10.1.170.1*
>>
>> *spawn telnet 10.1.170.1*
>>
>> *Trying 10.1.170.1...*
>>
>> *Connected to 10.1.170.1.*
>>
>> *Escape character is '^]'.*
>>
>>
>>
>>
>> 
>>
>> ** Copyright (c) 2010-2017 Hewlett Packard Enterprise Development
>> LP  **
>>
>> ** Without the owner's prior written
>> consent, **
>>
>> ** no decompiling or reverse-engineering shall be
>> allowed.**
>>
>>
>> 
>>
>>
>>
>> *login: [login]*
>>
>> *Password:*
>>
>> *undo smart*
>>
>> * ^*
>>
>> *% Unrecognized command found at '^' position.*
>>
>> *undo interactive*
>>
>> * ^*
>>
>> *% Unrecognized command found at '^' position.*
>>
>> *undo terminal monitor*
>>
>> *

Re: [rancid] Fwd: Rancid - cmwlogin - HPE switches

2019-10-25 Thread henri hemery
Hi Kevin, I am using rancid 3.4.1, I followed this procedure:
https://www.petenetlive.com/KB/Article/0001331

HPE 5130 was not working with cmwlogin module, but works fine with module
h3crancid, after I modified it as mentioned in my previous mail.



On Fri, Oct 25, 2019 at 5:20 AM Kevin Olbrich  wrote:

> Are you using a recent release of rancid, eg. 3.9?
>
> As these scripts did not work for me and the switch stack does not get
> many updates, I simply backed them up myself in the past.
> All other devices worked fine.
>
> Kind regards
> Kevin
>
>
> Am Do., 24. Okt. 2019 um 20:29 Uhr schrieb henri hemery <
> henri.hem...@gmail.com>:
>
>>
>> I think I found the solution.
>>>
>>> I finally can use h3clogin//h3crancid work for my HPE 5130.
>>> Here is what I modified in the file h3crancid:
>>>
>>> I had to modify the first line by this:
>>>
>>> #! /usr/bin/perl5.16.3 --» Because it is what we have in
>>> /usr/bin
>>>
>>> And I also modified this line:
>>>
>>> my $logincmd = "/usr/local/rancid/bin/h3clogin";--» because the
>>> script was unable to locate h3clogin
>>>
>>> Thanks for your help all!
>>>
>>>
>>>
>>> On Thu, Oct 24, 2019 at 10:27 AM Ugo Bellavance  wrote:
>>>
 There is no such file on my version (2.3).

 In 2.3, the config was in rancid-fe, I think and it looked like this:

 'h3c'   => 'h3crancid',

 The login command was defined it the *rancid script:

 my $logincmd = "h3clogin";


 On Thu, Oct 24, 2019 at 8:55 AM henri hemery 
 wrote:

> Thanks Ugo, so you modified /usr/local/rancid/etc/rancid.types.conf
> like this? :
>
> h3c;script;h3crancid -t cmw
> h3c;login;h3clogin
>
> On Thu, Oct 24, 2019 at 8:11 AM Ugo Bellavance  wrote:
>
>> I don't know if that helps, but I'm running rancid with a 5120, but
>> I'm using h3crancid, because I use an old version of rancid.
>>
>> Regards
>>
>> On Thu, Oct 24, 2019 at 8:07 AM henri hemery 
>> wrote:
>>
>>>
 Have you read this
 https://sites.google.com/site/jrbinks/code/rancid/cmwrancid ?

 Yes, I dicovered cmwlogin from this page and I followed every step,
>>> but I think this module is not for every type of comware 7 devices
>>>
>>>
 You may want to read this thread:
 http://www.shrubbery.net/pipermail/rancid-discuss/2018-February/010065.html

>>>
>>> Yes I read that thread, not so much to learn from..But I gonna try
>>> to get in touch with the person.
>>>

 On Wed, Oct 23, 2019 at 3:57 PM henri hemery <
 henri.hem...@gmail.com> wrote:

> Hi,
>
>
>
> I would like to know if some of you succeeded in backing UP HPE
> switches.
>
> I successfully backed up HP FF 7910, HP 2530, but no way to back
> up HPE 5130 and HP 5120.
>
>
>
> If I type this command:
>
>
>
>
>
> *[rancid@cardlswbkp1 bin]$ ./cmwlogin -c "display version"
> 10.1.170.1*
>
> *10.1.170.1*
>
> *spawn telnet 10.1.170.1*
>
> *Trying 10.1.170.1...*
>
> *Connected to 10.1.170.1.*
>
> *Escape character is '^]'.*
>
>
>
>
> 
>
> ** Copyright (c) 2010-2017 Hewlett Packard Enterprise Development
> LP  **
>
> ** Without the owner's prior written
> consent, **
>
> ** no decompiling or reverse-engineering shall be
> allowed.**
>
>
> 
>
>
>
> *login: [login]*
>
> *Password:*
>
> *undo smart*
>
> * ^*
>
> *% Unrecognized command found at '^' position.*
>
> *undo interactive*
>
> * ^*
>
> *% Unrecognized command found at '^' position.*
>
> *undo terminal monitor*
>
> *The current terminal is disabled to display logs.*
>
> **
>
> *terminal length 0*
>
> * ^*
>
> *% Unrecognized command found at '^' position.*
>
> *terminal width 132*
>
> * ^*
>
> *% Unrecognized command found at '^' position.*
>
> *display version*
>
> *HPE Comware Software, Version 7.1.070, Release 3208P03*
>
> *Copyright (c) 2010-2017 Hewlett Packard Enterprise Development LP*
>
> *HP

Re: [rancid] Fwd: Rancid - cmwlogin - HPE switches

2019-10-25 Thread Vacheslav
so i decided to upgrade rancid in hopes of getting rid of the message i
n the morning which one cisco switch produces on fresh boot. and so i
install from rancid-master which turned out to be rancid 3.9
and here is what i get

Trying to get all of the configs.
cisco-isr: missed cmd(s): dir /all bootflash:, show controllers, show
controllers cbus, show diagbus, show diag, show capture, show module
switch, show module, show spe version, show c7200, show cellular 0
profile, show inventory raw, show inventory, show vtp status, show
vlan, show vlan-switch, show switch detail, show sdm prefer, show
system mtu, show debug, show shun, more system:running-config, show
running-config view full, show running-config
cisco-isr: End of run not found
!Flash: bootflash: drwx 4096  Feb 27 2018 13:59:45
+03:00  vman_fdb

there is a folder vman_fdb which shows using the dir /all bootflash:

similar messages on other devices are:

cisconexus-1: missed cmd(s): dir logflash:, dir slot0:, dir usb1:, dir
usb2:, dir volatile:, show module, show inventory, show interface
transceiver, show vlan, show debug, show cores vdc-all, show processes
log vdc-all, show module fex, show fex
cisconexus-1: End of run not found
!Flash: logflash: Usage for logflash://sup-local

and from searching, the solution is to comment out the following
commands:

#cisco;command;ios::DirSlotN;dir /all nvram:
#cisco;command;ios::DirSlotN;dir /all bootflash:
#cisco;command;ios::DirSlotN;dir /all slot0:
#cisco;command;ios::DirSlotN;dir /all disk0:
#cisco;command;ios::DirSlotN;dir /all slot1:
#cisco;command;ios::DirSlotN;dir /all disk1:
#cisco;command;ios::DirSlotN;dir /all slot2:
#cisco;command;ios::DirSlotN;dir /all disk2:
#cisco;command;ios::DirSlotN;dir /all harddisk:
#cisco;command;ios::DirSlotN;dir /all harddiska:
#cisco;command;ios::DirSlotN;dir /all harddiskb:
#cisco;command;ios::DirSlotN;dir /all sup-bootdisk:;c6500 sup32
#cisco;command;ios::DirSlotN;dir /all sup-bootflash:;c6500 ios
#cisco;command;ios::DirSlotN;dir /all sup-microcode:;c6500 ios
#cisco;command;ios::DirSlotN;dir /all slavenvram:
#cisco;command;ios::DirSlotN;dir /all slavebootflash:
#cisco;command;ios::DirSlotN;dir /all slaveslot0:
#cisco;command;ios::DirSlotN;dir /all slavedisk0:
#cisco;command;ios::DirSlotN;dir /all slaveslot1:
#cisco;command;ios::DirSlotN;dir /all slavedisk1:
#cisco;command;ios::DirSlotN;dir /all slaveslot2:
#cisco;command;ios::DirSlotN;dir /all slavedisk2:
#cisco;command;ios::DirSlotN;dir /all slavesup-bootflash:;c7600
#cisco;command;ios::DirSlotN;dir /all sec-nvram:
#cisco;command;ios::DirSlotN;dir /all sec-bootflash:
#cisco;command;ios::DirSlotN;dir /all sec-slot0:
#cisco;command;ios::DirSlotN;dir /all sec-disk0:
#cisco;command;ios::DirSlotN;dir /all sec-slot1:
#cisco;command;ios::DirSlotN;dir /all sec-disk1:
#cisco;command;ios::DirSlotN;dir /all sec-slot2:
#cisco;command;ios::DirSlotN;dir /all sec-disk2:

and 

#cisco-nx;command;nxos::DirSlotN;dir bootflash:
#cisco-nx;command;nxos::DirSlotN;dir debug:
#cisco-nx;command;nxos::DirSlotN;dir logflash:
cisco-nx;command;nxos::DirSlotN;dir slot0:
cisco-nx;command;nxos::DirSlotN;dir usb1:
cisco-nx;command;nxos::DirSlotN;dir usb2:
#cisco-nx;command;nxos::DirSlotN;dir volatile:
cisco-nx;command;nxos::ShowModule;show module
#cisco-nx;command;nxos::ShowModule;show module xbar
#cisco-nx;command;nxos::ShowModule;show module X;add, but wait for show
all
#cisco-nx;command;nxos::ShowModule;show module X epld;add, but wait for
show all

this all sounds abnormal because in the previous version there were
just 2 commands commented out for nexus ..


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


Re: [rancid] Fwd: Rancid - cmwlogin - HPE switches

2019-10-25 Thread Kevin Olbrich
Are you using a recent release of rancid, eg. 3.9?

As these scripts did not work for me and the switch stack does not get many
updates, I simply backed them up myself in the past.
All other devices worked fine.

Kind regards
Kevin


Am Do., 24. Okt. 2019 um 20:29 Uhr schrieb henri hemery <
henri.hem...@gmail.com>:

>
> I think I found the solution.
>>
>> I finally can use h3clogin//h3crancid work for my HPE 5130.
>> Here is what I modified in the file h3crancid:
>>
>> I had to modify the first line by this:
>>
>> #! /usr/bin/perl5.16.3 --» Because it is what we have in
>> /usr/bin
>>
>> And I also modified this line:
>>
>> my $logincmd = "/usr/local/rancid/bin/h3clogin";--» because the
>> script was unable to locate h3clogin
>>
>> Thanks for your help all!
>>
>>
>>
>> On Thu, Oct 24, 2019 at 10:27 AM Ugo Bellavance  wrote:
>>
>>> There is no such file on my version (2.3).
>>>
>>> In 2.3, the config was in rancid-fe, I think and it looked like this:
>>>
>>> 'h3c'   => 'h3crancid',
>>>
>>> The login command was defined it the *rancid script:
>>>
>>> my $logincmd = "h3clogin";
>>>
>>>
>>> On Thu, Oct 24, 2019 at 8:55 AM henri hemery 
>>> wrote:
>>>
 Thanks Ugo, so you modified /usr/local/rancid/etc/rancid.types.conf
 like this? :

 h3c;script;h3crancid -t cmw
 h3c;login;h3clogin

 On Thu, Oct 24, 2019 at 8:11 AM Ugo Bellavance  wrote:

> I don't know if that helps, but I'm running rancid with a 5120, but
> I'm using h3crancid, because I use an old version of rancid.
>
> Regards
>
> On Thu, Oct 24, 2019 at 8:07 AM henri hemery 
> wrote:
>
>>
>>> Have you read this
>>> https://sites.google.com/site/jrbinks/code/rancid/cmwrancid ?
>>>
>>> Yes, I dicovered cmwlogin from this page and I followed every step,
>> but I think this module is not for every type of comware 7 devices
>>
>>
>>> You may want to read this thread:
>>> http://www.shrubbery.net/pipermail/rancid-discuss/2018-February/010065.html
>>>
>>
>> Yes I read that thread, not so much to learn from..But I gonna try to
>> get in touch with the person.
>>
>>>
>>> On Wed, Oct 23, 2019 at 3:57 PM henri hemery 
>>> wrote:
>>>
 Hi,



 I would like to know if some of you succeeded in backing UP HPE
 switches.

 I successfully backed up HP FF 7910, HP 2530, but no way to back up
 HPE 5130 and HP 5120.



 If I type this command:





 *[rancid@cardlswbkp1 bin]$ ./cmwlogin -c "display version"
 10.1.170.1*

 *10.1.170.1*

 *spawn telnet 10.1.170.1*

 *Trying 10.1.170.1...*

 *Connected to 10.1.170.1.*

 *Escape character is '^]'.*




 

 ** Copyright (c) 2010-2017 Hewlett Packard Enterprise Development
 LP  **

 ** Without the owner's prior written
 consent, **

 ** no decompiling or reverse-engineering shall be
 allowed.**


 



 *login: [login]*

 *Password:*

 *undo smart*

 * ^*

 *% Unrecognized command found at '^' position.*

 *undo interactive*

 * ^*

 *% Unrecognized command found at '^' position.*

 *undo terminal monitor*

 *The current terminal is disabled to display logs.*

 **

 *terminal length 0*

 * ^*

 *% Unrecognized command found at '^' position.*

 *terminal width 132*

 * ^*

 *% Unrecognized command found at '^' position.*

 *display version*

 *HPE Comware Software, Version 7.1.070, Release 3208P03*

 *Copyright (c) 2010-2017 Hewlett Packard Enterprise Development LP*

 *HPE 5130 24G PoE+ 4SFP+ EI Switch uptime is 10 weeks, 4 days, 6
 hours, 28 minutes*

 *Last reboot reason : Cold reboot*



 *suppressed output###*



 *Boot image: flash:/5130ei-cmw710-boot-r3208p03.bin*

 *Boot image version: 7.1.070, Release 3208P03*

 *  Compiled Dec 14 2017 18:00:00*

 *System image: flash:/5130ei-cmw710-system-r3208p03.bin*

 *System im