I haven't heard back so I went ahead and comment out the line below:<br><br> {'show system' => 'ShowChassis'},<br><br>Unfortunately, it removed a lot of valuable information so I am going to attempt to 'intercept' the output files and remove the '!Chassis...' line there in the file:<br>
<br>- !Chassis: 0 up medium up up up up
up up<br>
+ !Chassis: 0 up low up up up up
up up<br><br>I think I narrow down it to the following in the bin/f10rancid:<br><br>...<br>...<br>...<br>open(OUTPUT,">$host.new") || die "Can't open $host.new for writing: $!\n";<br>select(OUTPUT);<br>
# make OUTPUT unbuffered if debugging<br>if ($debug) { $| = 1; }<br><br>if ($file) {<br> print STDERR "opening file $host\n" if ($debug);<br> print STDOUT "opening file $host\n" if ($log);<br> open(INPUT,"<$host") || die "open failed for $host: $!\n";<br>
} else {<br> print STDERR "executing clogin -t $timeo -c\"$cisco_cmds\" $host\n" if ($debug);<br> print STDOUT "executing clogin -t $timeo -c\"$cisco_cmds\" $host\n" if ($log);<br>
if (defined($ENV{NOPIPE})) {<br> system "clogin -t $timeo -c \"$cisco_cmds\" $host </dev/null > $host.raw 2>&1" || die "clogin failed for $host: $!\n";<br> open(INPUT, "< $host.raw") || die "clogin failed for $host: $!\n";<br>
} else {<br> open(INPUT,"clogin -t $timeo -c \"$cisco_cmds\" $host </dev/null |") || die "clogin failed for $host: $!\n";<br> }<br>}<br>...<br>...<br>...<br><br>Do let me know if I am completely off base here.<br>
<br clear="all">Brian Lam | IT/Operations | Rockyou, Inc. <br><br><br>
<br><br><div class="gmail_quote">On Mon, Jun 21, 2010 at 12:32 PM, Brian Lam <span dir="ltr"><<a href="mailto:blam@rockyou.com">blam@rockyou.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
All,<br><br>
I am using rancid 2.3.2. with force 10 switches (S50N - 48-port).<br><br>The following line keeps triggering an email notification, which is annoying because we get desensitized to the notification email when there is an actual change.<br>
<br>- !Chassis: 0 up medium up up up up up up<br>
+ !Chassis: 0 up low up up up up up up<br><br>The router command that spit out this status is (I believe) 'show system'. I searched for the command and believe it's in the following file:<br>
<br>bin/f10rancid: {'show system' => 'ShowChassis'},<br><br>I am going to hack the script to see if I can filter the annoying output. I will probably will remove the command 'show system' if I don't figure out how to filter out the annoying line. But this affect the output globally and I would like to get the rest of the output.<br>
<br>I was wondering if someone has experience changing the code base to deal w/ this case? Any pointer would be apreciated. Thanks!<br><br>Example of system command and system outputs:<br><br>r305-sw2-secondary#show system<br>
<br>Stack MAC : 00:01:e8:d6:86:6e<br><br>-- Unit 0 --<br>Unit Type : Management Unit<br>Status : online<br>Next Boot : online<br>Required Type : S50N - 48-port E/FE/GE (SB)<br>Current Type : S50N - 48-port E/FE/GE (SB)<br>
Master priority : 0<br>Hardware Rev : 2.0<br>Num Ports : 52<br>Up Time : 11 wk, 5 day, 11 hr, 47 min<br>FTOS Version : 7.8.1.3<br>Jumbo Capable : yes<br>POE Capable : no<br>Burned In MAC : 00:01:e8:d6:86:6e<br>
No Of MACs : 3<br><br>-- Module 0 --<br>Status : not present<br><br>-- Module 1 --<br>Status : not present<br><br>-- Power Supplies --<br>Unit Bay Status Type<br>---------------------------------------------------------------------------<br>
0 0 up AC<br> 0 1 absent<br><br>-- Fan Status --<br>Unit TrayStatus Speed Fan0 Fan1 Fan2 Fan3 Fan4 Fan5<br>--------------------------------------------------------------------------------<br>
0 up low up up up up up up<br><br>-- Unit 1 --<br>Unit Type : Member Unit<br>...<br>...<br><font color="#888888"><br><br clear="all">Brian Lam | IT/Operations | Rockyou, Inc.<br>
<br><br>
</font></blockquote></div><br>