Discussion:
[rancid] Cisco WLC: Rancid 3.0 add other vendor devices???
Gavin Jones
2014-05-06 08:35:02 UTC
Permalink
Hi all,
New user to RANCID 3.0 here, I can login to a Cisco WLC no
issues with:

bin/clogin wlchostname
bin/wlogin wlchostname

I also have custom WLC scripts, that login to the WLC and backup the config
and work fine,
which I obtained from here:
http://www.shrubbery.net/pipermail/rancid-discuss/2010-February/004652.html


Which I have placed in: /usr/local/rancid/bin and saved as ciscowlc5

/usr/local/rancid/bi*n/*ciscowlc5 wlchostname : logs in and saves the
config no problems.

Now everywhere I read, to add a custom script / vendor device you need to
add the new details in rancid-fe.

/usr/local/rancid/bin/rancid-fe now looks for Vendors in one of these files

/usr/local/rancid/etc/rancid.types.base
/usr/local/rancid/etc/rancid.types.conf


vim /usr/local/rancid/etc/rancid.types.base

ciscowlc;script;ciscowlc5

I now update my router.db

vim /usr/local/rancid/etc/router.db

wlchost:ciscowlc:up

I tail the logs and get these errors:


Unknown option: t
ciscowlc wlogin error: Error: Unknown host ciscowlc
ciscowlc: missed cmd(s): show sysinfo,show udi,show run-config commands
ciscowlc: End of run not found
!
Unknown option: t
ciscowlc wlogin error: Error: Unknown host ciscowlc
ciscowlc: missed cmd(s): show sysinfo,show udi,show run-config commands
ciscowlc: End of run not found

can someone please show me the light?

why does not use the working, /usr/local/rancid/bin/ciscowlc script?



Thanks for your time I seem confused can someone please check my steps for
adding this script into rancid 3.0 to get it to backup the WLC also if I
need to add other vendors in the future how to add them into RANCID 3.0?

Thanks for your time.
heasley
2014-05-06 14:49:40 UTC
Permalink
Post by Gavin Jones
Hi all,
New user to RANCID 3.0 here, I can login to a Cisco WLC no
bin/clogin wlchostname
bin/wlogin wlchostname
I also have custom WLC scripts, that login to the WLC and backup the config
and work fine,
http://www.shrubbery.net/pipermail/rancid-discuss/2010-February/004652.html
Which I have placed in: /usr/local/rancid/bin and saved as ciscowlc5
/usr/local/rancid/bi*n/*ciscowlc5 wlchostname : logs in and saves the
config no problems.
Now everywhere I read, to add a custom script / vendor device you need to
add the new details in rancid-fe.
/usr/local/rancid/bin/rancid-fe now looks for Vendors in one of these files
/usr/local/rancid/etc/rancid.types.base
/usr/local/rancid/etc/rancid.types.conf
vim /usr/local/rancid/etc/rancid.types.base
you should put this in rancid.types.conf - YOUR localized config file.
rancid.types.base will be overwritten by installation of new versions of
rancid, as indicated at the top of rancid.types.base.
Post by Gavin Jones
ciscowlc;script;ciscowlc5
I now update my router.db
vim /usr/local/rancid/etc/router.db
wlchost:ciscowlc:up
;'s, not :'s, are the field separator beginning with rancid 3.0.
Post by Gavin Jones
Unknown option: t
ciscowlc wlogin error: Error: Unknown host ciscowlc
ciscowlc: missed cmd(s): show sysinfo,show udi,show run-config commands
ciscowlc: End of run not found
!
Unknown option: t
ciscowlc wlogin error: Error: Unknown host ciscowlc
ciscowlc: missed cmd(s): show sysinfo,show udi,show run-config commands
ciscowlc: End of run not found
can someone please show me the light?
why does not use the working, /usr/local/rancid/bin/ciscowlc script?
Thanks for your time I seem confused can someone please check my steps for
adding this script into rancid 3.0 to get it to backup the WLC also if I
need to add other vendors in the future how to add them into RANCID 3.0?
Thanks for your time.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Gavin Jones
2014-05-07 02:46:57 UTC
Permalink
Hi heasley, thanks for you reply I made the changes by using the
semi-colons in the the router.db and used
/usr/local/rancid/etc/rancid.types.conf, however I still have no success.

Here are my exact steps:

/usr/local/rancid/bin/ciscowlc5 wlchostname : logs in and saves the config
fine.

Removed the entry ciscowlc;script;ciscowlc5 from
/usr/local/rancid/etc/rancid.types.base

Added it in: /usr/local/rancid/etc/rancid.types.conf
ciscowlc;script;ciscowlc5

Changed to semi-colons:

vim /usr/local/rancid/var/networking/router.db
wlchost;ciscowlc;up

rancid-run

tail -f var/logs/networking.20140507.10330

Trying to get all of the configs.
Unknown option: t
ciscowlc wlogin error: Error: Unknown host ciscowlc
ciscowlc: missed cmd(s): show sysinfo,show udi,show run-config commands
ciscowlc: End of run not found

Thanks for your time and patience.
Post by Gavin Jones
Post by Gavin Jones
Hi all,
New user to RANCID 3.0 here, I can login to a Cisco WLC no
bin/clogin wlchostname
bin/wlogin wlchostname
I also have custom WLC scripts, that login to the WLC and backup the
config
Post by Gavin Jones
and work fine,
http://www.shrubbery.net/pipermail/rancid-discuss/2010-February/004652.html
Post by Gavin Jones
Which I have placed in: /usr/local/rancid/bin and saved as ciscowlc5
/usr/local/rancid/bi*n/*ciscowlc5 wlchostname : logs in and saves the
config no problems.
Now everywhere I read, to add a custom script / vendor device you need to
add the new details in rancid-fe.
/usr/local/rancid/bin/rancid-fe now looks for Vendors in one of these
files
Post by Gavin Jones
/usr/local/rancid/etc/rancid.types.base
/usr/local/rancid/etc/rancid.types.conf
vim /usr/local/rancid/etc/rancid.types.base
you should put this in rancid.types.conf - YOUR localized config file.
rancid.types.base will be overwritten by installation of new versions of
rancid, as indicated at the top of rancid.types.base.
Post by Gavin Jones
ciscowlc;script;ciscowlc5
I now update my router.db
vim /usr/local/rancid/etc/router.db
wlchost:ciscowlc:up
;'s, not :'s, are the field separator beginning with rancid 3.0.
Post by Gavin Jones
Unknown option: t
ciscowlc wlogin error: Error: Unknown host ciscowlc
ciscowlc: missed cmd(s): show sysinfo,show udi,show run-config commands
ciscowlc: End of run not found
!
Unknown option: t
ciscowlc wlogin error: Error: Unknown host ciscowlc
ciscowlc: missed cmd(s): show sysinfo,show udi,show run-config commands
ciscowlc: End of run not found
can someone please show me the light?
why does not use the working, /usr/local/rancid/bin/ciscowlc script?
Thanks for your time I seem confused can someone please check my steps
for
Post by Gavin Jones
adding this script into rancid 3.0 to get it to backup the WLC also if I
need to add other vendors in the future how to add them into RANCID 3.0?
Thanks for your time.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Gavin Jones
2014-05-07 03:31:02 UTC
Permalink
Ok I am pretty sure I have broken my /usr/local/rancid/etc/rancid.types.conf
will get back to you guys soon.
Post by Gavin Jones
Hi heasley, thanks for you reply I made the changes by using the
semi-colons in the the router.db and used
/usr/local/rancid/etc/rancid.types.conf, however I still have no success.
/usr/local/rancid/bin/ciscowlc5 wlchostname : logs in and saves the config
fine.
Removed the entry ciscowlc;script;ciscowlc5 from
/usr/local/rancid/etc/rancid.types.base
Added it in: /usr/local/rancid/etc/rancid.types.conf
ciscowlc;script;ciscowlc5
vim /usr/local/rancid/var/networking/router.db
wlchost;ciscowlc;up
rancid-run
tail -f var/logs/networking.20140507.10330
Trying to get all of the configs.
Unknown option: t
ciscowlc wlogin error: Error: Unknown host ciscowlc
ciscowlc: missed cmd(s): show sysinfo,show udi,show run-config commands
ciscowlc: End of run not found
Thanks for your time and patience.
Post by Gavin Jones
Post by Gavin Jones
Hi all,
New user to RANCID 3.0 here, I can login to a Cisco WLC no
bin/clogin wlchostname
bin/wlogin wlchostname
I also have custom WLC scripts, that login to the WLC and backup the
config
Post by Gavin Jones
and work fine,
http://www.shrubbery.net/pipermail/rancid-discuss/2010-February/004652.html
Post by Gavin Jones
Which I have placed in: /usr/local/rancid/bin and saved as ciscowlc5
/usr/local/rancid/bi*n/*ciscowlc5 wlchostname : logs in and saves the
config no problems.
Now everywhere I read, to add a custom script / vendor device you need
to
Post by Gavin Jones
add the new details in rancid-fe.
/usr/local/rancid/bin/rancid-fe now looks for Vendors in one of these
files
Post by Gavin Jones
/usr/local/rancid/etc/rancid.types.base
/usr/local/rancid/etc/rancid.types.conf
vim /usr/local/rancid/etc/rancid.types.base
you should put this in rancid.types.conf - YOUR localized config file.
rancid.types.base will be overwritten by installation of new versions of
rancid, as indicated at the top of rancid.types.base.
Post by Gavin Jones
ciscowlc;script;ciscowlc5
I now update my router.db
vim /usr/local/rancid/etc/router.db
wlchost:ciscowlc:up
;'s, not :'s, are the field separator beginning with rancid 3.0.
Post by Gavin Jones
Unknown option: t
ciscowlc wlogin error: Error: Unknown host ciscowlc
ciscowlc: missed cmd(s): show sysinfo,show udi,show run-config commands
ciscowlc: End of run not found
!
Unknown option: t
ciscowlc wlogin error: Error: Unknown host ciscowlc
ciscowlc: missed cmd(s): show sysinfo,show udi,show run-config commands
ciscowlc: End of run not found
can someone please show me the light?
why does not use the working, /usr/local/rancid/bin/ciscowlc script?
Thanks for your time I seem confused can someone please check my steps
for
Post by Gavin Jones
adding this script into rancid 3.0 to get it to backup the WLC also if I
need to add other vendors in the future how to add them into RANCID 3.0?
Thanks for your time.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Gavin Jones
2014-05-07 05:48:05 UTC
Permalink
This post might be inappropriate. Click to display it.
Loading...