Discussion:
[rancid] dlogin / 6248 System Up Time..
B. Cook
2013-07-31 13:02:49 UTC
Permalink
Hello all,

Recently updated a set of 6248's from 3.3.6.4 to 3.3.7.2.

Since then I've been getting (hourly b/c of the people in the
organization..) updates with the 'System Up Time' being changed..

retrieving revision 1.189
diff -U 4 -r1.189 10.20.0.254
@@ -1,9 +1,9 @@
!RANCID-CONTENT-TYPE: Dell
!
!
System Description................ Dell Ethernet Switch
- System Up Time.................... 7 days, 12h:18m:46s
+ System Up Time.................... 7 days, 13h:18m:46s

Index: configs/10.20.0.254
===================================================================
retrieving revision 1.190
diff -U 4 -r1.190 10.20.0.254
@@ -1,9 +1,9 @@
!RANCID-CONTENT-TYPE: Dell
!
!
System Description................ Dell Ethernet Switch
- System Up Time.................... 7 days, 13h:18m:46s
+ System Up Time.................... 7 days, 14h:18m:46s


I'm running rancid 2.3.8 on a CentOS 6.x machine (fwiw).. and the dlogin
from Jeremy Singletary.

Any suggestions on how I could 'filter' out that change?

Thank you for taking the time to read this and for any help you may have to
offer.
Alan McKinnon
2013-07-31 16:57:22 UTC
Permalink
Post by B. Cook
Hello all,
Recently updated a set of 6248's from 3.3.6.4 to 3.3.7.2.
Since then I've been getting (hourly b/c of the people in the
organization..) updates with the 'System Up Time' being changed..
retrieving revision 1.189
diff -U 4 -r1.189 10.20.0.254
@@ -1,9 +1,9 @@
!RANCID-CONTENT-TYPE: Dell
!
!
System Description................ Dell Ethernet Switch
- System Up Time.................... 7 days, 12h:18m:46s
+ System Up Time.................... 7 days, 13h:18m:46s
Index: configs/10.20.0.254 <http://10.20.0.254/>
===================================================================
retrieving revision 1.190
diff -U 4 -r1.190 10.20.0.254
@@ -1,9 +1,9 @@
!RANCID-CONTENT-TYPE: Dell
!
!
System Description................ Dell Ethernet Switch
- System Up Time.................... 7 days, 13h:18m:46s
+ System Up Time.................... 7 days, 14h:18m:46s
I'm running rancid 2.3.8 on a CentOS 6.x machine (fwiw).. and the dlogin
from Jeremy Singletary.
Any suggestions on how I could 'filter' out that change?
Thank you for taking the time to read this and for any help you may have
to offer.
I don't know drancid at all, I have no need of it. So flying somewhat
blind, with only common sense as a guide:

Assuming drancid somewhat follows the pattern of all the other parser
scripts, it should have a loop that processes each line of output for a
command in sequence then does $RELEVANT_STUFF to that line.

You need to find that loop and add a check to ignore (i.e. discard) line
containing the phrase "System Up Time". Something like this:

next if (/^System Up Time.*$/);

There's lots of examples in existing code and the regex may need
tweaking depending on what Dell's output. Especially check for the
phrase System Up Time being used elsewhere in lines that you DO want to
keep.

Onto why this happens:

Is this a new feature of Dell kit to display the up time? Did they
change the exact format used?
--
--
Alan McKinnon
***@gmail.com
Jeff
2013-08-22 20:25:00 UTC
Permalink
I am having the same issue and was wondering if you ever found the
resolution to this issue. Thanks

Jeff
Matej Vadnjal
2013-08-23 05:32:22 UTC
Permalink
Post by B. Cook
Hello all,
Recently updated a set of 6248's from 3.3.6.4 to 3.3.7.2.
Since then I've been getting (hourly b/c of the people in the
organization..) updates with the 'System Up Time' being changed..
retrieving revision 1.189
diff -U 4 -r1.189 10.20.0.254
@@ -1,9 +1,9 @@
!RANCID-CONTENT-TYPE: Dell
!
!
System Description................ Dell Ethernet Switch
- System Up Time.................... 7 days, 12h:18m:46s
+ System Up Time.................... 7 days, 13h:18m:46s
Index: configs/10.20.0.254 <http://10.20.0.254/>
===================================================================
retrieving revision 1.190
diff -U 4 -r1.190 10.20.0.254
@@ -1,9 +1,9 @@
!RANCID-CONTENT-TYPE: Dell
!
!
System Description................ Dell Ethernet Switch
- System Up Time.................... 7 days, 13h:18m:46s
+ System Up Time.................... 7 days, 14h:18m:46s
I'm running rancid 2.3.8 on a CentOS 6.x machine (fwiw).. and the
dlogin from Jeremy Singletary.
Any suggestions on how I could 'filter' out that change?
Thank you for taking the time to read this and for any help you may
have to offer.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Take a look here:
https://github.com/dotwaffle/rancid-git/blob/master/bin/drancid.in#L168

Dell scripts in this repository are updated versions of Jeremy's
scripts. There are other changes I made to to better support newer Dell
PowerConnect switches.

Best regards
Matej Vadnjal
Arnes
B. Cook
2013-08-23 12:30:42 UTC
Permalink
Thank you Sir.

I will gladly check that out.
Post by B. Cook
Hello all,
Recently updated a set of 6248's from 3.3.6.4 to 3.3.7.2.
Since then I've been getting (hourly b/c of the people in the
organization..) updates with the 'System Up Time' being changed..
retrieving revision 1.189
diff -U 4 -r1.189 10.20.0.254
@@ -1,9 +1,9 @@
!RANCID-CONTENT-TYPE: Dell
!
!
System Description................ Dell Ethernet Switch
- System Up Time.................... 7 days, 12h:18m:46s
+ System Up Time.................... 7 days, 13h:18m:46s
Index: configs/10.20.0.254 <http://10.20.0.254/>
==============================**==============================**=======
retrieving revision 1.190
diff -U 4 -r1.190 10.20.0.254
@@ -1,9 +1,9 @@
!RANCID-CONTENT-TYPE: Dell
!
!
System Description................ Dell Ethernet Switch
- System Up Time.................... 7 days, 13h:18m:46s
+ System Up Time.................... 7 days, 14h:18m:46s
I'm running rancid 2.3.8 on a CentOS 6.x machine (fwiw).. and the dlogin
from Jeremy Singletary.
Any suggestions on how I could 'filter' out that change?
Thank you for taking the time to read this and for any help you may have
to offer.
______________________________**_________________
Rancid-discuss mailing list
http://www.shrubbery.net/**mailman/listinfo.cgi/rancid-**discuss<http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss>
https://github.com/dotwaffle/**rancid-git/blob/master/bin/**
drancid.in#L168<https://github.com/dotwaffle/rancid-git/blob/master/bin/drancid.in#L168>
Dell scripts in this repository are updated versions of Jeremy's scripts.
There are other changes I made to to better support newer Dell PowerConnect
switches.
Best regards
Matej Vadnjal
Arnes
______________________________**_________________
Rancid-discuss mailing list
http://www.shrubbery.net/**mailman/listinfo/rancid-**discuss<http://www.shrubbery.net/mailman/listinfo/rancid-discuss>
--
Tomorrow (noun); a mystical land where 99% of all human productivity,
motivation and achievement is stored.
Loading...