Mailing List Archive

aerohive/hiveos support
(also included: removal of fortinet/fnrancid references since it's now a module & a few minor nitpicks)

support for aerohive/hiveos access points:

login script ahlogin:
* originally by erik muller: https://github.com/ermuller/rancid-stuff.
* should be up to date with the latest changes of svn 3937.
* saving on changed config works, -x & -c have also been tested.
* .cvsignore entry added

module hiveos.pm:
* respects nocommstr; filter_pwds & filter_osc
* tested against multiple hardware options & operating system versions
* does not sort acls/snmp yet
* does not yet handle all passwords/secrets - it does filter the items we use with respect to filter_* settings
* also fetches additional info depending on filter_* settings
* no clear end of run marker
* rancid.types.base entries

other:
* docs, makefiles & config scripts have been updated completely i hope.
* hiveos.pm.in has a lot of comments, they can be deleted if they add little/no value.

has been in use for almost 6 months. perhaps naming the login script ahlogin (aerohive login) and the module hiveos.pm seems strange, just rename if you don't like it.



git code here but git & me just dont get along:
https://github.com/inphobia/rancid-aerohive-support

// nick

________________________________

Volg Aquafin op Facebook<https://www.facebook.com/AquafinNV> | Twitter<https://twitter.com/aquafinnv> | YouTube<http://www.youtube.com/channel/UCk_4P5BJ-MtEEDCkCsR_KqQ?feature=mhee> | LinkedIN<http://www.linkedin.com/company/aquafin/products>

In het kader van de uitoefening van onze taken verzamelen we bij Aquafin persoonsgegevens. Hoe we omgaan met deze gegevens en wat de rechten van de betrokkenen zijn, kan je nalezen in onze privacy policy<https://www.aquafin.be/nl-be/privacy-policy>.

P Denk aan het milieu. Druk deze mail niet onnodig af.
Re: aerohive/hiveos support [ In reply to ]
Thank you very much for publishing this. I have only started using it just now, so I can only confirm that it at least pulls configs successfully. I have it working against these software version and these hardware versions, with about 150 total devices included:

# software
3.4r4a
6.5r8a
6.5r10
8.0r1
8.1r1

# hardware
HiveAP020_ag
AP250
HiveAP320_n
HiveAP330

I had a bit of trouble figuring out how to apply your patches to my existing install of RANCID. I installed from source tarball from the Shrubbery site. So I couldn't just do a git merge or something.

These are the instructions I used:

1) clone this repo, save to your home dir (outside of normal rancid path)

git clone https://github.com/inphobia/rancid-aerohive-support.git

2) Configure into your home dir (outside of normal rancid path)

./configure --prefix=/home/nineoften/rancid

3) Install

make install

4) Copy the login and pm files (/usr/local/rancid is my production rancid main path)

cp /home/nineoften/rancid/bin/ahlogin /usr/local/rancid/bin/.
cp /home/nineoften/rancid/lib/rancid/hiveos.pm /usr/local/rancid/lib/rancid/.

5) Add lines to rancid.types.conf

hiveos;script;rancid -t hiveos
hiveos;login;ahlogin
hiveos;module;hiveos
hiveos;inloop;hiveos::inloop
hiveos;command;hiveos::ShowVersion;show version
hiveos;command;hiveos::ShowVersion;show hw-info
hiveos;command;hiveos::ShowBoot;show boot-param
hiveos;command;hiveos::ShowLicense;show license
hiveos;command;hiveos::ShowCapWap;show capwap client
hiveos;command;hiveos::ShowIDManager;show idm
hiveos;command;hiveos::WriteTerm;show running-config password
hiveos;command;hiveos::WriteTerm;show running-config users password

6) Do other normal stuff, like add entries to router.db file using "hiveos" as the vendor type for your AeroHive access points.


Would it be possible to get this merged into the mainline release of RANCID in the future? Last time I installed RANCID from scratch several years ago, I had to do similar steps - and figure out how to include others' patches for AeroHive into my install.

Thanks again!

-Aaron

________________________________
From: Rancid-discuss <rancid-discuss-bounces@shrubbery.net> on behalf of Nick Nauwelaerts <nick.nauwelaerts@aquafin.be>
Sent: Wednesday, December 19, 2018 3:23 PM
To: rancid-discuss@shrubbery.net
Subject: [rancid] aerohive/hiveos support


(also included: removal of fortinet/fnrancid references since it's now a module & a few minor nitpicks)



support for aerohive/hiveos access points:



login script ahlogin:

* originally by erik muller: https://github.com/ermuller/rancid-stuff.

* should be up to date with the latest changes of svn 3937.

* saving on changed config works, -x & -c have also been tested.

* .cvsignore entry added



module hiveos.pm:

* respects nocommstr; filter_pwds & filter_osc

* tested against multiple hardware options & operating system versions

* does not sort acls/snmp yet

* does not yet handle all passwords/secrets - it does filter the items we use with respect to filter_* settings

* also fetches additional info depending on filter_* settings

* no clear end of run marker

* rancid.types.base entries



other:

* docs, makefiles & config scripts have been updated completely i hope.

* hiveos.pm.in has a lot of comments, they can be deleted if they add little/no value.



has been in use for almost 6 months. perhaps naming the login script ahlogin (aerohive login) and the module hiveos.pm seems strange, just rename if you don't like it.







git code here but git & me just dont get along:

https://github.com/inphobia/rancid-aerohive-support



// nick

________________________________

Volg Aquafin op Facebook<https://www.facebook.com/AquafinNV> | Twitter<https://twitter.com/aquafinnv> | YouTube<http://www.youtube.com/channel/UCk_4P5BJ-MtEEDCkCsR_KqQ?feature=mhee> | LinkedIN<http://www.linkedin.com/company/aquafin/products>

In het kader van de uitoefening van onze taken verzamelen we bij Aquafin persoonsgegevens. Hoe we omgaan met deze gegevens en wat de rechten van de betrokkenen zijn, kan je nalezen in onze privacy policy<https://www.aquafin.be/nl-be/privacy-policy>.

P Denk aan het milieu. Druk deze mail niet onnodig af.
Re: aerohive/hiveos support [ In reply to ]
?Thank you Julie.

________________________________
From: Rancid-discuss <rancid-discuss-bounces@shrubbery.net> on behalf of Ni Ne <nineoften@hotmail.com>
Sent: Friday, December 21, 2018 1:40 PM
To: Nick Nauwelaerts; rancid-discuss@shrubbery.net
Subject: Re: [rancid] aerohive/hiveos support

Thank you very much for publishing this. I have only started using it just now, so I can only confirm that it at least pulls configs successfully. I have it working against these software version and these hardware versions, with about 150 total devices included:

# software
3.4r4a
6.5r8a
6.5r10
8.0r1
8.1r1

# hardware
HiveAP020_ag
AP250
HiveAP320_n
HiveAP330

I had a bit of trouble figuring out how to apply your patches to my existing install of RANCID. I installed from source tarball from the Shrubbery site. So I couldn't just do a git merge or something.

These are the instructions I used:

1) clone this repo, save to your home dir (outside of normal rancid path)

git clone https://github.com/inphobia/rancid-aerohive-support.git

2) Configure into your home dir (outside of normal rancid path)

./configure --prefix=/home/nineoften/rancid

3) Install

make install

4) Copy the login and pm files (/usr/local/rancid is my production rancid main path)

cp /home/nineoften/rancid/bin/ahlogin /usr/local/rancid/bin/.
cp /home/nineoften/rancid/lib/rancid/hiveos.pm /usr/local/rancid/lib/rancid/.

5) Add lines to rancid.types.conf

hiveos;script;rancid -t hiveos
hiveos;login;ahlogin
hiveos;module;hiveos
hiveos;inloop;hiveos::inloop
hiveos;command;hiveos::ShowVersion;show version
hiveos;command;hiveos::ShowVersion;show hw-info
hiveos;command;hiveos::ShowBoot;show boot-param
hiveos;command;hiveos::ShowLicense;show license
hiveos;command;hiveos::ShowCapWap;show capwap client
hiveos;command;hiveos::ShowIDManager;show idm
hiveos;command;hiveos::WriteTerm;show running-config password
hiveos;command;hiveos::WriteTerm;show running-config users password

6) Do other normal stuff, like add entries to router.db file using "hiveos" as the vendor type for your AeroHive access points.


Would it be possible to get this merged into the mainline release of RANCID in the future? Last time I installed RANCID from scratch several years ago, I had to do similar steps - and figure out how to include others' patches for AeroHive into my install.

Thanks again!

-Aaron

________________________________
From: Rancid-discuss <rancid-discuss-bounces@shrubbery.net> on behalf of Nick Nauwelaerts <nick.nauwelaerts@aquafin.be>
Sent: Wednesday, December 19, 2018 3:23 PM
To: rancid-discuss@shrubbery.net
Subject: [rancid] aerohive/hiveos support


(also included: removal of fortinet/fnrancid references since it's now a module & a few minor nitpicks)



support for aerohive/hiveos access points:



login script ahlogin:

* originally by erik muller: https://github.com/ermuller/rancid-stuff.

* should be up to date with the latest changes of svn 3937.

* saving on changed config works, -x & -c have also been tested.

* .cvsignore entry added



module hiveos.pm:

* respects nocommstr; filter_pwds & filter_osc

* tested against multiple hardware options & operating system versions

* does not sort acls/snmp yet

* does not yet handle all passwords/secrets - it does filter the items we use with respect to filter_* settings

* also fetches additional info depending on filter_* settings

* no clear end of run marker

* rancid.types.base entries



other:

* docs, makefiles & config scripts have been updated completely i hope.

* hiveos.pm.in has a lot of comments, they can be deleted if they add little/no value.



has been in use for almost 6 months. perhaps naming the login script ahlogin (aerohive login) and the module hiveos.pm seems strange, just rename if you don't like it.







git code here but git & me just dont get along:

https://github.com/inphobia/rancid-aerohive-support



// nick

________________________________

Volg Aquafin op Facebook<https://www.facebook.com/AquafinNV> | Twitter<https://twitter.com/aquafinnv> | YouTube<http://www.youtube.com/channel/UCk_4P5BJ-MtEEDCkCsR_KqQ?feature=mhee> | LinkedIN<http://www.linkedin.com/company/aquafin/products>

In het kader van de uitoefening van onze taken verzamelen we bij Aquafin persoonsgegevens. Hoe we omgaan met deze gegevens en wat de rechten van de betrokkenen zijn, kan je nalezen in onze privacy policy<https://www.aquafin.be/nl-be/privacy-policy>.

P Denk aan het milieu. Druk deze mail niet onnodig af.
Re: aerohive/hiveos support [ In reply to ]
good point, me & git are not yet compatible :)

so, this diff should work against rancid svn revision 3935 (also known as rancid-alpha, but the source tarball is a moving target - ftp://ftp.shrubbery.net/pub/rancid/alpha/ ), i have not tested it in any way with rancid 3.8.

for rancid svn 3935 + aerohive support the easiest way is to check out https://github.com/inphobia/rancid-orig.git:
(i'm trying to track rancid svn , but thus far it's been manual merging)

git clone https://github.com/inphobia/rancid-orig.git
cd rancid-orig
./configure --help (follow the rancid build instructions from here on)




if you do want to backport it, there are 3 important parts you need to add:
bin/ahlogin ->login script for aerohive ap's
lib/hiveos.pm -> perl module needed to actually do something
etc/rancid.types.base or rancid.types.conf -> add items listed in step 5 from mail below.



and yeah, i do hope this might get included in mainline rancid. while there are a few things not yet completed (as noted in the original mail), it has already helped me out immensely since hivemanager-ng has no revision control it seems.



lmk should you have any more questions.

// nick

From: Ni Ne [mailto:nineoften@hotmail.com]
Sent: Friday, December 21, 2018 21:41
To: Nick Nauwelaerts <nick.nauwelaerts@aquafin.be>; rancid-discuss@shrubbery.net
Subject: Re: aerohive/hiveos support

Thank you very much for publishing this. I have only started using it just now, so I can only confirm that it at least pulls configs successfully. I have it working against these software version and these hardware versions, with about 150 total devices included:

# software
3.4r4a
6.5r8a
6.5r10
8.0r1
8.1r1

# hardware
HiveAP020_ag
AP250
HiveAP320_n
HiveAP330

I had a bit of trouble figuring out how to apply your patches to my existing install of RANCID. I installed from source tarball from the Shrubbery site. So I couldn't just do a git merge or something.

These are the instructions I used:

1) clone this repo, save to your home dir (outside of normal rancid path)

git clone https://github.com/inphobia/rancid-aerohive-support.git

2) Configure into your home dir (outside of normal rancid path)

./configure --prefix=/home/nineoften/rancid

3) Install

make install

4) Copy the login and pm files (/usr/local/rancid is my production rancid main path)

cp /home/nineoften/rancid/bin/ahlogin /usr/local/rancid/bin/.
cp /home/nineoften/rancid/lib/rancid/hiveos.pm /usr/local/rancid/lib/rancid/.

5) Add lines to rancid.types.conf

hiveos;script;rancid -t hiveos
hiveos;login;ahlogin
hiveos;module;hiveos
hiveos;inloop;hiveos::inloop
hiveos;command;hiveos::ShowVersion;show version
hiveos;command;hiveos::ShowVersion;show hw-info
hiveos;command;hiveos::ShowBoot;show boot-param
hiveos;command;hiveos::ShowLicense;show license
hiveos;command;hiveos::ShowCapWap;show capwap client
hiveos;command;hiveos::ShowIDManager;show idm
hiveos;command;hiveos::WriteTerm;show running-config password
hiveos;command;hiveos::WriteTerm;show running-config users password

6) Do other normal stuff, like add entries to router.db file using "hiveos" as the vendor type for your AeroHive access points.


Would it be possible to get this merged into the mainline release of RANCID in the future? Last time I installed RANCID from scratch several years ago, I had to do similar steps - and figure out how to include others' patches for AeroHive into my install.

Thanks again!

-Aaron

________________________________
From: Rancid-discuss <rancid-discuss-bounces@shrubbery.net> on behalf of Nick Nauwelaerts <nick.nauwelaerts@aquafin.be>
Sent: Wednesday, December 19, 2018 3:23 PM
To: rancid-discuss@shrubbery.net
Subject: [rancid] aerohive/hiveos support


(also included: removal of fortinet/fnrancid references since it's now a module & a few minor nitpicks)



support for aerohive/hiveos access points:



login script ahlogin:

* originally by erik muller: https://github.com/ermuller/rancid-stuff.

* should be up to date with the latest changes of svn 3937.

* saving on changed config works, -x & -c have also been tested.

* .cvsignore entry added



module hiveos.pm:

* respects nocommstr; filter_pwds & filter_osc

* tested against multiple hardware options & operating system versions

* does not sort acls/snmp yet

* does not yet handle all passwords/secrets - it does filter the items we use with respect to filter_* settings

* also fetches additional info depending on filter_* settings

* no clear end of run marker

* rancid.types.base entries



other:

* docs, makefiles & config scripts have been updated completely i hope.

* hiveos.pm.in has a lot of comments, they can be deleted if they add little/no value.



has been in use for almost 6 months. perhaps naming the login script ahlogin (aerohive login) and the module hiveos.pm seems strange, just rename if you don't like it.







git code here but git & me just dont get along:

https://github.com/inphobia/rancid-aerohive-support



// nick

________________________________

Volg Aquafin op Facebook<https://www.facebook.com/AquafinNV> | Twitter<https://twitter.com/aquafinnv> | YouTube<http://www.youtube.com/channel/UCk_4P5BJ-MtEEDCkCsR_KqQ?feature=mhee> | LinkedIN<http://www.linkedin.com/company/aquafin/products>

In het kader van de uitoefening van onze taken verzamelen we bij Aquafin persoonsgegevens. Hoe we omgaan met deze gegevens en wat de rechten van de betrokkenen zijn, kan je nalezen in onze privacy policy<https://www.aquafin.be/nl-be/privacy-policy>.

P Denk aan het milieu. Druk deze mail niet onnodig af.
Re: aerohive/hiveos support [ In reply to ]
Wed, Dec 19, 2018 at 09:23:57PM +0000, Nick Nauwelaerts:
> (also included: removal of fortinet/fnrancid references since it's now a module & a few minor nitpicks)
>
> support for aerohive/hiveos access points:
>
> login script ahlogin:
> * originally by erik muller: https://github.com/ermuller/rancid-stuff.
> * should be up to date with the latest changes of svn 3937.
> * saving on changed config works, -x & -c have also been tested.
> * .cvsignore entry added
>
> module hiveos.pm:
> * respects nocommstr; filter_pwds & filter_osc
> * tested against multiple hardware options & operating system versions
> * does not sort acls/snmp yet
> * does not yet handle all passwords/secrets - it does filter the items we use with respect to filter_* settings
> * also fetches additional info depending on filter_* settings
> * no clear end of run marker
> * rancid.types.base entries
>
> other:
> * docs, makefiles & config scripts have been updated completely i hope.
> * hiveos.pm.in has a lot of comments, they can be deleted if they add little/no value.
>
> has been in use for almost 6 months. perhaps naming the login script ahlogin (aerohive login) and the module hiveos.pm seems strange, just rename if you don't like it.
>
>
>
> git code here but git & me just dont get along:
> https://github.com/inphobia/rancid-aerohive-support

It would be great to hear about success or failures from more folks who
have used Nick's hiveos module. Positivity will give me more confidence
for inclusion in the rancid distribution. TiA

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: aerohive/hiveos support [ In reply to ]
> -----Original Message-----
> From: heasley [mailto:heas@shrubbery.net]
> Sent: Wednesday, January 9, 2019 21:54
> To: Nick Nauwelaerts <nick.nauwelaerts@aquafin.be>
> Cc: rancid-discuss@shrubbery.net
> Subject: Re: [rancid] aerohive/hiveos support
>
> Wed, Dec 19, 2018 at 09:23:57PM +0000, Nick Nauwelaerts:
> > (also included: removal of fortinet/fnrancid references since it's now a
> module & a few minor nitpicks)
> >
> > support for aerohive/hiveos access points:
> >
> > login script ahlogin:
> > * originally by erik muller: https://github.com/ermuller/rancid-stuff.
> > * should be up to date with the latest changes of svn 3937.
> > * saving on changed config works, -x & -c have also been tested.
> > * .cvsignore entry added
> >
> > module hiveos.pm:
> > * respects nocommstr; filter_pwds & filter_osc
> > * tested against multiple hardware options & operating system versions
> > * does not sort acls/snmp yet
> > * does not yet handle all passwords/secrets - it does filter the items we use
> with respect to filter_* settings
> > * also fetches additional info depending on filter_* settings
> > * no clear end of run marker
> > * rancid.types.base entries
> >
> > other:
> > * docs, makefiles & config scripts have been updated completely i hope.
> > * hiveos.pm.in has a lot of comments, they can be deleted if they add
> little/no value.
> >
> > has been in use for almost 6 months. perhaps naming the login script
> ahlogin (aerohive login) and the module hiveos.pm seems strange, just rename
> if you don't like it.
> >
> >
> >
> > git code here but git & me just dont get along:
> > https://github.com/inphobia/rancid-aerohive-support
>
> It would be great to hear about success or failures from more folks who
> have used Nick's hiveos module. Positivity will give me more confidence
> for inclusion in the rancid distribution. TiA

all comments welcome and succes/failure reports welcome to both me and the mailinglist.

(this also got mailed to several persons in bcc who had interest in it before)


// nick

________________________________

Volg Aquafin op Facebook<https://www.facebook.com/AquafinNV> | Twitter<https://twitter.com/aquafinnv> | YouTube<http://www.youtube.com/channel/UCk_4P5BJ-MtEEDCkCsR_KqQ?feature=mhee> | LinkedIN<http://www.linkedin.com/company/aquafin/products>

In het kader van de uitoefening van onze taken verzamelen we bij Aquafin persoonsgegevens. Hoe we omgaan met deze gegevens en wat de rechten van de betrokkenen zijn, kan je nalezen in onze privacy policy<https://www.aquafin.be/nl-be/privacy-policy>.

P Denk aan het milieu. Druk deze mail niet onnodig af.

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