Discussion:
[rancid] Trying to get a vendortable working but it just won't work for alurancid
Barry Murphy
2014-02-26 08:48:19 UTC
Permalink
Hey guys, spent the last few hours trying to get this to work but it continues to try clogin rather than alulogin / alurancid like it should:

I have edited rancid-fe and added:
'alcatel' => 'alurancid',

***@watcher:~/bin$ more ../data/vibecore-alcatel/router.db
mdr-tr1:alcatel:up

As you can see its using clogin commands rather than the alcatel commands which are in alurancid / alulogin.

I obtained the ALU scripts from https://code.google.com/p/alurancid/

***@watcher:~/bin$ env NOPIPE=y PATH=${PATH}:/home/rancid/bin rancid -d mdr-tr1
executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;admin show variables boot;show variables boot;dir /all nvram:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show module;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;more system:running-config;show running-config;write term" mdr-tr1
mdr-tr1 clogin error: Error: Bad command.
mdr-tr1 clogin error: Error: Bad command.
mdr-tr1: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show install active,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin show version,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,admin show variables boot,show redundancy secondary,show running-config,show c7200,dir /all slot1:
mdr-tr1: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show install active,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin show version,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,admin show variables boot,show redundancy secondary,show running-config,show c7200,dir /all slot1:
mdr-tr1: End of run not found
mdr-tr1: End of run not found

Any help would be much appreciated.

Regards

--
Barry Murphy | ***@vibecommunications.co.nz<mailto:***@vibecommunications.co.nz> | Chief Operating Officer | Vibe Communications Limited | Mobile: 0274 909 712
Unit A7, 1 Beresford Square, Auckland Central 1010 | PO Box 68707, Newton, Auckland 1145 | Phone: 09 222 0000 Ext 6 | 0800 842326 | Fax: 0800 842327
WEB: http://www.vibecommunications.co.nz
Peering: http://as45177.peeringdb.com/

[Description: Description: Description: cid:***@01CB9D57.2FAB9280]
"Solution specialists achieving great results within economic realities"

This communication, including any attachments, is confidential. If you are not the intended recipient, you should not read it - please contact me immediately, destroy it, and do not copy or use any part of this communication or disclose anything about it. Thank you. Please note that this communication does not designate an information system for the purposes of the Electronic Transactions Act 2002.
Alan McKinnon
2014-02-26 14:57:21 UTC
Permalink
You are telling it to run the rancid script which runs clogin.

"rancid" is not the controller script that calls rancid-fe and decides
what to use, it really is the IOS parser. An unfortunate legacy name
choice, but it is the way things are.

Do this:

rancid-run -r <hostname>

To debug the alcatel parser itself, you must do
"alurancid -d <hostname>"
Post by Barry Murphy
Hey guys, spent the last few hours trying to get this to work but it
'alcatel' => 'alurancid',
mdr-tr1:alcatel:up
As you can see its using clogin commands rather than the alcatel
commands which are in alurancid / alulogin.
I obtained the ALU scripts from https://code.google.com/p/alurancid/
executing clogin -t 90 -c"admin show version;show version;show
redundancy secondary;show idprom backplane;show install active;admin
show env all;show env all;show rsp chassis-info;show gsr chassis;show
diag chassis-info;show boot;admin show variables boot;show variables
boot;dir /all nvram:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir
/all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all
harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all
sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all
slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all
slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all
slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all
sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all
sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show
controllers cbus;show diagbus;admin show diag;show diag;show module;show
spe version;show c7200;show inventory raw;show vtp status;show vlan;show
vlan-switch;show debug;more system:running-config;show
running-config;write term" mdr-tr1
mdr-tr1 clogin error: Error: Bad command.
mdr-tr1 clogin error: Error: Bad command.
mdr-tr1: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp
chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr
chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir
/all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all
disk0:,show install active,dir /all slaveslot0:,dir /all sec-slot1:,dir
/all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all
slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show
variables boot,show boot,show inventory raw,dir /all slavedisk1:,show
env all,show module,admin show env all,show controllers,admin show
version,show diagbus,more system:running-config,dir /all
slavedisk0:,show debug,show idprom backplane,dir /all sec-slot0:,dir
/all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir
/all slot2:,dir /all harddisk:,dir /all slot0:,dir /all
sup-microcode:,show vlan,dir /all slavebootflash:,show controllers
cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
vlan-switch,admin show variables boot,show redundancy secondary,show
mdr-tr1: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp
chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr
chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir
/all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all
disk0:,show install active,dir /all slaveslot0:,dir /all sec-slot1:,dir
/all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all
slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show
variables boot,show boot,show inventory raw,dir /all slavedisk1:,show
env all,show module,admin show env all,show controllers,admin show
version,show diagbus,more system:running-config,dir /all
slavedisk0:,show debug,show idprom backplane,dir /all sec-slot0:,dir
/all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir
/all slot2:,dir /all harddisk:,dir /all slot0:,dir /all
sup-microcode:,show vlan,dir /all slavebootflash:,show controllers
cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
vlan-switch,admin show variables boot,show redundancy secondary,show
mdr-tr1: End of run not found
mdr-tr1: End of run not found
Any help would be much appreciated.
Regards
--
| *Vibe Communications Limited *| Mobile: 0274 909 712
Unit A7, 1 Beresford Square, Auckland Central 1010 | PO Box 68707,
0800 842327
WEB: http://www.vibecommunications.co.nz
Peering: http://as45177.peeringdb.com/
/“Solution specialists achieving great results within economic realities”/
/
/
/This communication, including any attachments, is confidential. If you
are not the intended recipient, you should not read it - please contact
me immediately, destroy it, and do not copy or use any part of this
communication or disclose anything about it. Thank you. Please note that
this communication does not designate an information system for the
purposes of the Electronic Transactions Act 2002./
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Alan McKinnon
***@gmail.com
Barry Murphy
2014-02-26 20:07:18 UTC
Permalink
Hi,

Thanks for that, it was getting late in the day and I was starting to test
with the wrong command :)

I executed:
***@watcher:~/bin$ env NOPIPE=y PATH=${PATH}:/home/rancid/bin alurancid
-d mdr-tr1
And received 2 files

***@watcher:~/bin$ ls -al mdr-tr1.*
-rw-r--r-- 1 rancid rancid 29658 2014-02-27 09:02 mdr-tr1.new
-rw-r--r-- 1 rancid rancid 31293 2014-02-27 09:02 mdr-tr1.raw

The files look correct however my rancid is still not generating files:

***@watcher:~$ ls data/vibecore-alcatel/configs/
CVS

I have configured my router.db as follows:

***@watcher:~$ cat data/vibecore-alcatel/router.db
mdr-tr1:alcatel:up
mdr-tr2:alcatel:up
sy3-tr1:alcatel:up
sy3-tr2:alcatel:up
sv1-tr1:alcatel:up
sv1-tr2:alcatel:up

I have also configured .cloginrc correctly else the debug mode wouldn't
know the login details for the routers.


I have tried running:
***@watcher:~/bin$ env NOPIPE=y PATH=${PATH}:/home/rancid/bin
rancid-run -r mdr-tr1
***@watcher:~/bin$

However I don't see anything happen, when I pressed enter on the above
command it immediately went to the next line.


Any assistance would be great.

Thanks
--
Barry Murphy | ***@vibecommunications.co.nz | Chief Operating Officer |
Vibe Communications Limited | Mobile: 0274 909 712
Unit A7, 1 Beresford Square, Auckland Central 1010 | PO Box 68707, Newton,
Auckland 1145 | Phone: 09 222 0000 Ext 6 | 0800 842326 | Fax: 0800 842327
WEB: http://www.vibecommunications.co.nz
Peering: http://as45177.peeringdb.com/



³Solution specialists achieving great results within economic realities²

This communication, including any attachments, is confidential. If you are
not the intended recipient, you should not read it - please contact me
immediately, destroy it, and do not copy or use any part of this
communication or disclose anything about it. Thank you. Please note that
this communication does not designate an information system for the
purposes of the Electronic Transactions Act 2002.
Post by Alan McKinnon
You are telling it to run the rancid script which runs clogin.
"rancid" is not the controller script that calls rancid-fe and decides
what to use, it really is the IOS parser. An unfortunate legacy name
choice, but it is the way things are.
rancid-run -r <hostname>
To debug the alcatel parser itself, you must do
"alurancid -d <hostname>"
Post by Barry Murphy
Hey guys, spent the last few hours trying to get this to work but it
'alcatel' => 'alurancid',
mdr-tr1:alcatel:up
As you can see its using clogin commands rather than the alcatel
commands which are in alurancid / alulogin.
I obtained the ALU scripts from https://code.google.com/p/alurancid/
-d mdr-tr1
executing clogin -t 90 -c"admin show version;show version;show
redundancy secondary;show idprom backplane;show install active;admin
show env all;show env all;show rsp chassis-info;show gsr chassis;show
diag chassis-info;show boot;admin show variables boot;show variables
boot;dir /all nvram:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir
/all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all
harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all
sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all
slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all
slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all
slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all
sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all
sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show
controllers cbus;show diagbus;admin show diag;show diag;show module;show
spe version;show c7200;show inventory raw;show vtp status;show vlan;show
vlan-switch;show debug;more system:running-config;show
running-config;write term" mdr-tr1
mdr-tr1 clogin error: Error: Bad command.
mdr-tr1 clogin error: Error: Bad command.
mdr-tr1: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp
chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr
chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir
/all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all
disk0:,show install active,dir /all slaveslot0:,dir /all sec-slot1:,dir
/all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all
slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show
variables boot,show boot,show inventory raw,dir /all slavedisk1:,show
env all,show module,admin show env all,show controllers,admin show
version,show diagbus,more system:running-config,dir /all
slavedisk0:,show debug,show idprom backplane,dir /all sec-slot0:,dir
/all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir
/all slot2:,dir /all harddisk:,dir /all slot0:,dir /all
sup-microcode:,show vlan,dir /all slavebootflash:,show controllers
cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
vlan-switch,admin show variables boot,show redundancy secondary,show
mdr-tr1: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp
chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr
chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir
/all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all
disk0:,show install active,dir /all slaveslot0:,dir /all sec-slot1:,dir
/all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all
slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show
variables boot,show boot,show inventory raw,dir /all slavedisk1:,show
env all,show module,admin show env all,show controllers,admin show
version,show diagbus,more system:running-config,dir /all
slavedisk0:,show debug,show idprom backplane,dir /all sec-slot0:,dir
/all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir
/all slot2:,dir /all harddisk:,dir /all slot0:,dir /all
sup-microcode:,show vlan,dir /all slavebootflash:,show controllers
cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
vlan-switch,admin show variables boot,show redundancy secondary,show
mdr-tr1: End of run not found
mdr-tr1: End of run not found
Any help would be much appreciated.
Regards
--
| *Vibe Communications Limited *| Mobile: 0274 909 712
Unit A7, 1 Beresford Square, Auckland Central 1010 | PO Box 68707,
0800 842327
WEB: http://www.vibecommunications.co.nz
Peering: http://as45177.peeringdb.com/
/³Solution specialists achieving great results within economic
realities²/
/
/
/This communication, including any attachments, is confidential. If you
are not the intended recipient, you should not read it - please contact
me immediately, destroy it, and do not copy or use any part of this
communication or disclose anything about it. Thank you. Please note that
this communication does not designate an information system for the
purposes of the Electronic Transactions Act 2002./
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Alan McKinnon
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Alan McKinnon
2014-02-27 04:45:25 UTC
Permalink
Post by Barry Murphy
Hi,
Thanks for that, it was getting late in the day and I was starting to test
with the wrong command :)
-d mdr-tr1
And received 2 files
-rw-r--r-- 1 rancid rancid 29658 2014-02-27 09:02 mdr-tr1.new
-rw-r--r-- 1 rancid rancid 31293 2014-02-27 09:02 mdr-tr1.raw
That's correct. Data was collected and processed
Post by Barry Murphy
CVS
mdr-tr1:alcatel:up
mdr-tr2:alcatel:up
sy3-tr1:alcatel:up
sy3-tr2:alcatel:up
sv1-tr1:alcatel:up
sv1-tr2:alcatel:up
I have also configured .cloginrc correctly else the debug mode wouldn't
know the login details for the routers.
rancid-run -r mdr-tr1
However I don't see anything happen, when I pressed enter on the above
command it immediately went to the next line.
Any assistance would be great.
Thanks
What's in your logs for that last call to rancid-run?
--
Alan McKinnon
***@gmail.com
Loading...