Discussion:
[rancid] System Up Time & Dell
Gerhard Mourani
2014-05-01 17:23:52 UTC
Permalink
Hello,

I'm using Rancid 3.0 to backup Dell switches using the 'smc' type and it
work. But every time the script run, I receive the following diff.

- ! System Up Time (days,hour:min:sec): 02,11:30:13
+ ! System Up Time (days,hour:min:sec): 02,23:31:44

Thanks,
heasley
2014-05-01 20:14:33 UTC
Permalink
Post by Gerhard Mourani
I'm using Rancid 3.0 to backup Dell switches using the 'smc' type and it
work. But every time the script run, I receive the following diff.
- ! System Up Time (days,hour:min:sec): 02,11:30:13
+ ! System Up Time (days,hour:min:sec): 02,23:31:44
this should do it.

Index: bin/srancid.in
===================================================================
--- bin/srancid.in (revision 2828)
+++ bin/srancid.in (working copy)
@@ -215,7 +215,7 @@
s/[\b]+\s*[\b]*//g;

# Remove Uptime
- / Up time/ && next;
+ / up time/i && next;

# filter temperature sensor info for Dell 6428 stacks
/Temperature Sensors:/ && next;
@@ -251,7 +251,7 @@
s/[\b]+\s*[\b]*//g;

# Remove Uptime
- / Up time/ && next;
+ / up time/i && next;
ProcessHistory("COMMENTS","keysort","D1","! $_");
}
return(0);
Gerhard Mourani
2014-05-05 12:33:41 UTC
Permalink
Heasley,

Just to let you know that your patch fixed the problem, thanks.
Post by heasley
Post by Gerhard Mourani
I'm using Rancid 3.0 to backup Dell switches using the 'smc' type and it
work. But every time the script run, I receive the following diff.
- ! System Up Time (days,hour:min:sec): 02,11:30:13
+ ! System Up Time (days,hour:min:sec): 02,23:31:44
this should do it.
Index: bin/srancid.in
===================================================================
--- bin/srancid.in (revision 2828)
+++ bin/srancid.in (working copy)
@@ -215,7 +215,7 @@
s/[\b]+\s*[\b]*//g;
# Remove Uptime
- / Up time/ && next;
+ / up time/i && next;
# filter temperature sensor info for Dell 6428 stacks
/Temperature Sensors:/ && next;
@@ -251,7 +251,7 @@
s/[\b]+\s*[\b]*//g;
# Remove Uptime
- / Up time/ && next;
+ / up time/i && next;
ProcessHistory("COMMENTS","keysort","D1","! $_");
}
return(0);
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Alex DEKKER
2014-05-01 21:23:48 UTC
Permalink
Post by Gerhard Mourani
I'm using Rancid 3.0 to backup Dell switches using the 'smc' type and
it work. But every time the script run, I receive the following diff.
- ! System Up Time (days,hour:min:sec): 02,11:30:13
+ ! System Up Time (days,hour:min:sec): 02,23:31:44
That's very similar to the output you get from running against Cisco
Small Business 500-series switches [the switches certainly share some
ancestors, the firmwares may even share a codebase].

alexd
Alex DEKKER
2014-05-01 20:23:59 UTC
Permalink
Post by Gerhard Mourani
I'm using Rancid 3.0 to backup Dell switches using the 'smc' type and
it work. But every time the script run, I receive the following diff.
- ! System Up Time (days,hour:min:sec): 02,11:30:13
+ ! System Up Time (days,hour:min:sec): 02,23:31:44
That's very similar to the output you get from running against Cisco
Small Business 500-series switches [the switches certainly share some
ancestors, the firmwares may even share a codebase].

alexd
Loading...