Re: [rancid] mtrancid +- connection closed? Conf Diff

2019-01-17 Thread heasley
Wed, Jan 16, 2019 at 01:04:35PM -0800, Jason Wu:
> Thank you for your response
> 
> Yup, these routers are running on version 6.38.7 along side with routers
> that do not have this issue.
> There does not seem to be any regularity/pattern to this. As the dates are
> rather staggered apart. Some days it'll be continuous for a week other
> times it'll be a week before re-appearing.
> 
> I am unable to reproduce it running mtrancid at the shell.(No email for a
> configuration diff). Going through the different SVN diffs gives me
> 
> -Connection to  closed
> 
> +Connection to  closed
> 
> thanks for your time

Could you show me more context around this line from the file in the
configs/ directory?

How kinky are you willing to be to collect debug info?  If NOPIPE=YES is
set in rancid.conf and -d is added to the script line in rancid.types.base,
then .raw files will be left behind and the rancid-run cron can be altered
to collect those files, like so:

 ; ; D=`date +\%Y-\%m-\%d:\%H`; mkdir -p tmp/$D && cp 
-p /configs/*.raw tmp/$D

and when you next discover the change, we look at the input in detail.

> On Wed, Jan 16, 2019 at 9:51 AM heasley  wrote:
> 
> > Tue, Jan 15, 2019 at 03:06:31PM -0800, Jason Wu:
> > > Hello friends,
> > >
> > > Just have a question regarding mtrancid
> > > For some reason I have been getting router config diffs emails which
> > > contain only +- connection close, which doesn't reflect a config change
> > and
> > > is strange.
> > >
> > > This only occurs on 1-2 devices
> > >
> > > Rancid 3.6.1
> > > =
> > > Sample
> > >
> > > Revision 100
> > > - Connection to  closed.
> > >
> > > =
> > >
> > > Revision 98
> > >
> > > + Connection to  closed.
> > >
> > >
> > > =
> > >
> > > Mtrancid consists of
> > > systempackageprintdetail
> > > systemrouterboardprint
> > > export
> > >
> > > It seems that mtrancid is picking up the SSH session close
> > > Logs do not show any errors which means its reaching the end of run and
> > has
> > > a clean exit right?
> >
> > yes.
> >
> > are these running the same versoin as the routers that are not exibiting
> > the error?  does it occur with any regularity?  can you reproduce it
> > running mtrancid at the shell?
> >
> > > I am able to run all these commands with no problem and rancid-run gives
> > me
> > > no errors/hiccups.
> > > Execution is smooth and does not have any delays (<1minute)
> > >
> > > If there was a problem, the end-of-run detection would pick it up?
> > >
> > > Just going through the script and I can’t seem to identify where/why this
> > > would get picked up.
> > > I was wondering if anyone else has experienced this before. I could
> > always
> > > filter out the "connection closed" but I am curious why this is
> > happening.
> >
> >
> >

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


Re: [rancid] Alcatel script, not parsing the commands and/or output well (/partially)

2019-01-17 Thread Remko Lodder
Hi,

>> 
>> Do note that it seems that the SROS is on a very different architecture 
>> based then what my Omniswitches use. So it seems incompatible to start with, 
>> where the alu* scripts might not entirely work with every command on the 
>> OS6000 that I have, but most of them are accepted in older (legacy) 
>> components but also on the newer
>> versions.
> 
> testing & dev was done with 7750.  I will enquire with my nokia contact
> about the omniswitch.
> 
>> Thanks
>> Remko
>> 

Sure, please let me know whether I can help / assist. The alu* scripts that I 
mentioned work in most cases for the equipment we use, so that
could be a big pointer..

Cheers
Remko



signature.asc
Description: Message signed with OpenPGP
___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] Alcatel script, not parsing the commands and/or output well (/partially)

2019-01-17 Thread heasley
Thu, Jan 17, 2019 at 08:07:02AM +0100, Remko Lodder:
> Hi,
> 
> I also have “3.99.99” on the system to compare the output. The regular 
> version on the system is 3.6 it seems.
> But, the noklogin works after modifying the u_prompt and p_prompt. When 
> running rancid -d -t sros 
> it wants to execute commands that are not available at all on the Alcatel.
> 
> The ones that I use from Burgalio’s :
> 
> {'show chassis' => 'ShowChassis'},
> {'show system'  => 'ShowSystem'},
> {'show module'  => 'ShowModule'},
> {'show stack topology'  => 'ShowStackTopolgy'},
> {'show lanpower 1'  => 'ShowLanPower'},
> {'show lanpower 2'  => 'ShowLanPower'},
> {'show user'=> 'ShowUser'},
> {'ls'   => 'GenericParse'},
> {'ls certified/'=> 'GenericParse'},
> {'ls working/'  => 'GenericParse'},
> {'ls switch/'   => 'GenericParse'},
> {'ls network/'  => 'GenericParse'},
> {'show vlan'=> 'ShowVLAN'},
> {'show interfaces status'   => 'ShowInterfaces'},
> {'show running' => 'ShowConf'},
> {'show configuration snapshot'  => 'ShowConf’},
> 
> which does not match:
> 
> xecuting noklogin -t 90 -c"show system information;file type bootlog.txt;show 
> redundancy synchronization;show chassis;show chassis environment;show chassis 
> power-supply;show chassis power-management;show card state;show card 
> detail;show debug;show bof;admin display-config index;admin display-config” 
> 
> 
> Do note that it seems that the SROS is on a very different architecture based 
> then what my Omniswitches use. So it seems incompatible to start with, where 
> the alu* scripts might not entirely work with every command on the OS6000 
> that I have, but most of them are accepted in older (legacy) components but 
> also on the newer
> versions.

testing & dev was done with 7750.  I will enquire with my nokia contact
about the omniswitch.

> Thanks
> Remko
> 
> > On 16 Jan 2019, at 18:39, heasley  wrote:
> > 
> > Wed, Jan 16, 2019 at 12:02:14PM +0100, Remko Lodder:
> >> Hi all,
> >> 
> >> First of all, thank you for Rancid, it’s a great tool to monitor 
> >> configuration changes and pushing back changes.
> >> 
> >> Having Said that;
> >> 
> >> I fetched some alcatel switches which I modified a little to work on 
> >> various types . These changes are trivial
> >> changes from upstream so no real changes there actually.
> >> 
> >> It seems that most switches work just fine, but that one particular switch 
> >> is not able to keep up  with the
> >> requests. It seems that this specific switch misses commands (like ls and 
> >> show interface status).
> >> If I look back in the raw output it appears to miss characters:
> >> 
> >> # how interfaces status
> >>  ^
> >> ERROR: Invalid entry: “how”
> >> 
> >> The same goes for ls, where ’s' is the command being send. Or for exit at 
> >> the end which is send as “xit”.
> >> 
> >> The scripts are from: https://github.com/buraglio/alurancid (Thanks 
> >> buraglio) and apart from one switch work
> >> fine it seems.
> >> 
> >> Switching from SSH to Telnet does not make a difference.
> >> Does someone have an suggestion on where to look?
> > 
> > can you try the sros support that is in rancid 3.8 or the current alpha?
> 


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


Re: [rancid] mtrancid +- connection closed? Conf Diff

2019-01-17 Thread Jason Wu
Thank you for your response

Yup, these routers are running on version 6.38.7 along side with routers
that do not have this issue.
There does not seem to be any regularity/pattern to this. As the dates are
rather staggered apart. Some days it'll be continuous for a week other
times it'll be a week before re-appearing.

I am unable to reproduce it running mtrancid at the shell.(No email for a
configuration diff). Going through the different SVN diffs gives me

-Connection to  closed

+Connection to  closed

thanks for your time

On Wed, Jan 16, 2019 at 9:51 AM heasley  wrote:

> Tue, Jan 15, 2019 at 03:06:31PM -0800, Jason Wu:
> > Hello friends,
> >
> > Just have a question regarding mtrancid
> > For some reason I have been getting router config diffs emails which
> > contain only +- connection close, which doesn't reflect a config change
> and
> > is strange.
> >
> > This only occurs on 1-2 devices
> >
> > Rancid 3.6.1
> > =
> > Sample
> >
> > Revision 100
> > - Connection to  closed.
> >
> > =
> >
> > Revision 98
> >
> > + Connection to  closed.
> >
> >
> > =
> >
> > Mtrancid consists of
> > systempackageprintdetail
> > systemrouterboardprint
> > export
> >
> > It seems that mtrancid is picking up the SSH session close
> > Logs do not show any errors which means its reaching the end of run and
> has
> > a clean exit right?
>
> yes.
>
> are these running the same versoin as the routers that are not exibiting
> the error?  does it occur with any regularity?  can you reproduce it
> running mtrancid at the shell?
>
> > I am able to run all these commands with no problem and rancid-run gives
> me
> > no errors/hiccups.
> > Execution is smooth and does not have any delays (<1minute)
> >
> > If there was a problem, the end-of-run detection would pick it up?
> >
> > Just going through the script and I can’t seem to identify where/why this
> > would get picked up.
> > I was wondering if anyone else has experienced this before. I could
> always
> > filter out the "connection closed" but I am curious why this is
> happening.
>
>
>
___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss