Discussion:
[rancid] Cisco MDS/NX-OS timestamp in show command
big beer
2011-03-15 19:43:07 UTC
Permalink
Hi List,

I'm running rancid 2.3.6 against a pair of cisco mds fiber switches.
everything works as expected except one little problem. My switches
are printing out a nice little banner with the timestamp whenever show
run is ran.

Obviously this is a problem, and my diffs end up looking like the following.
!
!DEBUG: % Permission denied
!Command: show running-config
- !Time: Tue Mar 15 18:01:13 2011
+ !Time: Tue Mar 15 19:01:13 2011

version 5.0(1a)
no feature http-server


I found the thread in the list archives about suppressing the time
stamp out by editing the DoNothing() command to run no exec prompt
timestamp, but I think that is for a different type of timestamp, as I
made the change but I still get the timestamp. I can't even run no
exec prompt timestamp on the switch either.

Anyone have any experience and/or idea on where I should be focusing
to remove these timestamps?

Thanks!

--
BigBeer
Corey Quinn
2011-03-15 21:53:30 UTC
Permalink
Toss this into the appropriate place:

/!Time:/ && next;

- -- Corey / KB1JWQ
Post by big beer
Hi List,
I'm running rancid 2.3.6 against a pair of cisco mds fiber switches.
everything works as expected except one little problem. My switches
are printing out a nice little banner with the timestamp whenever show
run is ran.
Obviously this is a problem, and my diffs end up looking like the following.
!
!DEBUG: % Permission denied
!Command: show running-config
- !Time: Tue Mar 15 18:01:13 2011
+ !Time: Tue Mar 15 19:01:13 2011
version 5.0(1a)
no feature http-server
I found the thread in the list archives about suppressing the time
stamp out by editing the DoNothing() command to run no exec prompt
timestamp, but I think that is for a different type of timestamp, as I
made the change but I still get the timestamp. I can't even run no
exec prompt timestamp on the switch either.
Anyone have any experience and/or idea on where I should be focusing
to remove these timestamps?
Thanks!
--
BigBeer
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Corey Quinn
2011-03-16 19:19:45 UTC
Permalink
Get the trailing space out of there and retest please...
I threw the following patterns and it doesn't appear to be able to catch it in the nxrancid 2.3.6 tar release
/^.Time: / && next; # kill this junk
/^!Time: / && next;
/^#Time: / && next;
/!Time: / && next;
!Command: show running-config
- !Time: Wed Mar 16 11:37:57 2011
+ !Time: Wed Mar 16 11:53:28 2011
Sent: Tuesday, March 15, 2011 5:53:30 PM
Subject: Re: [rancid] Cisco MDS/NX-OS timestamp in show command
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
/!Time:/ && next;
- -- Corey / KB1JWQ
Post by big beer
Hi List,
I'm running rancid 2.3.6 against a pair of cisco mds fiber switches.
everything works as expected except one little problem. My switches
are printing out a nice little banner with the timestamp whenever show
run is ran.
Obviously this is a problem, and my diffs end up looking like the following.
!
!DEBUG: % Permission denied
!Command: show running-config
- !Time: Tue Mar 15 18:01:13 2011
+ !Time: Tue Mar 15 19:01:13 2011
version 5.0(1a)
no feature http-server
I found the thread in the list archives about suppressing the time
stamp out by editing the DoNothing() command to run no exec prompt
timestamp, but I think that is for a different type of timestamp, as I
made the change but I still get the timestamp. I can't even run no
exec prompt timestamp on the switch either.
Anyone have any experience and/or idea on where I should be focusing
to remove these timestamps?
Thanks!
--
BigBeer
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
iQEcBAEBAgAGBQJNf9/aAAoJEPmSS8816iBeG8AH/1COVliS6zr8yBDgMF+IowNG
/vDQonWt9tjnjDlCq1TBe13fSwGJISjbQkhPLiCBwAf/+b3xqLh9nykklMwVkuCC
zZYdBvGekcjQYI8vGDo9fAsMhqPD8n5lNrbTlJ42yCbvz6q5chu8XTMxFVLzoRtk
E+tI7ZjkyNOkU8VUMHLFeuEFZ7R821XrS/FxDFxrQxCXwnz6eqLMqrZ9TzWsYus2
9Oyog9WezIl7vb1tidQXmNGxnAcUJyFnVUwi4DmqcNmJhgNEJFuiHZlCyMrtsPHX
Nq2RNd9uDo+Pr9Jr5Naa+dZMcFnV6IaM/dqDWfSNktLekTUQ+ahzzqce1eiz6vk=
=XqjC
-----END PGP SIGNATURE-----
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
big beer
2011-03-16 19:34:21 UTC
Permalink
Dang, I didn't make sure to reply back to the list...

The end fix for me was what Corey is suggesting.

+ /^!Time:/ && next;

Thanks all!
Post by Corey Quinn
Get the trailing space out of there and retest please...
I threw the following patterns and it doesn't appear to be able to catch it
in the nxrancid 2.3.6 tar release
        /^.Time: /              && next; # kill this junk
        /^!Time: /              && next;
        /^#Time: /              && next;
        /!Time: /               && next;
  !Command: show running-config
- !Time: Wed Mar 16 11:37:57 2011
+ !Time: Wed Mar 16 11:53:28 2011
________________________________
Sent: Tuesday, March 15, 2011 5:53:30 PM
Subject: Re: [rancid] Cisco MDS/NX-OS timestamp in show command
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
/!Time:/ && next;
- -- Corey / KB1JWQ
Post by big beer
Hi List,
I'm running rancid 2.3.6 against a pair of cisco mds fiber switches.
everything works as expected except one little problem. My switches
are printing out a nice little banner with the timestamp whenever show
run is ran.
Obviously this is a problem, and my diffs end up looking like the following.
!
!DEBUG: % Permission denied
!Command: show running-config
- !Time: Tue Mar 15 18:01:13 2011
+ !Time: Tue Mar 15 19:01:13 2011
version 5.0(1a)
no feature http-server
I found the thread in the list archives about suppressing the time
stamp out by editing the DoNothing() command to run no exec prompt
timestamp, but I think that is for a different type of timestamp, as I
made the change but I still get the timestamp. I can't even run no
exec prompt timestamp on the switch either.
Anyone have any experience and/or idea on where I should be focusing
to remove these timestamps?
Thanks!
--
BigBeer
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
iQEcBAEBAgAGBQJNf9/aAAoJEPmSS8816iBeG8AH/1COVliS6zr8yBDgMF+IowNG
/vDQonWt9tjnjDlCq1TBe13fSwGJISjbQkhPLiCBwAf/+b3xqLh9nykklMwVkuCC
zZYdBvGekcjQYI8vGDo9fAsMhqPD8n5lNrbTlJ42yCbvz6q5chu8XTMxFVLzoRtk
E+tI7ZjkyNOkU8VUMHLFeuEFZ7R821XrS/FxDFxrQxCXwnz6eqLMqrZ9TzWsYus2
9Oyog9WezIl7vb1tidQXmNGxnAcUJyFnVUwi4DmqcNmJhgNEJFuiHZlCyMrtsPHX
Nq2RNd9uDo+Pr9Jr5Naa+dZMcFnV6IaM/dqDWfSNktLekTUQ+ahzzqce1eiz6vk=
=XqjC
-----END PGP SIGNATURE-----
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Daniel Chen
2011-03-16 19:01:33 UTC
Permalink
I threw the following patterns and it doesn't appear to be able to catch it in the nxrancid 2.3.6 tar release
/^.Time: / && next; # kill this junk
/^!Time: / && next;
/^#Time: / && next;
/!Time: / && next;

So every run generates email and cvs check-in:
!Command: show running-config
- !Time: Wed Mar 16 11:37:57 2011
+ !Time: Wed Mar 16 11:53:28 2011




----- Original Message -----
From: "Corey Quinn" <***@sequestered.net>
To: "big beer" <***@gmail.com>
Cc: rancid-***@shrubbery.net
Sent: Tuesday, March 15, 2011 5:53:30 PM
Subject: Re: [rancid] Cisco MDS/NX-OS timestamp in show command

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Toss this into the appropriate place:

/!Time:/ && next;

- -- Corey / KB1JWQ
Post by big beer
Hi List,
I'm running rancid 2.3.6 against a pair of cisco mds fiber switches.
everything works as expected except one little problem. My switches
are printing out a nice little banner with the timestamp whenever show
run is ran.
Obviously this is a problem, and my diffs end up looking like the following.
!
!DEBUG: % Permission denied
!Command: show running-config
- !Time: Tue Mar 15 18:01:13 2011
+ !Time: Tue Mar 15 19:01:13 2011
version 5.0(1a)
no feature http-server
I found the thread in the list archives about suppressing the time
stamp out by editing the DoNothing() command to run no exec prompt
timestamp, but I think that is for a different type of timestamp, as I
made the change but I still get the timestamp. I can't even run no
exec prompt timestamp on the switch either.
Anyone have any experience and/or idea on where I should be focusing
to remove these timestamps?
Thanks!
--
BigBeer
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)

iQEcBAEBAgAGBQJNf9/aAAoJEPmSS8816iBeG8AH/1COVliS6zr8yBDgMF+IowNG
/vDQonWt9tjnjDlCq1TBe13fSwGJISjbQkhPLiCBwAf/+b3xqLh9nykklMwVkuCC
zZYdBvGekcjQYI8vGDo9fAsMhqPD8n5lNrbTlJ42yCbvz6q5chu8XTMxFVLzoRtk
E+tI7ZjkyNOkU8VUMHLFeuEFZ7R821XrS/FxDFxrQxCXwnz6eqLMqrZ9TzWsYus2
9Oyog9WezIl7vb1tidQXmNGxnAcUJyFnVUwi4DmqcNmJhgNEJFuiHZlCyMrtsPHX
Nq2RNd9uDo+Pr9Jr5Naa+dZMcFnV6IaM/dqDWfSNktLekTUQ+ahzzqce1eiz6vk=
=XqjC
-----END PGP SIGNATURE-----
_______________________________________________
Rancid-discuss mailing list
Rancid-***@shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Daniel Chen
2011-03-16 19:33:11 UTC
Permalink
I removed the trailing space after the colon before the slash. I am still getting the Time line.

- !Time: Wed Mar 16 11:53:28 2011
+ !Time: Wed Mar 16 12:19:52 2011

/^.Time:/ && next; # kill this junk
/^!Time:/ && next;
/^#Time:/ && next;
/!Time:/ && next;

I don't know why this section of code doesn't seem to be hit in the WriteTerm routine within nxrancid.

Thanks,
Daniel

----- Original Message -----
From: "Corey Quinn" <***@sequestered.net>
To: "Daniel Chen" <***@mozy.com>
Cc: rancid-***@shrubbery.net, "big beer" <***@gmail.com>
Sent: Wednesday, March 16, 2011 3:19:45 PM
Subject: Re: [rancid] Cisco MDS/NX-OS timestamp in show command


Get the trailing space out of there and retest please...

On Mar 16, 2011, at 12:01 PM, Daniel Chen < ***@mozy.com > wrote:






I threw the following patterns and it doesn't appear to be able to catch it in the nxrancid 2.3.6 tar release
/^.Time: / && next; # kill this junk
/^!Time: / && next;
/^#Time: / && next;
/!Time: / && next;

So every run generates email and cvs check-in:
!Command: show running-config
- !Time: Wed Mar 16 11:37:57 2011
+ !Time: Wed Mar 16 11:53:28 2011




----- Original Message -----
From: "Corey Quinn" < ***@sequestered.net >
To: "big beer" < ***@gmail.com >
Cc: rancid-***@shrubbery.net
Sent: Tuesday, March 15, 2011 5:53:30 PM
Subject: Re: [rancid] Cisco MDS/NX-OS timestamp in show command

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Toss this into the appropriate place:

/!Time:/ && next;

- -- Corey / KB1JWQ
Post by big beer
Hi List,
I'm running rancid 2.3.6 against a pair of cisco mds fiber switches.
everything works as expected except one little problem. My switches
are printing out a nice little banner with the timestamp whenever show
run is ran.
Obviously this is a problem, and my diffs end up looking like the following.
!
!DEBUG: % Permission denied
!Command: show running-config
- !Time: Tue Mar 15 18:01:13 2011
+ !Time: Tue Mar 15 19:01:13 2011
version 5.0(1a)
no feature http-server
I found the thread in the list archives about suppressing the time
stamp out by editing the DoNothing() command to run no exec prompt
timestamp, but I think that is for a different type of timestamp, as I
made the change but I still get the timestamp. I can't even run no
exec prompt timestamp on the switch either.
Anyone have any experience and/or idea on where I should be focusing
to remove these timestamps?
Thanks!
--
BigBeer
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)

iQEcBAEBAgAGBQJNf9/aAAoJEPmSS8816iBeG8AH/1COVliS6zr8yBDgMF+IowNG
/vDQonWt9tjnjDlCq1TBe13fSwGJISjbQkhPLiCBwAf/+b3xqLh9nykklMwVkuCC
zZYdBvGekcjQYI8vGDo9fAsMhqPD8n5lNrbTlJ42yCbvz6q5chu8XTMxFVLzoRtk
E+tI7ZjkyNOkU8VUMHLFeuEFZ7R821XrS/FxDFxrQxCXwnz6eqLMqrZ9TzWsYus2
9Oyog9WezIl7vb1tidQXmNGxnAcUJyFnVUwi4DmqcNmJhgNEJFuiHZlCyMrtsPHX
Nq2RNd9uDo+Pr9Jr5Naa+dZMcFnV6IaM/dqDWfSNktLekTUQ+ahzzqce1eiz6vk=
=XqjC
-----END PGP SIGNATURE-----
_______________________________________________
Rancid-discuss mailing list
Rancid-***@shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Daniel Chen
2011-03-16 20:06:38 UTC
Permalink
My bad. I had added code to the rancid-fe to use wrappers so that it didn't call nxrancid but some other cisco related module probably plain rancid.


----- Original Message -----
From: "Daniel Chen" <***@mozy.com>
To: "Corey Quinn" <***@sequestered.net>
Cc: rancid-***@shrubbery.net
Sent: Wednesday, March 16, 2011 3:33:11 PM
Subject: Re: [rancid] Cisco MDS/NX-OS timestamp in show command


I removed the trailing space after the colon before the slash. I am still getting the Time line.

- !Time: Wed Mar 16 11:53:28 2011
+ !Time: Wed Mar 16 12:19:52 2011

/^.Time:/ && next; # kill this junk
/^!Time:/ && next;
/^#Time:/ && next;
/!Time:/ && next;

I don't know why this section of code doesn't seem to be hit in the WriteTerm routine within nxrancid.

Thanks,
Daniel

----- Original Message -----
From: "Corey Quinn" <***@sequestered.net>
To: "Daniel Chen" <***@mozy.com>
Cc: rancid-***@shrubbery.net, "big beer" <***@gmail.com>
Sent: Wednesday, March 16, 2011 3:19:45 PM
Subject: Re: [rancid] Cisco MDS/NX-OS timestamp in show command


Get the trailing space out of there and retest please...

On Mar 16, 2011, at 12:01 PM, Daniel Chen < ***@mozy.com > wrote:






I threw the following patterns and it doesn't appear to be able to catch it in the nxrancid 2.3.6 tar release
/^.Time: / && next; # kill this junk
/^!Time: / && next;
/^#Time: / && next;
/!Time: / && next;

So every run generates email and cvs check-in:
!Command: show running-config
- !Time: Wed Mar 16 11:37:57 2011
+ !Time: Wed Mar 16 11:53:28 2011




----- Original Message -----
From: "Corey Quinn" < ***@sequestered.net >
To: "big beer" < ***@gmail.com >
Cc: rancid-***@shrubbery.net
Sent: Tuesday, March 15, 2011 5:53:30 PM
Subject: Re: [rancid] Cisco MDS/NX-OS timestamp in show command

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Toss this into the appropriate place:

/!Time:/ && next;

- -- Corey / KB1JWQ
Post by big beer
Hi List,
I'm running rancid 2.3.6 against a pair of cisco mds fiber switches.
everything works as expected except one little problem. My switches
are printing out a nice little banner with the timestamp whenever show
run is ran.
Obviously this is a problem, and my diffs end up looking like the following.
!
!DEBUG: % Permission denied
!Command: show running-config
- !Time: Tue Mar 15 18:01:13 2011
+ !Time: Tue Mar 15 19:01:13 2011
version 5.0(1a)
no feature http-server
I found the thread in the list archives about suppressing the time
stamp out by editing the DoNothing() command to run no exec prompt
timestamp, but I think that is for a different type of timestamp, as I
made the change but I still get the timestamp. I can't even run no
exec prompt timestamp on the switch either.
Anyone have any experience and/or idea on where I should be focusing
to remove these timestamps?
Thanks!
--
BigBeer
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)

iQEcBAEBAgAGBQJNf9/aAAoJEPmSS8816iBeG8AH/1COVliS6zr8yBDgMF+IowNG
/vDQonWt9tjnjDlCq1TBe13fSwGJISjbQkhPLiCBwAf/+b3xqLh9nykklMwVkuCC
zZYdBvGekcjQYI8vGDo9fAsMhqPD8n5lNrbTlJ42yCbvz6q5chu8XTMxFVLzoRtk
E+tI7ZjkyNOkU8VUMHLFeuEFZ7R821XrS/FxDFxrQxCXwnz6eqLMqrZ9TzWsYus2
9Oyog9WezIl7vb1tidQXmNGxnAcUJyFnVUwi4DmqcNmJhgNEJFuiHZlCyMrtsPHX
Nq2RNd9uDo+Pr9Jr5Naa+dZMcFnV6IaM/dqDWfSNktLekTUQ+ahzzqce1eiz6vk=
=XqjC
-----END PGP SIGNATURE-----
_______________________________________________
Rancid-discuss mailing list
Rancid-***@shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


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

Loading...