From x-cut at inbox.ru Wed Feb 1 12:29:24 2017 From: x-cut at inbox.ru (=?UTF-8?B?0JzQuNGF0LDQuNC7IA==?=) Date: Wed, 1 Feb 2017 15:29:24 +0300 Subject: [rancid] rancid issue with scrolling config Message-ID: Hello everyone. I am trying to get config from Huawei and while script is executing "display current-configuration" command scrolling stops after showing one screen (if i login to this switch and run this command without pressing SPACE i can see only this part of config ) /usr/local/rancid/bin/hurancid1 -d x.x.x.x executing /usr/local/rancid/bin/hulogin1 -t 90 -c"display current-configuration" x.x.x.x CMD: x.x.x.x CMD: spawn ssh -c 3des -x -l rancid x.x.x.x CMD: rancid at x.x.x.x's password: CMD: CMD: Info: The max number of VTY users is 5, the number of current VTY users online is 1, and total number of terminal users online is 1. CMD: display current-configuration PROMPT MATCH: HIT COMMAND:display current-configuration In WriteTerm: display current-configuration History !Software Version V100R005C10SPC200 History # History clock timezone MSK add 03:00:00 History # History sysname SW-CORE-1 History # History info-center loghost source MEth0/0/0 History # History device board 1 board-type CE6851-48S6Q-HI History # History drop-profile default History # History dcb pfc History # History dcb ets-profile default History # History ntp ipv6 server disable Then script gets stuck and after a while error appear TIMEOUT reached - 2 and x.x.x.x: End of run not found Please help, i really appreciate any help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From esoo at caasco.ca Wed Feb 1 14:47:46 2017 From: esoo at caasco.ca (Erik Soosalu) Date: Wed, 1 Feb 2017 14:47:46 +0000 Subject: [rancid] Issue with Brocade FC capture and line length Message-ID: Hi there, I've been fighting against this for a couple of days and my scripting isn't strong enough to figure out where this is going wrong. I've setup RANCID and I've got it working successfully pulling my configs from my Brocade Fiber Channel switches. I've used brocadelogin/brocaderancid from here: https://lists.gt.net/rancid/users/5454 Where I'm having issues is in my primary site where the active zone config is very large. The configuration definition line consists of a tag followed by all the zones separated by semi-colons. When I look at a normal configuration upload, this line is 11,000 characters long. If I ssh into the switch and show the config, I see 11,000 characters. However, when I look at what is captured by RANCID, I only get a line that is ~4200 characters long, and it appears to be the last 4200 characters of the line (like data is rolling through a buffer). I can't seem to find anywhere that is setting this length. Any suggestions where I could look to resolve this? Thanks, Erik Please consider the environment before printing this e-mail. WARNING - CONFIDENTIALITY NOTICE This e-mail and any attachments may contain confidential and privileged information. Any use, disclosure, copying or dissemination of this information by a person other than an intended recipient is not authorized and may be illegal. If you are not an intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and destroy any copies. From c.otto at sofort.com Thu Feb 2 14:35:30 2017 From: c.otto at sofort.com (Christoph Otto) Date: Thu, 2 Feb 2017 15:35:30 +0100 Subject: [rancid] Problems after upgrade; End of run not found Message-ID: <37868402-d86d-dd5b-189e-ff5170021bb7@sofort.com> An HTML attachment was scrubbed... URL: From heas at shrubbery.net Thu Feb 2 20:08:39 2017 From: heas at shrubbery.net (heasley) Date: Thu, 2 Feb 2017 20:08:39 +0000 Subject: [rancid] Issue with Brocade FC capture and line length In-Reply-To: References: Message-ID: <20170202200839.GM99098@shrubbery.net> Wed, Feb 01, 2017 at 02:47:46PM +0000, Erik Soosalu: > Hi there, > > I've been fighting against this for a couple of days and my scripting isn't strong enough to figure out where this is going wrong. > > I've setup RANCID and I've got it working successfully pulling my configs from my Brocade Fiber Channel switches. I've used brocadelogin/brocaderancid from here: https://lists.gt.net/rancid/users/5454 > > Where I'm having issues is in my primary site where the active zone config is very large. The configuration definition line consists of a tag followed by all the zones separated by semi-colons. When I look at a normal configuration upload, this line is 11,000 characters long. If I ssh into the switch and show the config, I see 11,000 characters. However, when I look at what is captured by RANCID, I only get a line that is ~4200 characters long, and it appears to be the last 4200 characters of the line (like data is rolling through a buffer). I can't seem to find anywhere that is setting this length. > > Any suggestions where I could look to resolve this? 11k is ridiculous. did they hire folks from Foundry. is it really whatever you are using to view the file? does brocadelogin -c 'whateverthecommandsistodisplaytheconfig' hostname work? else it might be perl, though a search suggests not; brocaderancid hostname and look for the truncation. is it the SCM you're using? From esoo at caasco.ca Thu Feb 2 21:35:32 2017 From: esoo at caasco.ca (Erik Soosalu) Date: Thu, 2 Feb 2017 21:35:32 +0000 Subject: [rancid] Issue with Brocade FC capture and line length In-Reply-To: <20170202200839.GM99098@shrubbery.net> References: <20170202200839.GM99098@shrubbery.net> Message-ID: Yeah, I agree that 11K is ridiculous for a single line. brocadelogin -c "configshow -all" did not work. The line is altered only showing the last part of the line. However, that info gave me enough to go on. brocadelogin is an expect script, and expect does have a default bufferlength and it is a rolling buffer (from what google told me). I added in max_match 60000 in the run_commands section and now I get the full line. Thanks for the help. Erik -----Original Message----- From: heasley [mailto:heas at shrubbery.net] Sent: Thursday, February 2, 2017 3:09 PM To: Erik Soosalu Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Issue with Brocade FC capture and line length Wed, Feb 01, 2017 at 02:47:46PM +0000, Erik Soosalu: > Hi there, > > I've been fighting against this for a couple of days and my scripting isn't strong enough to figure out where this is going wrong. > > I've setup RANCID and I've got it working successfully pulling my configs from my Brocade Fiber Channel switches. I've used brocadelogin/brocaderancid from here: https://lists.gt.net/rancid/users/5454 > > Where I'm having issues is in my primary site where the active zone config is very large. The configuration definition line consists of a tag followed by all the zones separated by semi-colons. When I look at a normal configuration upload, this line is 11,000 characters long. If I ssh into the switch and show the config, I see 11,000 characters. However, when I look at what is captured by RANCID, I only get a line that is ~4200 characters long, and it appears to be the last 4200 characters of the line (like data is rolling through a buffer). I can't seem to find anywhere that is setting this length. > > Any suggestions where I could look to resolve this? 11k is ridiculous. did they hire folks from Foundry. is it really whatever you are using to view the file? does brocadelogin -c 'whateverthecommandsistodisplaytheconfig' hostname work? else it might be perl, though a search suggests not; brocaderancid hostname and look for the truncation. is it the SCM you're using? Please consider the environment before printing this e-mail. WARNING - CONFIDENTIALITY NOTICE This e-mail and any attachments may contain confidential and privileged information. Any use, disclosure, copying or dissemination of this information by a person other than an intended recipient is not authorized and may be illegal. If you are not an intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and destroy any copies. From becky.jones at hayley-group.co.uk Mon Feb 6 13:27:57 2017 From: becky.jones at hayley-group.co.uk (Rebecca Jones) Date: Mon, 6 Feb 2017 13:27:57 +0000 Subject: [rancid] Initial Rancid configuration and first output Message-ID: Hi guys. I really hope someone can point me in the right direction. I have setup Rancid as per guide http://www.shrubbery.net/rancid/RhysEvans_overview_0.3.pdf and http://www.itnotes.eu/?p=365 but I am having issues running it for the first time. I have added a Cisco switch to my config for checking and I can manually connect to it by running "bin/clogin 192.168.1.1". I have ran "bin/rancid-run" and I get the following in the log files: starting: Mon 6 Feb 11:18:12 GMT 2017 WARNING: Have you forgotten to update the FS in router.db? cvs commit: Examining . cvs commit: Examining configs Checking in router.db; /usr/local/rancid/var/CVS/networking/router.db,v <-- router.db new revision: 1.4; previous revision: 1.3 done ending: Mon 6 Feb 11:18:14 GMT 2017 networking.20170206.111812 (END) If I then browse to var/networking/configs/ I have to file/directory specifically for my device, only the main CVS directory. Can anyone advise where I may have gone wrong? Thanks, Becky -- The information contained in this e-mail is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this e-mail, the use of this information or any disclosure, copying or distribution is strictly prohibited and may be unlawful. If you received this e-mail in error, please contact the sender immediately and delete the material from any computer. The views expressed in this e-mail may not necessarily be the views of Hayley Group Limited and should not be taken as authority to carry out any instruction contained within. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ler762 at gmail.com Mon Feb 6 21:01:49 2017 From: ler762 at gmail.com (Lee) Date: Mon, 6 Feb 2017 16:01:49 -0500 Subject: [rancid] Initial Rancid configuration and first output In-Reply-To: References: Message-ID: On 2/6/17, Rebecca Jones wrote: > Hi guys. I really hope someone can point me in the right direction. > > I have setup Rancid as per guide > http://www.shrubbery.net/rancid/RhysEvans_overview_0.3.pdf and > http://www.itnotes.eu/?p=365 but I am having issues running it for the > first time. > > I have added a Cisco switch to my config for checking and I can manually > connect to it by running "bin/clogin 192.168.1.1". I have ran > "bin/rancid-run" and I get the following in the log files: > > starting: Mon 6 Feb 11:18:12 GMT 2017 > > WARNING: Have you forgotten to update the FS in router.db? router.db field separator is a semi-colon now - http://www.itnotes.eu/?p=365 is for an older version of rancid that used colons man router.db SYNTAX One device is listed per-line, where the syntax is: ;;[;comments] Regards, Lee From evan.hisey at noaa.gov Mon Feb 6 19:13:24 2017 From: evan.hisey at noaa.gov (Evan Hisey - NOAA Affiliate) Date: Mon, 6 Feb 2017 13:13:24 -0600 Subject: [rancid] Device DB entry does not update, but rancid-run against device works Message-ID: All- This has been a problem I can narrow down. If I do "rancid-run -t cisco firewall.example.com" I get the output from the firewall to a file just as you would expect. When I put the device in the router.db (there are about a dozen working devices already) and do a rancid run, all that every gets update in the CVS is "new router", it never gets the actual output from the rancid run. I have 2 other ASA's that work just fine in the same file. -- Evan Hisey The National Water Center NOAA's National Weather Service Tuscaloosa, Alabama Office: 205-347-1337 Email: evan.hisey at noaa.gov -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Mon Feb 6 22:56:39 2017 From: heas at shrubbery.net (John Heasley) Date: Mon, 6 Feb 2017 14:56:39 -0800 Subject: [rancid] Device DB entry does not update, but rancid-run against device works In-Reply-To: References: Message-ID: > Am 06.02.2017 um 11:13 schrieb Evan Hisey - NOAA Affiliate : > > All- > This has been a problem I can narrow down. If I do "rancid-run -t cisco firewall.example.com" I get the output from the firewall to a file just as you would expect. When I put the device in the router.db (there are about a dozen working devices already) and do a rancid run, all that every gets update in the CVS is "new router", it never gets the actual output from the rancid run. > > I have 2 other ASA's that work just fine in the same file. Check the log file for login, SCM, or collection failures. > > -- > Evan Hisey > The National Water Center > NOAA's National Weather Service > Tuscaloosa, Alabama > Office: 205-347-1337 > Email: evan.hisey at noaa.gov > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From Sebastien.Boulianne at cpu.ca Tue Feb 7 20:28:02 2017 From: Sebastien.Boulianne at cpu.ca (Sebastien.Boulianne at cpu.ca) Date: Tue, 7 Feb 2017 15:28:02 -0500 Subject: [rancid] Trying to take the Fortigate 300D config in backup. Message-ID: <5FE0959288C73D448BB44CB7E9CC320F5E309307F8@CPUMAIL2.cpu.qc.ca> Hi, I am trying to take the config of a Fortigate 300D in backup. After 67 lines, it stucks and it shows. The version is #Version: FortiGate-300D v5.4.2,build1100,161101 " --More-- set block-session-timer 30 --More- " Why ? How can I fix it ? Thanks you very much for your answer. S?bastien -------------- next part -------------- An HTML attachment was scrubbed... URL: From merijn at trans-ix.nl Tue Feb 7 21:48:29 2017 From: merijn at trans-ix.nl (Merijn Evertse) Date: Tue, 7 Feb 2017 21:48:29 +0000 Subject: [rancid] Trying to take the Fortigate 300D config in backup. In-Reply-To: <5FE0959288C73D448BB44CB7E9CC320F5E309307F8@CPUMAIL2.cpu.qc.ca> References: <5FE0959288C73D448BB44CB7E9CC320F5E309307F8@CPUMAIL2.cpu.qc.ca> Message-ID: Hello, I had the same issue with several Fortigate devices. It is caused by using a read-only account. The right to disable the paging is not available then. Try making the account super-admin one time to see if you have the same problem. Kind regards, Merijn Evertse Op 7 feb. 2017 om 21:28 heeft "Sebastien.Boulianne at cpu.ca" > het volgende geschreven: Hi, I am trying to take the config of a Fortigate 300D in backup. After 67 lines, it stucks and it shows. The version is #Version: FortiGate-300D v5.4.2,build1100,161101 " --More-- set block-session-timer 30 --More- " Why ? How can I fix it ? Thanks you very much for your answer. S?bastien _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From mgoeres at gmail.com Tue Feb 7 22:02:50 2017 From: mgoeres at gmail.com (Matthew Goeres) Date: Tue, 7 Feb 2017 14:02:50 -0800 Subject: [rancid] Trying to take the Fortigate 300D config in backup. In-Reply-To: References: <5FE0959288C73D448BB44CB7E9CC320F5E309307F8@CPUMAIL2.cpu.qc.ca> Message-ID: Alternatively, you can login as an admin and run this command. It will be global and if you do a show the entire output rather than more will come out, but it does fix Rancid and you can config system console set output standard end On February 7, 2017 at 3:49:02 PM, Merijn Evertse (merijn at trans-ix.nl) wrote: Hello, I had the same issue with several Fortigate devices. It is caused by using a read-only account. The right to disable the paging is not available then. Try making the account super-admin one time to see if you have the same problem. Kind regards, Merijn Evertse Op 7 feb. 2017 om 21:28 heeft "Sebastien.Boulianne at cpu.ca" < Sebastien.Boulianne at cpu.ca> het volgende geschreven: Hi, I am trying to take the config of a Fortigate 300D in backup. After 67 lines, it stucks and it shows. The version is #Version: FortiGate-300D v5.4.2,build1100,161101 ? --More-- set block-session-timer 30 --More? ? Why ? How can I fix it ? Thanks you very much for your answer. S?bastien _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From ler762 at gmail.com Thu Feb 9 15:28:40 2017 From: ler762 at gmail.com (Lee) Date: Thu, 9 Feb 2017 10:28:40 -0500 Subject: [rancid] Initial Rancid configuration and first output In-Reply-To: References: Message-ID: On 2/9/17, Rebecca Jones wrote: > Hi Lee, > > Thanks for the suggestion. > I have updated the : to a : and got a little bit further. > I can test that all of my devices are accesible by running bin/clogin > 192.168.0.2 but when I run bin/rancid-run no configurations appear > in /usr/local/rancid/var/logs. configs are in /usr/local/rancid/var/$GROUP/configs where $GROUP comes from your LIST_OF_GROUPS=" ... " in rancid.conf > Running it manually does not produce any errors. I simply get the > following: > > starting: Thu 9 Feb 10:01:59 GMT 2017 > > > cvs commit: Examining . > cvs commit: Examining configs > > ending: Thu 9 Feb 10:01:59 GMT 2017 > > I feel I have missed something very important. Can you give me any ideas? take another look at the 'Quick Installation Guide' steps in /usr/local/rancid/share/rancid/README did you do everything in there? Regards, Lee > > Thanks, > Becky > > > > > On 6 February 2017 at 21:01, Lee wrote: > >> On 2/6/17, Rebecca Jones wrote: >> > Hi guys. I really hope someone can point me in the right direction. >> > >> > I have setup Rancid as per guide >> > http://www.shrubbery.net/rancid/RhysEvans_overview_0.3.pdf and >> > http://www.itnotes.eu/?p=365 but I am having issues running it for the >> > first time. >> > >> > I have added a Cisco switch to my config for checking and I can >> > manually >> > connect to it by running "bin/clogin 192.168.1.1". I have ran >> > "bin/rancid-run" and I get the following in the log files: >> > >> > starting: Mon 6 Feb 11:18:12 GMT 2017 >> > >> > WARNING: Have you forgotten to update the FS in router.db? >> >> router.db field separator is a semi-colon now - >> http://www.itnotes.eu/?p=365 is for an older version of rancid that >> used colons >> >> man router.db >> SYNTAX >> One device is listed per-line, where the syntax is: >> ;;[;comments] >> >> Regards, >> Lee >> > > > > -- > Rebecca Jones - Group IT Support > Hayley Group Limited (Site 4) > Shelah Road, Halesowen, West Midlands, B63 3PG, England > Company No: 1257303. VAT No: GB 287546119 > [Tel] +44 (0)121 585 5334 | [Fax] +44 (0)121 585 7924 > [Email] becky.jones at hayley-group.co.uk | Group IT Helpdesk > > > -- > > > The information contained in this e-mail is intended only for the person or > > entity to which it is addressed and may contain confidential and/or > privileged material. If you are not the intended recipient of this e-mail, > the use of this information or any disclosure, copying or distribution is > strictly prohibited and may be unlawful. If you received this e-mail in > error, please contact the sender immediately and delete the material from > any computer. > > The views expressed in this e-mail may not necessarily be the views of > Hayley Group Limited and should not be taken as authority to carry out any > instruction contained within. > From becky.jones at hayley-group.co.uk Thu Feb 9 10:03:28 2017 From: becky.jones at hayley-group.co.uk (Rebecca Jones) Date: Thu, 9 Feb 2017 10:03:28 +0000 Subject: [rancid] Initial Rancid configuration and first output In-Reply-To: References: Message-ID: Hi Lee, Thanks for the suggestion. I have updated the : to a : and got a little bit further. I can test that all of my devices are accesible by running bin/clogin 192.168.0.2 but when I run bin/rancid-run no configurations appear in /usr/local/rancid/var/logs. Running it manually does not produce any errors. I simply get the following: starting: Thu 9 Feb 10:01:59 GMT 2017 cvs commit: Examining . cvs commit: Examining configs ending: Thu 9 Feb 10:01:59 GMT 2017 I feel I have missed something very important. Can you give me any ideas? Thanks, Becky On 6 February 2017 at 21:01, Lee wrote: > On 2/6/17, Rebecca Jones wrote: > > Hi guys. I really hope someone can point me in the right direction. > > > > I have setup Rancid as per guide > > http://www.shrubbery.net/rancid/RhysEvans_overview_0.3.pdf and > > http://www.itnotes.eu/?p=365 but I am having issues running it for the > > first time. > > > > I have added a Cisco switch to my config for checking and I can manually > > connect to it by running "bin/clogin 192.168.1.1". I have ran > > "bin/rancid-run" and I get the following in the log files: > > > > starting: Mon 6 Feb 11:18:12 GMT 2017 > > > > WARNING: Have you forgotten to update the FS in router.db? > > router.db field separator is a semi-colon now - > http://www.itnotes.eu/?p=365 is for an older version of rancid that > used colons > > man router.db > SYNTAX > One device is listed per-line, where the syntax is: > ;;[;comments] > > Regards, > Lee > -- Rebecca Jones - Group IT Support Hayley Group Limited (Site 4) Shelah Road, Halesowen, West Midlands, B63 3PG, England Company No: 1257303. VAT No: GB 287546119 [Tel] +44 (0)121 585 5334 | [Fax] +44 (0)121 585 7924 [Email] becky.jones at hayley-group.co.uk | Group IT Helpdesk -- The information contained in this e-mail is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this e-mail, the use of this information or any disclosure, copying or distribution is strictly prohibited and may be unlawful. If you received this e-mail in error, please contact the sender immediately and delete the material from any computer. The views expressed in this e-mail may not necessarily be the views of Hayley Group Limited and should not be taken as authority to carry out any instruction contained within. -------------- next part -------------- An HTML attachment was scrubbed... URL: From x-cut at inbox.ru Fri Feb 10 09:44:58 2017 From: x-cut at inbox.ru (=?UTF-8?B?0JzQuNGF0LDQuNC7IA==?=) Date: Fri, 10 Feb 2017 12:44:58 +0300 Subject: [rancid] problem with avaya Message-ID: Hello, i run into problem with my avaya 4134. after loggin there is no attemp to get configuration. I think this is due to SPACE chareacter after # and prompt can't recognize it. It looks like 'MSK-SR4134-2# ' Please, help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Sat Feb 11 17:15:11 2017 From: heas at shrubbery.net (heasley) Date: Sat, 11 Feb 2017 17:15:11 +0000 Subject: [rancid] Trying to take the Fortigate 300D config in backup. In-Reply-To: References: <5FE0959288C73D448BB44CB7E9CC320F5E309307F8@CPUMAIL2.cpu.qc.ca> Message-ID: <20170211171511.GA74572@shrubbery.net> Tue, Feb 07, 2017 at 09:48:29PM +0000, Merijn Evertse: > Hello, > > I had the same issue with several Fortigate devices. > It is caused by using a read-only account. The right to disable the paging is not available then. > Try making the account super-admin one time to see if you have the same problem. what is the error when the disable paging command fails? > Kind regards, > > Merijn Evertse > > Op 7 feb. 2017 om 21:28 heeft "Sebastien.Boulianne at cpu.ca" > het volgende geschreven: > > Hi, > > I am trying to take the config of a Fortigate 300D in backup. > After 67 lines, it stucks and it shows. > The version is #Version: FortiGate-300D v5.4.2,build1100,161101 > > " > --More-- set block-session-timer 30 > --More- > " > Why ? > > How can I fix it ? > > Thanks you very much for your answer. > > S?bastien > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From adrian.dimitrov at efellows.bg Tue Feb 14 07:37:45 2017 From: adrian.dimitrov at efellows.bg (Adrian Dimitrov) Date: Tue, 14 Feb 2017 07:37:45 +0000 Subject: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group Message-ID: <490FA8C6CC4CDA44A7D3E449D75BF1F72A887C@exchanger.efellows.bg> Hello Team, In our environment we have a lot of different credentials for the groups so it's a bit challenging to keep .cloginrc up to date and have all backups working. What we do is trying to have one credentials for all groups, but unfortunately this is not possible for big part of them. Is there a way to have .cloginrc files for each group in their own var directories ? Every help is appreciated, Thanks. Best Regards, Adrian Dimitrov System Administrator [eFellows-Mark-RGB_Sign] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 8632 bytes Desc: image001.png URL: From heas at shrubbery.net Tue Feb 14 17:44:13 2017 From: heas at shrubbery.net (heasley) Date: Tue, 14 Feb 2017 17:44:13 +0000 Subject: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group In-Reply-To: <490FA8C6CC4CDA44A7D3E449D75BF1F72A887C@exchanger.efellows.bg> References: <490FA8C6CC4CDA44A7D3E449D75BF1F72A887C@exchanger.efellows.bg> Message-ID: <20170214174413.GC32273@shrubbery.net> Tue, Feb 14, 2017 at 07:37:45AM +0000, Adrian Dimitrov: > Hello Team, > > In our environment we have a lot of different credentials for the groups so it's a bit challenging to keep .cloginrc up to date and have all backups working. > > What we do is trying to have one credentials for all groups, but unfortunately this is not possible for big part of them. Is there a way to have .cloginrc files for each group in their own var directories ? rancid 3.something, best to just go for 3.6.2, supports a per-group rancid.conf that can be used to overwrite rancid config, such as CLOGINRC (see clogin(1)). From doug.hughes at keystonenap.com Tue Feb 14 17:34:08 2017 From: doug.hughes at keystonenap.com (Doug Hughes) Date: Tue, 14 Feb 2017 12:34:08 -0500 Subject: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group In-Reply-To: <490FA8C6CC4CDA44A7D3E449D75BF1F72A887C@exchanger.efellows.bg> References: <490FA8C6CC4CDA44A7D3E449D75BF1F72A887C@exchanger.efellows.bg> Message-ID: I suppose using a centralized auth system like rancid or radius is out of the question? On 2/14/2017 2:37 AM, Adrian Dimitrov wrote: > > Hello Team, > > In our environment we have a lot of different credentials for the > groups so it?s a bit challenging to keep .cloginrc up to date and > have all backups working. > > What we do is trying to have one credentials for all groups, but > unfortunately this is not possible for big part of them. Is there a > way to have .cloginrc files for each group in their own var directories ? > > Every help is appreciated, Thanks. > > Best Regards, > > Adrian Dimitrov > > System Administrator > > eFellows-Mark-RGB_Sign > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss -- Doug Hughes Keystone NAP Fairless Hills, PA 1.844.KEYBLOCK (539.2562) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 8632 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: keystone-nap.png Type: image/png Size: 3476 bytes Desc: not available URL: From rfeltham at ecuad.ca Tue Feb 14 22:25:10 2017 From: rfeltham at ecuad.ca (Richard Feltham) Date: Tue, 14 Feb 2017 14:25:10 -0800 Subject: [rancid] Looking for help with disappearing/reappearing lines (like FAQ 5b, but ssh, not telnet) Message-ID: <4DA65CA6-324A-4BF5-9BF1-63C469F653DA@ecuad.ca> This appears with our fortigate and alcatel equipment, not with the cisco equipment (yet). We see ?Switch router config diffs? emails with lines like this: ? - set extip 199.60.120.134 + set extip 199.60.120.134 ? followed by emails like this: ? - set extip 199.60.120.134 + set extip 199.60.120.134 ? (disappearing/reappearing spaces) and: ? + show firewall ippool + show user local ? followed by: ? - show firewall ippool - show user local ? (appearing/disappearing lines) The first example is alcatel; the second is fortigate. It does not happen every run. We will see something at 3:01. 4:01, 9:01, 10:01, 12:01. 1:10 - who there are hours where there are no glitches. Installed version is: rancid-run -V rancid 3.5.1 Installed Packages expect.x86_64 5.44.1.15-5.el6_4 @base cvs.x86_64 1.11.23-16.el6 @base cat /etc/redhat-release CentOS release 6.8 (Final) Has anyone seen this behaviour before, and is there a fix? Richard F. -- Richard Feltham Network Operations Coordinator, IT Services | tel 604 630 4577 local 4577 emily carr university of art + design | 1399 Johnston Street, Vancouver BC V6H 3R9 -------------- next part -------------- An HTML attachment was scrubbed... URL: From shkelzen.rugovac at gmail.com Wed Feb 15 07:28:08 2017 From: shkelzen.rugovac at gmail.com (Shkelzen Rugovac) Date: Wed, 15 Feb 2017 08:28:08 +0100 Subject: [rancid] MLNX-OS support Message-ID: Hello, I would like to know if there is way to make rancid work with Mellanox Ethernet switches running MLNX-OS eg model SX1016. I already tried to adapt the following doc: http://lesser-evil.com/2015/04/wraprancid-and-rancid-3-x/ This is what I used as wrapplugin ********************************************************************************** #!/usr/bin/perl -w # ####################################################### # Modules ####################################################### # Load any modules needed use strict; use Getopt::Std; use Net::SSH::Perl; ####################################################### # Variables ####################################################### # Initialize variables used in this script my $debug = 0; my %options = (); getopts('df:', \%options); my $file = $options{'f'}; my $fh; my $host = $ARGV[0]; $debug = $options{'d'}; print STDERR "to host: $host\n" if $debug; my $ssh = Net::SSH::Perl->new($host, protocol => '2,1', debug => $debug ); print STDERR "made ssh obj\n" if $debug; $ssh->login("root"); print STDERR "login\n" if $debug; my ($stdout, $stderr, $exit) = $ssh->cmd("true"); print STDERR "got output\n" if $debug; # Open the output file. open($fh, ">", $file) or die "Cannot open output file\n"; print $fh "#RANCID-CONTENT-TYPE: wrapper.mlnx\n#\n"; print $fh $stdout; print STDERR "wrote output of ". length($stdout)." bytes\n" if $debug; ####### # End # ####### close($fh); print STDERR "done\n" if $debug; **************************************************************************************** But it only shows this part of the config: ***************************************************************************************** 1. RANCID-CONTENT-TYPE: cisco 2. ! 3. ! 4. ! 5. ! 6. ! 7. !Image: % Unrecognized command "install". 8. !Image: Type "show ?" for help. 9. ! 10. ! 11. ! 12. ! 13. ! 14. !BootFlash: show bootvar 15. !BootFlash: Installed images: 16. !BootFlash: Partition 1: 17. !BootFlash: SX_PPC_M460EX SX_3.2.0506 2012-10-14 19:50:50 ppc 18. !BootFlash: Partition 2: 19. !BootFlash: SX_PPC_M460EX SX_3.2.0506 2012-10-14 19:50:50 ppc 20. !BootFlash: Last boot partition: 1 21. !BootFlash: Next boot partition: 1 22. !BootFlash: Boot manager password is set. 23. !BootFlash: No image install currently in progress. 24. !BootFlash: Image signing: trusted signature always required 25. !BootFlash: Admin require signed images: yes 26. !BootFlash: Settings for next boot only: 27. !BootFlash: Fallback reboot on configuration failure: yes (default) 28. ! 29. !BootFlash: show variables boot 30. !BootFlash: Installed images: 31. !BootFlash: Partition 1: 32. !BootFlash: SX_PPC_M460EX SX_3.2.0506 2012-10-14 19:50:50 ppc 33. !BootFlash: Partition 2: 34. !BootFlash: SX_PPC_M460EX SX_3.2.0506 2012-10-14 19:50:50 ppc 35. !BootFlash: Last boot partition: 1 36. !BootFlash: Next boot partition: 1 37. !BootFlash: Boot manager password is set. 38. !BootFlash: No image install currently in progress. 39. !BootFlash: Image signing: trusted signature always required 40. !BootFlash: Admin require signed images: yes 41. !BootFlash: Settings for next boot only: 42. !BootFlash: Fallback reboot on configuration failure: yes (default) 43. ! 44. !BootFlash: % Unrecognized command "variables". 45. !BootFlash: Type "show ?" for help. 46. ! 47. !Flash: % Unrecognized command "flash". 48. !Flash: Type "show ?" for help. 49. ! 50. !Flash: [standalone: % Unrecognized command "dir". 51. !Flash: [standalone: Type "?" for help. 52. ! 53. !Flash: [standalone: % Unrecognized command "dir". 54. !Flash: [standalone: Type "?" for help. 55. ! 56. !Flash: [standalone: % Unrecognized command "dir". 57. !Flash: [standalone: Type "?" for help. *********************************************************************************** Does anyone have already a workaround for this? Is there any development on a possible "mlxlogin"? Cheers, Shkelzen -------------- next part -------------- An HTML attachment was scrubbed... URL: From MrPaulAR at gmx.com Wed Feb 15 21:03:57 2017 From: MrPaulAR at gmx.com (Paul Thomas) Date: Wed, 15 Feb 2017 22:03:57 +0100 Subject: [rancid] 3.6.2 ALU Script Message-ID: An HTML attachment was scrubbed... URL: From heas at shrubbery.net Wed Feb 15 21:34:52 2017 From: heas at shrubbery.net (heasley) Date: Wed, 15 Feb 2017 21:34:52 +0000 Subject: [rancid] 3.6.2 ALU Script In-Reply-To: References: Message-ID: <20170215213452.GU32273@shrubbery.net> Wed, Feb 15, 2017 at 10:03:57PM +0100, Paul Thomas: >
I'm running 3.6.2 and have rancid working on other platforms (IOS, XR, Juniper, etc) but trying to extend functionality into the ALU/Nokai 7750 space.  I found a somewhat dated script for that platform.
please download the alpha version of rancid. a Nokia employee & snijders have been helping me with nokia support. From Allen.Wang at romaxtech.com Thu Feb 16 04:34:53 2017 From: Allen.Wang at romaxtech.com (Allen Wang) Date: Thu, 16 Feb 2017 04:34:53 +0000 Subject: [rancid] How rancid work with Cisco SG300 Message-ID: Hello guys, I cannot find a suitable type for Cisco SG300, will it be cisco ? I find out a thread related to SG500, and the type was used is cisco-sb, but not available anymore in my version 3.4.1 Also I get this error, anyone can help ? spawn telnet XXX.XXX.XXX.XXX Trying XXX.XXX.XXX.XXX... Connected to XXX.XXX.XXX.XXX. Escape character is '^]'. User Name:Connection closed by foreign host. Error: Connection closed (telnet): XXX.XXX.XXX.XXX Thanks Telephone number: +81 (0) 3 5767 9400 (main) E-mail: info at romaxtech.com Website: www.romaxtech.com For other office locations see: romaxtech.com/about-us/locations.aspx Office: Romax Technology, 10-05, Building 1 Huarui Centre, 66 Jianshe Yi Road, Xiaoshan District, Hangzhou, Zhejiang, 311215, China Confidentiality Statement This transmission is for the addressee only and contains information that is confidential and privileged. Unless you are the named addressee, or authorised to receive it on behalf of the addressee, you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please delete from your system and contact the sender. Thank you for your cooperation. -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Thu Feb 16 16:11:35 2017 From: heas at shrubbery.net (heasley) Date: Thu, 16 Feb 2017 16:11:35 +0000 Subject: [rancid] How rancid work with Cisco SG300 In-Reply-To: References: Message-ID: <20170216161135.GD96680@shrubbery.net> Thu, Feb 16, 2017 at 04:34:53AM +0000, Allen Wang: > Hello guys, > > I cannot find a suitable type for Cisco SG300, will it be cisco ? > I find out a thread related to SG500, and the type was used is cisco-sb, but not available anymore in my version 3.4.1 cisco-sb, but you must run the alpha version of rancid. From adrian.dimitrov at efellows.bg Thu Feb 16 16:36:46 2017 From: adrian.dimitrov at efellows.bg (Adrian Dimitrov) Date: Thu, 16 Feb 2017 16:36:46 +0000 Subject: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group In-Reply-To: <20170214174413.GC32273@shrubbery.net> References: <490FA8C6CC4CDA44A7D3E449D75BF1F72A887C@exchanger.efellows.bg> <20170214174413.GC32273@shrubbery.net> Message-ID: <490FA8C6CC4CDA44A7D3E449D75BF1F72AEB7D@exchanger.efellows.bg> Hello I get the point and went through the manuals, one last thing, I cannot find where in the rancid.conf file I can set which .cloginrc to use. One last thing I guess custom rancid.conf should be copied from the original one and customized. Best Regards, Adrian Dimitrov System Administrator -----Original Message----- From: heasley [mailto:heas at shrubbery.net] Sent: Tuesday, February 14, 2017 7:44 PM To: Adrian Dimitrov Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group Tue, Feb 14, 2017 at 07:37:45AM +0000, Adrian Dimitrov: > Hello Team, > > In our environment we have a lot of different credentials for the groups so it's a bit challenging to keep .cloginrc up to date and have all backups working. > > What we do is trying to have one credentials for all groups, but unfortunately this is not possible for big part of them. Is there a way to have .cloginrc files for each group in their own var directories ? rancid 3.something, best to just go for 3.6.2, supports a per-group rancid.conf that can be used to overwrite rancid config, such as CLOGINRC (see clogin(1)). From heas at shrubbery.net Thu Feb 16 16:45:37 2017 From: heas at shrubbery.net (heasley) Date: Thu, 16 Feb 2017 16:45:37 +0000 Subject: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group In-Reply-To: <490FA8C6CC4CDA44A7D3E449D75BF1F72AEB7D@exchanger.efellows.bg> References: <490FA8C6CC4CDA44A7D3E449D75BF1F72A887C@exchanger.efellows.bg> <20170214174413.GC32273@shrubbery.net> <490FA8C6CC4CDA44A7D3E449D75BF1F72AEB7D@exchanger.efellows.bg> Message-ID: <20170216164537.GE96680@shrubbery.net> Thu, Feb 16, 2017 at 04:36:46PM +0000, Adrian Dimitrov: > Hello I get the point and went through the manuals, one last thing, I cannot find where in the rancid.conf file I can set which .cloginrc to use. just add a line; its just shell variables. > One last thing I guess custom rancid.conf should be copied from the original one and customized. customize it. From Allen.Wang at romaxtech.com Fri Feb 17 04:39:40 2017 From: Allen.Wang at romaxtech.com (Allen Wang) Date: Fri, 17 Feb 2017 04:39:40 +0000 Subject: [rancid] How rancid work with Cisco SG300 In-Reply-To: <20170216161135.GD96680@shrubbery.net> References: <20170216161135.GD96680@shrubbery.net> Message-ID: Hi Heasley, Thanks, but which version is better ? any recommendation ? -----Original Message----- From: heasley [mailto:heas at shrubbery.net] Sent: Friday, February 17, 2017 12:12 AM To: Allen Wang Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] How rancid work with Cisco SG300 Thu, Feb 16, 2017 at 04:34:53AM +0000, Allen Wang: > Hello guys, > > I cannot find a suitable type for Cisco SG300, will it be cisco ? > I find out a thread related to SG500, and the type was used is cisco-sb, but not available anymore in my version 3.4.1 cisco-sb, but you must run the alpha version of rancid. Telephone number: +81 (0) 3 5767 9400 (main) E-mail: info at romaxtech.com Website: www.romaxtech.com For other office locations see: romaxtech.com/about-us/locations.aspx Office: Romax Technology, 10-05, Building 1 Huarui Centre, 66 Jianshe Yi Road, Xiaoshan District, Hangzhou, Zhejiang, 311215, China Confidentiality Statement This transmission is for the addressee only and contains information that is confidential and privileged. Unless you are the named addressee, or authorised to receive it on behalf of the addressee, you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please delete from your system and contact the sender. Thank you for your cooperation. From tyhsiehg at gmail.com Fri Feb 17 19:15:55 2017 From: tyhsiehg at gmail.com (TSUNGYEN HSIEH) Date: Fri, 17 Feb 2017 13:15:55 -0600 Subject: [rancid] Fwd: ALU RANCID Issue In-Reply-To: References: Message-ID: Hi, I am running RANCID for the lab and everything seems to be working other than my Alcatel-Lucent (now Nokia) equipment, to be specific 7750, so did an alurancid -d . Got the following results: executing alulogin -t 90 -c"show chassis environment;show chassis power-supply;admin display-config;show system information;show redundancy synchronization" priv-20 PROMPT MATCH: "*A:priv-20#" HIT COMMAND:*A:priv-20# show chassis environment In ShowHw: *A:priv-20# show chassis environment HIT COMMAND:*A:priv-20# show chassis power-supply In ShowPwr: *A:priv-20# show chassis power-supply HIT COMMAND:*A:priv-20# admin display-config In ShowConfig: *A:priv-20# admin display-config HIT COMMAND:*A:priv-20# show system information In ShowSysinfo: *A:priv-20# show system information HIT COMMAND:*A:priv-20# show redundancy synchronization In ShowRedSync: *A:priv-20# show redundancy synchronization priv-20: End of run not found priv-20: clean_run 0 priv-20: found_end 5 priv-20: End of run not found ==================================================== And the log shows the following: Trying to get all of the configs. dsl-gw20: End of run not found !*A: dsl-gw20#logout mer-20: End of run not found !A: mer-20#logout mer-21: End of run not found !A: mer-21#logout mar-20: End of run not found !A: mar-20#logout mgr-20: End of run not found !A: mgr-20#logout pcor-20: End of run not found !A: pcor-20#logout priv-20: End of run not found !*A: priv-20#logout mar-20: End of run not found !*A: mar-20#logout priv-20: End of run not found !*A: priv-20#logout ============================================= Anyone has any idea, thoughts, or comments? Thank you! -Yen -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.dimitrov at efellows.bg Mon Feb 20 09:49:30 2017 From: adrian.dimitrov at efellows.bg (Adrian Dimitrov) Date: Mon, 20 Feb 2017 09:49:30 +0000 Subject: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group In-Reply-To: <20170216164537.GE96680@shrubbery.net> References: <490FA8C6CC4CDA44A7D3E449D75BF1F72A887C@exchanger.efellows.bg> <20170214174413.GC32273@shrubbery.net> <490FA8C6CC4CDA44A7D3E449D75BF1F72AEB7D@exchanger.efellows.bg> <20170216164537.GE96680@shrubbery.net> Message-ID: <490FA8C6CC4CDA44A7D3E449D75BF1F72B2CAA@exchanger.efellows.bg> Hello Heasley , team , I tried another thing, adjusting .cloginrc file with include , and made a new file for each group/customer. This works as a charm, but still, it is not suitable for our environment, so I tried to add variable to custom rancid.conf file, but unfortunately it didn't work. I am still not skillful enough, can u please give me a simple example. What I did was: 1. Copied original rancid.conf and move it to Group1 directory, same thing for .cloginrc. 2. creating variable .cloginrc=Directory where the new file is, in this case directory of group1. Still rancid is using the original .cloginrc file or if there is no such file I get an error. Best Regards, Adrian Dimitrov System Administrator -----Original Message----- From: heasley [mailto:heas at shrubbery.net] Sent: Thursday, February 16, 2017 6:46 PM To: Adrian Dimitrov Cc: heasley ; rancid-discuss at shrubbery.net Subject: Re: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group Thu, Feb 16, 2017 at 04:36:46PM +0000, Adrian Dimitrov: > Hello I get the point and went through the manuals, one last thing, I cannot find where in the rancid.conf file I can set which .cloginrc to use. just add a line; its just shell variables. > One last thing I guess custom rancid.conf should be copied from the original one and customized. customize it. From adrian.dimitrov at efellows.bg Mon Feb 20 13:56:46 2017 From: adrian.dimitrov at efellows.bg (Adrian Dimitrov) Date: Mon, 20 Feb 2017 13:56:46 +0000 Subject: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group In-Reply-To: <490FA8C6CC4CDA44A7D3E449D75BF1F72B2CAA@exchanger.efellows.bg> References: <490FA8C6CC4CDA44A7D3E449D75BF1F72A887C@exchanger.efellows.bg> <20170214174413.GC32273@shrubbery.net> <490FA8C6CC4CDA44A7D3E449D75BF1F72AEB7D@exchanger.efellows.bg> <20170216164537.GE96680@shrubbery.net> <490FA8C6CC4CDA44A7D3E449D75BF1F72B2CAA@exchanger.efellows.bg> Message-ID: <490FA8C6CC4CDA44A7D3E449D75BF1F72C3B79@exchanger.efellows.bg> Hello Again, I made it work with adding the following: CLOGINRC="/usr/local/rancid/var/Group/.cloginrc"; export CLOGINRC Still an example will be apriciated. Best Regards, Adrian Dimitrov System Administrator -----Original Message----- From: Adrian Dimitrov Sent: Monday, February 20, 2017 11:49 AM To: 'heasley' Cc: rancid-discuss at shrubbery.net Subject: RE: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group Hello Heasley , team , I tried another thing, adjusting .cloginrc file with include , and made a new file for each group/customer. This works as a charm, but still, it is not suitable for our environment, so I tried to add variable to custom rancid.conf file, but unfortunately it didn't work. I am still not skillful enough, can u please give me a simple example. What I did was: 1. Copied original rancid.conf and move it to Group1 directory, same thing for .cloginrc. 2. creating variable .cloginrc=Directory where the new file is, in this case directory of group1. Still rancid is using the original .cloginrc file or if there is no such file I get an error. Best Regards, Adrian Dimitrov System Administrator -----Original Message----- From: heasley [mailto:heas at shrubbery.net] Sent: Thursday, February 16, 2017 6:46 PM To: Adrian Dimitrov Cc: heasley ; rancid-discuss at shrubbery.net Subject: Re: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group Thu, Feb 16, 2017 at 04:36:46PM +0000, Adrian Dimitrov: > Hello I get the point and went through the manuals, one last thing, I cannot find where in the rancid.conf file I can set which .cloginrc to use. just add a line; its just shell variables. > One last thing I guess custom rancid.conf should be copied from the original one and customized. customize it. From doug.hughes at keystonenap.com Mon Feb 20 14:20:32 2017 From: doug.hughes at keystonenap.com (Doug Hughes) Date: Mon, 20 Feb 2017 09:20:32 -0500 Subject: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group In-Reply-To: <490FA8C6CC4CDA44A7D3E449D75BF1F72C3B79@exchanger.efellows.bg> References: <490FA8C6CC4CDA44A7D3E449D75BF1F72A887C@exchanger.efellows.bg> <20170214174413.GC32273@shrubbery.net> <490FA8C6CC4CDA44A7D3E449D75BF1F72AEB7D@exchanger.efellows.bg> <20170216164537.GE96680@shrubbery.net> <490FA8C6CC4CDA44A7D3E449D75BF1F72B2CAA@exchanger.efellows.bg> <490FA8C6CC4CDA44A7D3E449D75BF1F72C3B79@exchanger.efellows.bg> Message-ID: <871740fd-aeef-3fec-cb88-408cf6e7e68e@keystonenap.com> That's basically what I would have recommended. Put a line like that in each cron that you want to execute as a separate rancid instance right above the cron entry. On 2/20/2017 8:56 AM, Adrian Dimitrov wrote: > Hello Again, > > I made it work with adding the following: > > CLOGINRC="/usr/local/rancid/var/Group/.cloginrc"; export CLOGINRC > > Still an example will be apriciated. > > Best Regards, > Adrian Dimitrov > System Administrator > > > -----Original Message----- > From: Adrian Dimitrov > Sent: Monday, February 20, 2017 11:49 AM > To: 'heasley' > Cc: rancid-discuss at shrubbery.net > Subject: RE: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group > > Hello Heasley , team , > > I tried another thing, adjusting .cloginrc file with include , and made a new file for each group/customer. This works as a charm, but still, it is not suitable for our environment, so I tried to add variable to custom rancid.conf file, but unfortunately it didn't work. I am still not skillful enough, can u please give me a simple example. > > What I did was: > 1. Copied original rancid.conf and move it to Group1 directory, same thing for .cloginrc. > 2. creating variable .cloginrc=Directory where the new file is, in this case directory of group1. > > Still rancid is using the original .cloginrc file or if there is no such file I get an error. > > Best Regards, > Adrian Dimitrov > System Administrator > > > -----Original Message----- > From: heasley [mailto:heas at shrubbery.net] > Sent: Thursday, February 16, 2017 6:46 PM > To: Adrian Dimitrov > Cc: heasley ; rancid-discuss at shrubbery.net > Subject: Re: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group > > Thu, Feb 16, 2017 at 04:36:46PM +0000, Adrian Dimitrov: >> Hello I get the point and went through the manuals, one last thing, I cannot find where in the rancid.conf file I can set which .cloginrc to use. > just add a line; its just shell variables. > >> One last thing I guess custom rancid.conf should be copied from the original one and customized. > customize it. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss -- Doug Hughes Keystone NAP Fairless Hills, PA 1.844.KEYBLOCK (539.2562) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: keystone-nap.png Type: image/png Size: 3476 bytes Desc: not available URL: From ler762 at gmail.com Mon Feb 20 15:17:35 2017 From: ler762 at gmail.com (Lee) Date: Mon, 20 Feb 2017 10:17:35 -0500 Subject: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group In-Reply-To: <490FA8C6CC4CDA44A7D3E449D75BF1F72C3B79@exchanger.efellows.bg> References: <490FA8C6CC4CDA44A7D3E449D75BF1F72A887C@exchanger.efellows.bg> <20170214174413.GC32273@shrubbery.net> <490FA8C6CC4CDA44A7D3E449D75BF1F72AEB7D@exchanger.efellows.bg> <20170216164537.GE96680@shrubbery.net> <490FA8C6CC4CDA44A7D3E449D75BF1F72B2CAA@exchanger.efellows.bg> <490FA8C6CC4CDA44A7D3E449D75BF1F72C3B79@exchanger.efellows.bg> Message-ID: On 2/20/17, Adrian Dimitrov wrote: > Hello Again, > > I made it work with adding the following: > > CLOGINRC="/usr/local/rancid/var/Group/.cloginrc"; export CLOGINRC > > Still an example will be apriciated. I just looked at the code (ie. haven't actually tried it) & control_rancid has this bit: DIR=$BASEDIR/$GROUP ... cd $DIR if [ -f "rancid.conf" ] ; then . ./rancid.conf fi so let's say rancid was installed in /usr/local/rancid and your groups are LIST_OF_GROUPS="sl joebobisp" create /usr/local/rancid/var/sl/rancid.conf with CLOGINRC=${HOME}/.cloginrc_sl; export CLOGINRC and /usr/local/rancid/var/joebobisp/rancid.conf with CLOGINRC=${HOME}/.cloginrc_joebobisp; export CLOGINRC then your group-specific cloginrc files are ~/.cloginrc_sl and ~/.cloginrc_joebobisp Regards, Lee > > Best Regards, > Adrian Dimitrov > System Administrator > > > -----Original Message----- > From: Adrian Dimitrov > Sent: Monday, February 20, 2017 11:49 AM > To: 'heasley' > Cc: rancid-discuss at shrubbery.net > Subject: RE: [rancid] How .cloginrc works and can i have separate .cloginrc > files for each group > > Hello Heasley , team , > > I tried another thing, adjusting .cloginrc file with include , and > made a new file for each group/customer. This works as a charm, but still, > it is not suitable for our environment, so I tried to add variable to custom > rancid.conf file, but unfortunately it didn't work. I am still not skillful > enough, can u please give me a simple example. > > What I did was: > 1. Copied original rancid.conf and move it to Group1 directory, same thing > for .cloginrc. > 2. creating variable .cloginrc=Directory where the new file is, in this case > directory of group1. > > Still rancid is using the original .cloginrc file or if there is no such > file I get an error. > > Best Regards, > Adrian Dimitrov > System Administrator > > > -----Original Message----- > From: heasley [mailto:heas at shrubbery.net] > Sent: Thursday, February 16, 2017 6:46 PM > To: Adrian Dimitrov > Cc: heasley ; rancid-discuss at shrubbery.net > Subject: Re: [rancid] How .cloginrc works and can i have separate .cloginrc > files for each group > > Thu, Feb 16, 2017 at 04:36:46PM +0000, Adrian Dimitrov: >> Hello I get the point and went through the manuals, one last thing, I >> cannot find where in the rancid.conf file I can set which .cloginrc to >> use. > > just add a line; its just shell variables. > >> One last thing I guess custom rancid.conf should be copied from the >> original one and customized. > > customize it. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > From adrian.dimitrov at efellows.bg Mon Feb 20 15:23:24 2017 From: adrian.dimitrov at efellows.bg (Adrian Dimitrov) Date: Mon, 20 Feb 2017 15:23:24 +0000 Subject: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group In-Reply-To: References: <490FA8C6CC4CDA44A7D3E449D75BF1F72A887C@exchanger.efellows.bg> <20170214174413.GC32273@shrubbery.net> <490FA8C6CC4CDA44A7D3E449D75BF1F72AEB7D@exchanger.efellows.bg> <20170216164537.GE96680@shrubbery.net> <490FA8C6CC4CDA44A7D3E449D75BF1F72B2CAA@exchanger.efellows.bg> <490FA8C6CC4CDA44A7D3E449D75BF1F72C3B79@exchanger.efellows.bg> Message-ID: <490FA8C6CC4CDA44A7D3E449D75BF1F72C3C61@exchanger.efellows.bg> Almost the same as I did. Thanks for the examples. My mistake was that I was not adding "export CLOGINRC", so rancid wouldn't know where to search the file and worked as default. Best Regards, Adrian Dimitrov System Administrator -----Original Message----- From: Lee [mailto:ler762 at gmail.com] Sent: Monday, February 20, 2017 5:18 PM To: Adrian Dimitrov Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] How .cloginrc works and can i have separate .cloginrc files for each group On 2/20/17, Adrian Dimitrov wrote: > Hello Again, > > I made it work with adding the following: > > CLOGINRC="/usr/local/rancid/var/Group/.cloginrc"; export CLOGINRC > > Still an example will be apriciated. I just looked at the code (ie. haven't actually tried it) & control_rancid has this bit: DIR=$BASEDIR/$GROUP ... cd $DIR if [ -f "rancid.conf" ] ; then . ./rancid.conf fi so let's say rancid was installed in /usr/local/rancid and your groups are LIST_OF_GROUPS="sl joebobisp" create /usr/local/rancid/var/sl/rancid.conf with CLOGINRC=${HOME}/.cloginrc_sl; export CLOGINRC and /usr/local/rancid/var/joebobisp/rancid.conf with CLOGINRC=${HOME}/.cloginrc_joebobisp; export CLOGINRC then your group-specific cloginrc files are ~/.cloginrc_sl and ~/.cloginrc_joebobisp Regards, Lee > > Best Regards, > Adrian Dimitrov > System Administrator > > > -----Original Message----- > From: Adrian Dimitrov > Sent: Monday, February 20, 2017 11:49 AM > To: 'heasley' > Cc: rancid-discuss at shrubbery.net > Subject: RE: [rancid] How .cloginrc works and can i have separate > .cloginrc files for each group > > Hello Heasley , team , > > I tried another thing, adjusting .cloginrc file with include , > and made a new file for each group/customer. This works as a charm, > but still, it is not suitable for our environment, so I tried to add > variable to custom rancid.conf file, but unfortunately it didn't work. > I am still not skillful enough, can u please give me a simple example. > > What I did was: > 1. Copied original rancid.conf and move it to Group1 directory, same > thing for .cloginrc. > 2. creating variable .cloginrc=Directory where the new file is, in > this case directory of group1. > > Still rancid is using the original .cloginrc file or if there is no > such file I get an error. > > Best Regards, > Adrian Dimitrov > System Administrator > > > -----Original Message----- > From: heasley [mailto:heas at shrubbery.net] > Sent: Thursday, February 16, 2017 6:46 PM > To: Adrian Dimitrov > Cc: heasley ; rancid-discuss at shrubbery.net > Subject: Re: [rancid] How .cloginrc works and can i have separate > .cloginrc files for each group > > Thu, Feb 16, 2017 at 04:36:46PM +0000, Adrian Dimitrov: >> Hello I get the point and went through the manuals, one last thing, I >> cannot find where in the rancid.conf file I can set which .cloginrc >> to use. > > just add a line; its just shell variables. > >> One last thing I guess custom rancid.conf should be copied from the >> original one and customized. > > customize it. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > From jcohen at AllenTek.com Mon Feb 20 21:56:38 2017 From: jcohen at AllenTek.com (Jessica Cohen) Date: Mon, 20 Feb 2017 21:56:38 +0000 Subject: [rancid] previous revisions not showing after upgrade to ubuntu 16.04 Message-ID: <6CBD3672C596DB49BCFF684935BD14B80108E67B@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> I upgraded my Ubuntu server from 14.04 LTS to 16.04 LTS which also updated rancid. After, I changed the router.db files to use semi-colons, everything seems to be working ok but, the previous revisions aren't showing up. I'm not sure what to do next. How can I get the previous revisions showing? -------------- next part -------------- An HTML attachment was scrubbed... URL: From missakiiki at gmail.com Tue Feb 21 06:06:54 2017 From: missakiiki at gmail.com (Miss SB) Date: Mon, 20 Feb 2017 22:06:54 -0800 (PST) Subject: [rancid] SSR SmartEdge/Ericsson Router - rancid compatibility? In-Reply-To: References: Message-ID: Hi people... Still have this same problem. I tried adding all ciphertypes to sshd_config - zilch On Thursday, 11 February 2016 12:27:52 UTC+3, Miss SB wrote: > > Hi Guys, > > I'm sorry if this has been posted before, I was wondering whether these > anyone has managed to get rancid working with these devices. When I try to > login via clogin I get the error below; > > spawn hpuifilter -- ssh -c 3des -x -l ranciduser X.X.X.X > no matching cipher found: client 3des-cbc server aes128-ctr,aes192-ctr, > aes256-ctr,arcfour256,aes256-cbc,arcfour128 > > Error: Couldn't login > . > > Any advice is welcome. > > ~Sharone > -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniloqc1 at gmail.com Mon Feb 20 20:58:59 2017 From: daniloqc1 at gmail.com (danilo costa) Date: Mon, 20 Feb 2017 17:58:59 -0300 Subject: [rancid] Viewvc dont show configurations of rancid Message-ID: Hi, I configured the rancid and viewvc, but when i execute rancid-run dont show the sw configuration on the viewvc. the log show: WARNING: Have you forgotten to update the FS in router.db? cvs commit: Examining . cvs commit: Examining configs Can you help me? -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Tue Feb 21 16:29:26 2017 From: heas at shrubbery.net (heasley) Date: Tue, 21 Feb 2017 16:29:26 +0000 Subject: [rancid] previous revisions not showing after upgrade to ubuntu 16.04 In-Reply-To: <6CBD3672C596DB49BCFF684935BD14B80108E67B@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> References: <6CBD3672C596DB49BCFF684935BD14B80108E67B@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> Message-ID: <20170221162926.GE6787@shrubbery.net> Mon, Feb 20, 2017 at 09:56:38PM +0000, Jessica Cohen: > I upgraded my Ubuntu server from 14.04 LTS to 16.04 LTS which also updated rancid. After, I changed the router.db files to use semi-colons, everything seems to be working ok but, the previous revisions aren't showing up. I'm not sure what to do next. How can I get the previous revisions showing? i'd guess that ubuntu or you moved the repository, deleted your repo during the upgrade, or changed the SCM from whatever you were using. From heas at shrubbery.net Tue Feb 21 16:54:20 2017 From: heas at shrubbery.net (heasley) Date: Tue, 21 Feb 2017 16:54:20 +0000 Subject: [rancid] Viewvc dont show configurations of rancid In-Reply-To: References: Message-ID: <20170221165420.GG6787@shrubbery.net> Mon, Feb 20, 2017 at 05:58:59PM -0300, danilo costa: > Hi, > > I configured the rancid and viewvc, but when i execute rancid-run dont show > the sw configuration on the viewvc. > > the log show: > > WARNING: Have you forgotten to update the FS in router.db? > > cvs commit: Examining . > cvs commit: Examining configs > > > Can you help me? read the UPGRADING file that came with rancid. From jcohen at AllenTek.com Tue Feb 21 18:06:19 2017 From: jcohen at AllenTek.com (Jessica Cohen) Date: Tue, 21 Feb 2017 18:06:19 +0000 Subject: [rancid] previous revisions not showing after upgrade to ubuntu 16.04 In-Reply-To: <20170221162926.GE6787@shrubbery.net> References: <6CBD3672C596DB49BCFF684935BD14B80108E67B@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> <20170221162926.GE6787@shrubbery.net> Message-ID: <6CBD3672C596DB49BCFF684935BD14B80108F686@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> The revision number is consistant with what was there previously. It's at 6148 and incrementing. Is there any way to see if the old data is there? Why did rancid mark the routers as removed when it upgraded? -----Original Message----- From: heasley [mailto:heas at shrubbery.net] Sent: Tuesday, February 21, 2017 10:29 AM To: Jessica Cohen Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] previous revisions not showing after upgrade to ubuntu 16.04 Mon, Feb 20, 2017 at 09:56:38PM +0000, Jessica Cohen: > I upgraded my Ubuntu server from 14.04 LTS to 16.04 LTS which also updated rancid. After, I changed the router.db files to use semi-colons, everything seems to be working ok but, the previous revisions aren't showing up. I'm not sure what to do next. How can I get the previous revisions showing? i'd guess that ubuntu or you moved the repository, deleted your repo during the upgrade, or changed the SCM from whatever you were using. From jason at biel-tech.com Tue Feb 21 18:09:22 2017 From: jason at biel-tech.com (Jason Biel) Date: Tue, 21 Feb 2017 12:09:22 -0600 Subject: [rancid] Upgrades with new commands and custom PM files. Message-ID: When adding new commands via creating rancid.types.conf and creating a new *.pm file, what is the best process with regards to upgrading? I've been running 3.2 with a specific rancid.types.conf file that referenced specific *.pm files, but after upgrading to 3.6.2, none of them worked because the *.pm files are specifically hard coded to the rancid version. To create my specific *.pm files I just copied the current *.pm file from the 3.2 install and made my modifications there, such as the commands and the sub-routine. 3.2 - 'use rancid 3.2' 3.6.2 - 'use rancid 3.6.2' Is there a better way? -- Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Tue Feb 21 18:43:06 2017 From: heas at shrubbery.net (heasley) Date: Tue, 21 Feb 2017 18:43:06 +0000 Subject: [rancid] Upgrades with new commands and custom PM files. In-Reply-To: References: Message-ID: <20170221184306.GN6787@shrubbery.net> Tue, Feb 21, 2017 at 12:09:22PM -0600, Jason Biel: > When adding new commands via creating rancid.types.conf and creating a new > *.pm file, what is the best process with regards to upgrading? > > I've been running 3.2 with a specific rancid.types.conf file that > referenced specific *.pm files, but after upgrading to 3.6.2, none of them > worked because the *.pm files are specifically hard coded to the rancid > version. To create my specific *.pm files I just copied the current *.pm > file from the 3.2 install and made my modifications there, such as the > commands and the sub-routine. you dont have to do that, require a specific version that is. they are in rancid to help identify old versions of modules that might be left behind - ie: its a support concern. > 3.2 - 'use rancid 3.2' > 3.6.2 - 'use rancid 3.6.2' > > Is there a better way? > > -- > Jason > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From erikm at buh.org Tue Feb 21 18:43:47 2017 From: erikm at buh.org (Erik Muller) Date: Tue, 21 Feb 2017 13:43:47 -0500 Subject: [rancid] Upgrades with new commands and custom PM files. In-Reply-To: References: Message-ID: On 2/21/17 13:09 , Jason Biel wrote: > When adding new commands via creating rancid.types.conf and creating a new > *.pm file, what is the best process with regards to upgrading? > > I've been running 3.2 with a specific rancid.types.conf file that > referenced specific *.pm files, but after upgrading to 3.6.2, none of them > worked because the *.pm files are specifically hard coded to the rancid > version. To create my specific *.pm files I just copied the current *.pm > file from the 3.2 install and made my modifications there, such as the > commands and the sub-routine. > > 3.2 - 'use rancid 3.2' > 3.6.2 - 'use rancid 3.6.2' > > Is there a better way? You should just be able to just leave off the version tag (ie, just "use rancid;"), to use the current default version. You should only need to specify the version if you want to make sure it's consistent with the rest of a package, or need to ensure that some minimum version is present because you need features in that version or later. (3.6.2 is obviously > 3.2, so actually that should work - I think the check breaks because the version numbers have different formats, where one looks like a number and the other a string?.) hth, -e From jason at biel-tech.com Tue Feb 21 19:33:37 2017 From: jason at biel-tech.com (Jason Biel) Date: Tue, 21 Feb 2017 13:33:37 -0600 Subject: [rancid] Upgrades with new commands and custom PM files. In-Reply-To: References: Message-ID: Is copying the whole *.pm the best way though? All the default commands/routines included. i.e. junos.pm --> junos_rtr.pm; which then gets configured in rancid.types.conf I add the custom commands/routines to 'junos_rtr.pm', but included all the original commands/routines. Then when an upgrade comes up and there is a fix to the original junos.pm, it's not in the junos_rtr.pm I created. Thinking out loud, is there a way to have a junos_rtr.pm that includes only my custom commands/routines and leave the original junos.pm intact? I want rancid to also run "show system commit": i.e. rancid.types.base has: juniper;script;rancid -t juniper juniper;login;jlogin juniper;module;junos juniper;inloop;junos::inloop juniper;command;junos::ShowChassisClocks;show chassis clocks juniper;command;junos::ShowConfiguration;show configuration and rancid.types.conf has: junos_rtr;script;rancid -t junos_rtr junos_rtr;login;jlogin junos_rtr;module;junos_rtr junos_rtr;inloop;junos_rtr::inloop junos_rtr;command;junos_rtr::ShowSystemCommit;show system commit with the junos_rtr.pm containing only the minimal configuration needed for the routine to process ShowSystemCommit. Having custom commands/routines separated seems like it would be easier to deal with upgrades so that fixes in the provided *.pm files got applied, without having to diff the new base *.pm files against the custom ones. On Tue, Feb 21, 2017 at 12:43 PM, Erik Muller wrote: > On 2/21/17 13:09 , Jason Biel wrote: > > When adding new commands via creating rancid.types.conf and creating a > new > > *.pm file, what is the best process with regards to upgrading? > > > > I've been running 3.2 with a specific rancid.types.conf file that > > referenced specific *.pm files, but after upgrading to 3.6.2, none of > them > > worked because the *.pm files are specifically hard coded to the rancid > > version. To create my specific *.pm files I just copied the current *.pm > > file from the 3.2 install and made my modifications there, such as the > > commands and the sub-routine. > > > > 3.2 - 'use rancid 3.2' > > 3.6.2 - 'use rancid 3.6.2' > > > > Is there a better way? > > You should just be able to just leave off the version tag (ie, just "use > rancid;"), to use the current default version. > You should only need to specify the version if you want to make sure it's > consistent with the rest of a package, or need to ensure that some minimum > version is present because you need features in that version or later. > (3.6.2 is obviously > 3.2, so actually that should work - I think the check > breaks because the version numbers have different formats, where one looks > like a number and the other a string?.) > > hth, > -e > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Tue Feb 21 19:44:14 2017 From: heas at shrubbery.net (heasley) Date: Tue, 21 Feb 2017 19:44:14 +0000 Subject: [rancid] Upgrades with new commands and custom PM files. In-Reply-To: References: Message-ID: <20170221194413.GQ6787@shrubbery.net> Tue, Feb 21, 2017 at 01:33:37PM -0600, Jason Biel: > Is copying the whole *.pm the best way though? All the default > commands/routines included. > > i.e. junos.pm --> junos_rtr.pm; which then gets configured in > rancid.types.conf > > I add the custom commands/routines to 'junos_rtr.pm', but included all the > original commands/routines. Then when an upgrade comes up and there is a > fix to the original junos.pm, it's not in the junos_rtr.pm I created. > > Thinking out loud, is there a way to have a junos_rtr.pm that includes only > my custom commands/routines and leave the original junos.pm intact? implementation decision. you can import both modules. see ciscoshtech of in the alpha version of rancid. From jason at biel-tech.com Wed Feb 22 00:45:47 2017 From: jason at biel-tech.com (Jason Biel) Date: Tue, 21 Feb 2017 18:45:47 -0600 Subject: [rancid] Upgrades with new commands and custom PM files. In-Reply-To: <20170221194413.GQ6787@shrubbery.net> References: <20170221194413.GQ6787@shrubbery.net> Message-ID: Is importing both modules supported in 3.6.2 or is it on the roadmap? On Tue, Feb 21, 2017 at 1:44 PM, heasley wrote: > Tue, Feb 21, 2017 at 01:33:37PM -0600, Jason Biel: > > Is copying the whole *.pm the best way though? All the default > > commands/routines included. > > > > i.e. junos.pm --> junos_rtr.pm; which then gets configured in > > rancid.types.conf > > > > I add the custom commands/routines to 'junos_rtr.pm', but included all > the > > original commands/routines. Then when an upgrade comes up and there is a > > fix to the original junos.pm, it's not in the junos_rtr.pm I created. > > > > Thinking out loud, is there a way to have a junos_rtr.pm that includes > only > > my custom commands/routines and leave the original junos.pm intact? > > implementation decision. you can import both modules. see ciscoshtech of > in the alpha version of rancid. > -- Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Wed Feb 22 01:50:17 2017 From: heas at shrubbery.net (heasley) Date: Wed, 22 Feb 2017 01:50:17 +0000 Subject: [rancid] Upgrades with new commands and custom PM files. In-Reply-To: References: <20170221194413.GQ6787@shrubbery.net> Message-ID: <20170222015016.GH28595@shrubbery.net> Tue, Feb 21, 2017 at 06:45:47PM -0600, Jason Biel: > Is importing both modules supported in 3.6.2 or is it on the roadmap? yes, since 3.0. From jason at biel-tech.com Wed Feb 22 12:30:05 2017 From: jason at biel-tech.com (Jason Biel) Date: Wed, 22 Feb 2017 06:30:05 -0600 Subject: [rancid] Upgrades with new commands and custom PM files. In-Reply-To: <20170222015016.GH28595@shrubbery.net> References: <20170221194413.GQ6787@shrubbery.net> <20170222015016.GH28595@shrubbery.net> Message-ID: Following the iosshtech example and building a specific PM for 'show system commit', I get: loadtype: device type junos_rtr loadtype: found device type junos_rtr in /var/rancid/etc/rancid.types.conf Carp::EXPORT_FAIL cached: verbose &verbose at /usr/share/perl5/Exporter/Heavy.pm line 173. Importing into Carp from Carp: carp, confess, croak at /usr/share/perl5/Exporter/Heavy.pm line 192. Importing into junos_sys_commit from rancid: $VERSION, $aclfilterseq, $aclsort, $clean_run, $cmds_regexp, $commandcnt, $commandstr, $debug, $devtype, $file, $filter_commstr, $filter_osc, $filter_pwds, $found_end, $host, $inloop, $log, $lscript, $prompt, $script, $timeo, %commands, @commands, @commandtable, @modules, ProcessHistory, RunCommand, ipaddrval, ipsort, keynsort, keysort, loadtype, numerically, numsort, rancidinit, sortbyipaddr, valsort at /var/rancid/lib/rancid/junos_sys_commit.pm line 55 line 55 being the 'use rancid 3.6.2;' statement. The error persists even when using 'use rancid;' The commands shown include the added module/command, which is interesting. On Tue, Feb 21, 2017 at 7:50 PM, heasley wrote: > Tue, Feb 21, 2017 at 06:45:47PM -0600, Jason Biel: > > Is importing both modules supported in 3.6.2 or is it on the roadmap? > > yes, since 3.0. > -- Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Wed Feb 22 19:00:09 2017 From: heas at shrubbery.net (heasley) Date: Wed, 22 Feb 2017 19:00:09 +0000 Subject: [rancid] Upgrades with new commands and custom PM files. In-Reply-To: References: <20170221194413.GQ6787@shrubbery.net> <20170222015016.GH28595@shrubbery.net> Message-ID: <20170222190008.GH30031@shrubbery.net> Wed, Feb 22, 2017 at 06:30:05AM -0600, Jason Biel: > Following the iosshtech example and building a specific PM for 'show system > commit', I get: > > loadtype: device type junos_rtr > loadtype: found device type junos_rtr in /var/rancid/etc/rancid.types.conf > Carp::EXPORT_FAIL cached: verbose &verbose at > /usr/share/perl5/Exporter/Heavy.pm line 173. > Importing into Carp from Carp: carp, confess, croak at > /usr/share/perl5/Exporter/Heavy.pm line 192. > Importing into junos_sys_commit from rancid: $VERSION, $aclfilterseq, > $aclsort, $clean_run, $cmds_regexp, $commandcnt, $commandstr, $debug, > $devtype, $file, $filter_commstr, $filter_osc, $filter_pwds, $found_end, > $host, $inloop, $log, $lscript, $prompt, $script, $timeo, %commands, > @commands, @commandtable, @modules, ProcessHistory, RunCommand, ipaddrval, > ipsort, keynsort, keysort, loadtype, numerically, numsort, rancidinit, > sortbyipaddr, valsort at /var/rancid/lib/rancid/junos_sys_commit.pm line 55 > > line 55 being the 'use rancid 3.6.2;' statement. The error persists even > when using 'use rancid;' that doesnt look like an error; seem informational. the previous 4 lines are likely more applicable, if those are in fact errors. maybe you're just setting Carp::Verbose. > The commands shown include the added module/command, which is interesting. > > > On Tue, Feb 21, 2017 at 7:50 PM, heasley wrote: > > > Tue, Feb 21, 2017 at 06:45:47PM -0600, Jason Biel: > > > Is importing both modules supported in 3.6.2 or is it on the roadmap? > > > > yes, since 3.0. > > > > > > -- > Jason From jcohen at AllenTek.com Thu Feb 23 20:20:03 2017 From: jcohen at AllenTek.com (Jessica Cohen) Date: Thu, 23 Feb 2017 20:20:03 +0000 Subject: [rancid] hp hlogin failing Message-ID: <6CBD3672C596DB49BCFF684935BD14B801092333@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> Hlogin is failing for some reason on my HP2410G. The logs show 192.168.0.7 clogin error: Error: TIMEOUT reached 192.168.0.7: missed cmd(s): write term,show system-information,show system information,show tech transceivers,show module,show version,show config status,show flash,show stack,show config files 192.168.0.7: End of run not found I run it from the CLI and it sort of works. I get to the command prompt in the switch but then can't enter any commands. If I SSH directly to the switch from the server it works fine. Suggestions? Response from hlogin below. rancid at net-mgmt2:~/logs$ /usr/lib/rancid/bin/hlogin 192.168.0.7 192.168.0.7 spawn hpuifilter -- ssh -c 3des -x -l admin 192.168.0.7 We'd like to keep you up to date about: * Software feature updates * New product announcements * Special events Please register your products now at: www.ProCurve.com admin at 192.168.0.7's password: ProCurve J9279A Switch 2510G-24 Software revision Y.11.44 Copyright (C) 1991-2013 Hewlett-Packard Co. All Rights Reserved. RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and Computer Software clause at 52.227-7013. HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303 Press any key to continuemgmt-OOB-sw1# ----------------------------------------- Improving the Patient Experience Doesn't Have To Be Hard. Ask Us How. Allen Technologies | www.EngageWithAllen.com Jessica Cohen, Sr. Network Engineer o: 512/524-6520 jcohen at engagewithallen.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rancid at ale.cx Thu Feb 23 21:37:12 2017 From: rancid at ale.cx (Alex DEKKER) Date: Thu, 23 Feb 2017 21:37:12 +0000 Subject: [rancid] hp hlogin failing In-Reply-To: <6CBD3672C596DB49BCFF684935BD14B801092333@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> References: <6CBD3672C596DB49BCFF684935BD14B801092333@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> Message-ID: On 23/02/17 20:20, Jessica Cohen wrote: > > Hlogin is failing for some reason on my HP2410G. The logs show > > 192.168.0.7 clogin error: Error: TIMEOUT reached > > 192.168.0.7: missed cmd(s): write term,show system-information,show > system information,show tech transceivers,show module,show > version,show config status,show flash,show stack,show config files > > 192.168.0.7: End of run not found > > I run it from the CLI and it sort of works. I get to the command > prompt in the switch but then can?t enter any commands. If I SSH > directly to the switch from the server it works fine. > When you SSH, do you have to press something to see the prompt? > Suggestions? Response from hlogin below. > > rancid at net-mgmt2:~/logs$ /usr/lib/rancid/bin/hlogin 192.168.0.7 > > 192.168.0.7 > > spawn hpuifilter -- ssh -c 3des -x -l admin 192.168.0.7 > > We'd like to keep you up to date about: > > * Software feature updates > > > > HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303 > > Press any key to continuemgmt-OOB-sw1# > It looks like RANCID doesn't recognise the prompt, but it seems like it has pressed something. A quick google suggests a change in 3.5 might be relevant: "hlogin: when refactoring prompt, eat full lines before looking for the prompt" alexd -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcohen at AllenTek.com Thu Feb 23 23:33:50 2017 From: jcohen at AllenTek.com (Jessica Cohen) Date: Thu, 23 Feb 2017 23:33:50 +0000 Subject: [rancid] hp hlogin failing In-Reply-To: References: <6CBD3672C596DB49BCFF684935BD14B801092333@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> Message-ID: <6CBD3672C596DB49BCFF684935BD14B801092933@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303 Press any key to continuemgmt-OOB-sw1# It looks like RANCID doesn't recognise the prompt, but it seems like it has pressed something. A quick google suggests a change in 3.5 might be relevant: "hlogin: when refactoring prompt, eat full lines before looking for the prompt" alexd -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Fri Feb 24 00:16:58 2017 From: heas at shrubbery.net (heasley) Date: Fri, 24 Feb 2017 00:16:58 +0000 Subject: [rancid] hp hlogin failing In-Reply-To: References: <6CBD3672C596DB49BCFF684935BD14B801092333@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> Message-ID: <20170224001657.GG61361@shrubbery.net> Thu, Feb 23, 2017 at 09:37:12PM +0000, Alex DEKKER: > On 23/02/17 20:20, Jessica Cohen wrote: > > > > Hlogin is failing for some reason on my HP2410G. The logs show > > > > 192.168.0.7 clogin error: Error: TIMEOUT reached > > > > 192.168.0.7: missed cmd(s): write term,show system-information,show > > system information,show tech transceivers,show module,show > > version,show config status,show flash,show stack,show config files > > > > 192.168.0.7: End of run not found > > > > I run it from the CLI and it sort of works. I get to the command > > prompt in the switch but then can?t enter any commands. If I SSH > > directly to the switch from the server it works fine. > > > > When you SSH, do you have to press something to see the prompt? > > > Suggestions? Response from hlogin below. > > > > rancid at net-mgmt2:~/logs$ /usr/lib/rancid/bin/hlogin 192.168.0.7 > > > > 192.168.0.7 > > > > spawn hpuifilter -- ssh -c 3des -x -l admin 192.168.0.7 > > > > We'd like to keep you up to date about: > > > > * Software feature updates > > > > > > > > HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303 > > > > Press any key to continuemgmt-OOB-sw1# why is it missing a \r\n? is that rancid eating that in hpuifilter or it he box doing that? hlogin sends a space. might have to look at debug info; hlogin -d -c 'show vers' hostname > > It looks like RANCID doesn't recognise the prompt, but it seems like it > has pressed something. > > A quick google suggests a change in 3.5 might be relevant: > > "hlogin: when refactoring prompt, eat full lines before looking for the > prompt" > > alexd > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From jcohen at AllenTek.com Fri Feb 24 00:22:25 2017 From: jcohen at AllenTek.com (Jessica Cohen) Date: Fri, 24 Feb 2017 00:22:25 +0000 Subject: [rancid] hp hlogin failing In-Reply-To: <20170224001657.GG61361@shrubbery.net> References: <6CBD3672C596DB49BCFF684935BD14B801092333@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> <20170224001657.GG61361@shrubbery.net> Message-ID: <6CBD3672C596DB49BCFF684935BD14B801092B72@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> I'm not really sure how to sort all this. Could someone help me with reading the debugs? At a glance, it looks like it should be working. rancid at net-mgmt2:~/bin$ /var/lib/rancid/bin/hlogin -d -c 'show vers' 192.168.0.7 192.168.0.7 spawn hpuifilter -- ssh -c 3des -x -l admin 192.168.0.7 parent: waiting for sync byte parent: telling child to go ahead parent: now unsynchronized from child spawn: returns {5181} Gate keeper glob pattern for '(Connection refused|Secure connection [^ ]+ refused|Connection closed by)' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?' is 'HOST IDENTIFICATION HAS CHANGED* (yes/no)\?'. Activating booster. Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED[^ ]+' is 'HOST IDENTIFICATION HAS CHANGED*'. Activating booster. Gate keeper glob pattern for 'Offending key for .* \(yes/no\)\?' is 'Offending key for * (yes/no)\?'. Activating booster. Gate keeper glob pattern for 'Enter passphrase.*: ' is 'Enter passphrase*: '. Activating booster. Gate keeper glob pattern for '(Username|login|user name):' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '([Pp]assword|passwd):' is ''. Not usable, disabling the performance booster. expect: does "" (spawn_id exp6) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "" (spawn_id exp6) match glob pattern "unknown host\r"? no expect: does "" (spawn_id exp6) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "(Username|login|user name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no ">"? no "denied"? no "% Bad passwords"? no We'd like to keep you up to date about: * Software feature updates * New product announcements * Special events Please register your products now at: www.ProCurve.com admin at 192.168.0.7's password: expect: does "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\nadmin at 192.168.0.7's password: " (spawn_id exp6) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\nadmin at 192.168.0.7's password: " (spawn_id exp6) match glob pattern "unknown host\r"? no expect: does "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\nadmin at 192.168.0.7's password: " (spawn_id exp6) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "(Username|login|user name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "password:" expect: set expect_out(1,string) "password" expect: set expect_out(spawn_id) "exp6" expect: set expect_out(buffer) "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\nadmin at 192.168.0.7's password:" send: sending "@llen1PS\r" to { exp6 } Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating booster. expect: does " " (spawn_id exp6) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no ">"? no expect: does " \r\r\n" (spawn_id exp6) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no ">"? no ProCurve J9279A Switch 2510G-24 Software revision Y.11.44 Copyright (C) 1991-2013 Hewlett-Packard Co. All Rights Reserved. RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and Computer Software clause at 52.227-7013. HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303 expect: does " \r\r\nProCurve J9279A Switch 2510G-24\r\r\n\rSoftware revision Y.11.44\r\r\n\r\r\r\n\rCopyright (C) 1991-2013 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r RESTRICTED RIGHTS LEGEND\r\n\r\r\n\r Use, duplication, or disclosure by the Government is subject to restrictions\r\n\r as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and\r\n\r Computer Software clause at 52.227-7013.\r\n\r\r\n\r HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303\r\n\r\r\n\r" (spawn_id exp6) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no ">"? no Press any key to continue expect: does " \r\r\nProCurve J9279A Switch 2510G-24\r\r\n\rSoftware revision Y.11.44\r\r\n\r\r\r\n\rCopyright (C) 1991-2013 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r RESTRICTED RIGHTS LEGEND\r\n\r\r\n\r Use, duplication, or disclosure by the Government is subject to restrictions\r\n\r as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and\r\n\r Computer Software clause at 52.227-7013.\r\n\r\r\n\r HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303\r\n\r\r\n\rPress any key to continue" (spawn_id exp6) match glob pattern "Press any key to continue"? yes expect: set expect_out(0,string) "Press any key to continue" expect: set expect_out(spawn_id) "exp6" expect: set expect_out(buffer) " \r\r\nProCurve J9279A Switch 2510G-24\r\r\n\rSoftware revision Y.11.44\r\r\n\r\r\r\n\rCopyright (C) 1991-2013 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r RESTRICTED RIGHTS LEGEND\r\n\r\r\n\r Use, duplication, or disclosure by the Government is subject to restrictions\r\n\r as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and\r\n\r Computer Software clause at 52.227-7013.\r\n\r\r\n\r HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303\r\n\r\r\n\rPress any key to continue" send: sending " " to { exp6 } expect: continuing expect expect: does "" (spawn_id exp6) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no ">"? no p2-test-rack# expect: does "p2-test-rack# " (spawn_id exp6) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no ">"? no -----Original Message----- From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of heasley Sent: Thursday, February 23, 2017 6:17 PM To: Alex DEKKER Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] hp hlogin failing Thu, Feb 23, 2017 at 09:37:12PM +0000, Alex DEKKER: > On 23/02/17 20:20, Jessica Cohen wrote: > > > > Hlogin is failing for some reason on my HP2410G. The logs show > > > > 192.168.0.7 clogin error: Error: TIMEOUT reached > > > > 192.168.0.7: missed cmd(s): write term,show system-information,show > > system information,show tech transceivers,show module,show > > version,show config status,show flash,show stack,show config files > > > > 192.168.0.7: End of run not found > > > > I run it from the CLI and it sort of works. I get to the command > > prompt in the switch but then can?t enter any commands. If I SSH > > directly to the switch from the server it works fine. > > > > When you SSH, do you have to press something to see the prompt? > > > Suggestions? Response from hlogin below. > > > > rancid at net-mgmt2:~/logs$ /usr/lib/rancid/bin/hlogin 192.168.0.7 > > > > 192.168.0.7 > > > > spawn hpuifilter -- ssh -c 3des -x -l admin 192.168.0.7 > > > > We'd like to keep you up to date about: > > > > * Software feature updates > > > > > > > > HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA > > 94303 > > > > Press any key to continuemgmt-OOB-sw1# why is it missing a \r\n? is that rancid eating that in hpuifilter or it he box doing that? hlogin sends a space. might have to look at debug info; hlogin -d -c 'show vers' hostname > > It looks like RANCID doesn't recognise the prompt, but it seems like > it has pressed something. > > A quick google suggests a change in 3.5 might be relevant: > > "hlogin: when refactoring prompt, eat full lines before looking for > the prompt" > > alexd > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss From heas at shrubbery.net Fri Feb 24 01:18:54 2017 From: heas at shrubbery.net (heasley) Date: Fri, 24 Feb 2017 01:18:54 +0000 Subject: [rancid] hp hlogin failing In-Reply-To: <6CBD3672C596DB49BCFF684935BD14B801092B72@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> References: <6CBD3672C596DB49BCFF684935BD14B801092333@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> <20170224001657.GG61361@shrubbery.net> <6CBD3672C596DB49BCFF684935BD14B801092B72@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> Message-ID: <20170224011854.GL61361@shrubbery.net> Fri, Feb 24, 2017 at 12:22:25AM +0000, Jessica Cohen: > expect: does " \r\r\nProCurve J9279A Switch 2510G-24\r\r\n\rSoftware revision Y.11.44\r\r\n\r\r\r\n\rCopyright (C) 1991-2013 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r RESTRICTED RIGHTS LEGEND\r\n\r\r\n\r Use, duplication, or disclosure by the Government is subject to restrictions\r\n\r as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and\r\n\r Computer Software clause at 52.227-7013.\r\n\r\r\n\r HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303\r\n\r\r\n\rPress any key to continue" (spawn_id exp6) match glob pattern "Press any key to continue"? yes > expect: set expect_out(0,string) "Press any key to continue" > expect: set expect_out(spawn_id) "exp6" > expect: set expect_out(buffer) " \r\r\nProCurve J9279A Switch 2510G-24\r\r\n\rSoftware revision Y.11.44\r\r\n\r\r\r\n\rCopyright (C) 1991-2013 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r RESTRICTED RIGHTS LEGEND\r\n\r\r\n\r Use, duplication, or disclosure by the Government is subject to restrictions\r\n\r as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and\r\n\r Computer Software clause at 52.227-7013.\r\n\r\r\n\r HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303\r\n\r\r\n\rPress > any key to continue" > send: sending " " to { exp6 } > expect: continuing expect > > expect: does "" (spawn_id exp6) match glob pattern "Press any key to continue"? no > "[Pp]assword:"? Gate "?assword:"? gate=no > ">"? no > p2-test-rack# > expect: does "p2-test-rack# " (spawn_id exp6) match glob pattern "Press any key to continue"? no > "[Pp]assword:"? Gate "?assword:"? gate=no > ">"? no did you truncate the output? or are you using a really old version of rancid? it looks like it just spits the prompt out after the space is sent. is that what happens when you do a manual login? From jcohen at AllenTek.com Fri Feb 24 07:57:38 2017 From: jcohen at AllenTek.com (Jessica Cohen) Date: Fri, 24 Feb 2017 07:57:38 +0000 Subject: [rancid] hp hlogin failing In-Reply-To: <20170224011854.GL61361@shrubbery.net> References: <6CBD3672C596DB49BCFF684935BD14B801092333@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> <20170224001657.GG61361@shrubbery.net> <6CBD3672C596DB49BCFF684935BD14B801092B72@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> <20170224011854.GL61361@shrubbery.net> Message-ID: <6CBD3672C596DB49BCFF684935BD14B8010930CD@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> I copied and pasted. Did not truncate. Using ## rancid 2.3.8 Fri, Feb 24, 2017 at 12:22:25AM +0000, Jessica Cohen: > expect: does " \r\r\nProCurve J9279A Switch 2510G-24\r\r\n\rSoftware revision Y.11.44\r\r\n\r\r\r\n\rCopyright (C) 1991-2013 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r RESTRICTED RIGHTS LEGEND\r\n\r\r\n\r Use, duplication, or disclosure by the Government is subject to restrictions\r\n\r as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and\r\n\r Computer Software clause at 52.227-7013.\r\n\r\r\n\r HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303\r\n\r\r\n\rPress any key to continue" (spawn_id exp6) match glob pattern "Press any key to continue"? yes > expect: set expect_out(0,string) "Press any key to continue" > expect: set expect_out(spawn_id) "exp6" > expect: set expect_out(buffer) " \r\r\nProCurve J9279A Switch 2510G-24\r\r\n\rSoftware revision Y.11.44\r\r\n\r\r\r\n\rCopyright (C) 1991-2013 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r RESTRICTED RIGHTS LEGEND\r\n\r\r\n\r Use, duplication, or disclosure by the Government is subject to restrictions\r\n\r as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and\r\n\r Computer Software clause at 52.227-7013.\r\n\r\r\n\r HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303\r\n\r\r\n\rPress > any key to continue" > send: sending " " to { exp6 } > expect: continuing expect > > expect: does "" (spawn_id exp6) match glob pattern "Press any key to > continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no ">"? no > p2-test-rack# > expect: does "p2-test-rack# " (spawn_id exp6) match glob pattern > "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? > gate=no ">"? no did you truncate the output? or are you using a really old version of rancid? it looks like it just spits the prompt out after the space is sent. is that what happens when you do a manual login? From stony at stony.com Fri Feb 24 08:59:12 2017 From: stony at stony.com (Viktor Steinmann) Date: Fri, 24 Feb 2017 09:59:12 +0100 Subject: [rancid] hp hlogin failing In-Reply-To: <6CBD3672C596DB49BCFF684935BD14B8010930CD@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> References: <6CBD3672C596DB49BCFF684935BD14B801092333@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> <20170224001657.GG61361@shrubbery.net> <6CBD3672C596DB49BCFF684935BD14B801092B72@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> <20170224011854.GL61361@shrubbery.net> <6CBD3672C596DB49BCFF684935BD14B8010930CD@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> Message-ID: I recently stumbled across a similar issue with my Brocade/Foundry devices. Solution was to change autoenable. Try to change set avautoenable 0 to set avautoenable 1 in the hlogin file. Kind regards, Viktor On 24.02.2017 08:57, Jessica Cohen wrote: > I copied and pasted. Did not truncate. Using ## rancid 2.3.8 > > Fri, Feb 24, 2017 at 12:22:25AM +0000, Jessica Cohen: >> expect: does " \r\r\nProCurve J9279A Switch 2510G-24\r\r\n\rSoftware revision Y.11.44\r\r\n\r\r\r\n\rCopyright (C) 1991-2013 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r RESTRICTED RIGHTS LEGEND\r\n\r\r\n\r Use, duplication, or disclosure by the Government is subject to restrictions\r\n\r as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and\r\n\r Computer Software clause at 52.227-7013.\r\n\r\r\n\r HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303\r\n\r\r\n\rPress any key to continue" (spawn_id exp6) match glob pattern "Press any key to continue"? yes >> expect: set expect_out(0,string) "Press any key to continue" >> expect: set expect_out(spawn_id) "exp6" >> expect: set expect_out(buffer) " \r\r\nProCurve J9279A Switch 2510G-24\r\r\n\rSoftware revision Y.11.44\r\r\n\r\r\r\n\rCopyright (C) 1991-2013 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r RESTRICTED RIGHTS LEGEND\r\n\r\r\n\r Use, duplication, or disclosure by the Government is subject to restrictions\r\n\r as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and\r\n\r Computer Software clause at 52.227-7013.\r\n\r\r\n\r HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303\r\n\r\r\n\rPress >> any key to continue" >> send: sending " " to { exp6 } >> expect: continuing expect >> >> expect: does "" (spawn_id exp6) match glob pattern "Press any key to >> continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no ">"? no >> p2-test-rack# >> expect: does "p2-test-rack# " (spawn_id exp6) match glob pattern >> "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? >> gate=no ">"? no > did you truncate the output? or are you using a really old version of rancid? > > it looks like it just spits the prompt out after the space is sent. is that what happens when you do a manual login? > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From heas at shrubbery.net Fri Feb 24 15:51:34 2017 From: heas at shrubbery.net (heasley) Date: Fri, 24 Feb 2017 15:51:34 +0000 Subject: [rancid] hp hlogin failing In-Reply-To: References: <6CBD3672C596DB49BCFF684935BD14B801092333@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> <20170224001657.GG61361@shrubbery.net> <6CBD3672C596DB49BCFF684935BD14B801092B72@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> <20170224011854.GL61361@shrubbery.net> <6CBD3672C596DB49BCFF684935BD14B8010930CD@MBX029-E1-VA-6.EXCH029.DOMAIN.LOCAL> Message-ID: <20170224155134.GB93870@shrubbery.net> Fri, Feb 24, 2017 at 09:59:12AM +0100, Viktor Steinmann: > I recently stumbled across a similar issue with my Brocade/Foundry > devices. Solution was to change autoenable. Try to change > > set avautoenable 0 > > to > > set avautoenable 1 > > in the hlogin file. > > Kind regards, > Viktor > > On 24.02.2017 08:57, Jessica Cohen wrote: > > I copied and pasted. Did not truncate. Using ## rancid 2.3.8 yeah, please also upgrade rancid. i'm not supporting 2.3.8 any longer. > > Fri, Feb 24, 2017 at 12:22:25AM +0000, Jessica Cohen: > >> expect: does " \r\r\nProCurve J9279A Switch 2510G-24\r\r\n\rSoftware revision Y.11.44\r\r\n\r\r\r\n\rCopyright (C) 1991-2013 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r RESTRICTED RIGHTS LEGEND\r\n\r\r\n\r Use, duplication, or disclosure by the Government is subject to restrictions\r\n\r as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and\r\n\r Computer Software clause at 52.227-7013.\r\n\r\r\n\r HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303\r\n\r\r\n\rPress any key to continue" (spawn_id exp6) match glob pattern "Press any key to continue"? yes > >> expect: set expect_out(0,string) "Press any key to continue" > >> expect: set expect_out(spawn_id) "exp6" > >> expect: set expect_out(buffer) " \r\r\nProCurve J9279A Switch 2510G-24\r\r\n\rSoftware revision Y.11.44\r\r\n\r\r\r\n\rCopyright (C) 1991-2013 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r RESTRICTED RIGHTS LEGEND\r\n\r\r\n\r Use, duplication, or disclosure by the Government is subject to restrictions\r\n\r as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and\r\n\r Computer Software clause at 52.227-7013.\r\n\r\r\n\r HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303\r\n\r\r\n\rPress > >> any key to continue" > >> send: sending " " to { exp6 } > >> expect: continuing expect > >> > >> expect: does "" (spawn_id exp6) match glob pattern "Press any key to > >> continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no ">"? no > >> p2-test-rack# > >> expect: does "p2-test-rack# " (spawn_id exp6) match glob pattern > >> "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? > >> gate=no ">"? no > > did you truncate the output? or are you using a really old version of rancid? > > > > it looks like it just spits the prompt out after the space is sent. is that what happens when you do a manual login? > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From tom.vak at gmail.com Mon Feb 27 09:13:18 2017 From: tom.vak at gmail.com (Tom Vaknin) Date: Mon, 27 Feb 2017 01:13:18 -0800 (PST) Subject: [rancid] Rancid with A10 Message-ID: <48ccec05-ce31-4488-a4b8-5b8bde8d16fb@googlegroups.com> hi all, im trying to login to A10 load balancer and get config from more then 1 partition. the command is: show running-config all-partitions im using f10rancid script and i can see on tacacs the following: terminal length 0 show version show running-config all-partitions the problem that i cant see the output correctly and its just showing show run output. while testing with - clogin -t 90 -c"sh run all-partitions" device-name i get the output needed, it think that the problem is with the logout: device-name-Standby-vMaster[1/1]#exit device-name-Standby-vMaster[1/1]>exit Are you sure you want to quit (N/Y)?: anyone know something? thanks a lot. Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From rancid at ale.cx Mon Feb 27 18:06:27 2017 From: rancid at ale.cx (Alex DEKKER) Date: Mon, 27 Feb 2017 18:06:27 +0000 Subject: [rancid] Rancid with A10 In-Reply-To: <48ccec05-ce31-4488-a4b8-5b8bde8d16fb@googlegroups.com> References: <48ccec05-ce31-4488-a4b8-5b8bde8d16fb@googlegroups.com> Message-ID: <4bcd121f-b938-b0bf-e92d-d12398683b6b@ale.cx> On 27/02/17 09:13, Tom Vaknin wrote: > hi all, > > im trying to login to A10 load balancer and get config from more then > 1 partition. > ... > while testing with - clogin -t 90 -c"sh run all-partitions" device-name Is clogin the right command for this device type? alexd -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.schmidt at wyo.gov Tue Feb 28 19:01:08 2017 From: daniel.schmidt at wyo.gov (Daniel Schmidt) Date: Tue, 28 Feb 2017 12:01:08 -0700 Subject: [rancid] SVN -> CVS Message-ID: Well, this is going to make me sound bass ackward, but... Has anybody ever tried migrating, without starting over, to CVS from SVN? I know CVS is old, but I liked CVS. The attic can be handy. -- E-Mail to and from me, in connection with the transaction of public business, is subject to the Wyoming Public Records Act and may be disclosed to third parties. -------------- next part -------------- An HTML attachment was scrubbed... URL: