<div dir="ltr"><div>Hi,</div><div><br></div><div>Need help in ignoring 'temperature and uptime' for this switch, but couldnt figure it out, found this page (<a href="https://www.bityard.org/blog/2015/10/01/dell_powerconnect_m-series_rancid">https://www.bityard.org/blog/2015/10/01/dell_powerconnect_m-series_rancid</a>) but it doesnt work. <br></div><div><br></div><div>Below is my srancid file (sh system portion), can anyone assist on how to ignore those 2 commands.</div><div><br></div><div><i><font size="1">sub ShowSys {<br>  print STDERR "   In ShowSys: $_" if ($debug);<br>  $_ =~ s/^[^#]*//;<br>  ProcessHistory("COMMENTS","keysort","C1","!\n! $_");<br><br>  while (<INPUT>) {<br>    s/^\s+\015//g;<br>    tr/\015//d;<br>    next if /^\s*$/;<br>    last if(/$prompt/);<br>    # pager remnants like: ^H^H^H   ^H^H^H content<br>    s/[\b]+\s*[\b]*//g;<br><br>    # Remove Uptime<br>    / up time/i && next;<br><br>    # filter temperature sensor info for Dell 6428 stacks, Powerconnect 7048<br>    # /Temperature Sensors:/<br>    if (/Temperature \(Celsius\)/) {<br>      ProcessHistory("COMMENTS","keysort","C1","! $_");<br>      ProcessHistory("COMMENTS","keysort","C1","! Unit\tStatus\n");<br>      ProcessHistory("COMMENTS","keysort","C1","! ----\t------\n");<br>      while (<INPUT>) {<br>        s/^\s+\015//g;<br>        tr/\015//d;<br>        goto ENDSHOWSYS if(/$prompt/);<br>        /(\d+)\s+\d+\s+(.*)$/ &&<br>        ProcessHistory("COMMENTS","keysort","C1","! $1\t$2\n");<br>        /^\s*$/ && last;<br>      }<br>    } elsif (/Temperature/) {<br>      # Filter temperature sensor info for Dell M6348 and M8024 blade<br>      # switches.<br>      #<br>      # M6348 and M8024 sample lines:<br>      #  Unit   Description    Temperature   Status<br>      #                (Celsius)<br>      #  ----   -----------    -----------   ------<br>      #  1     System       39       Good<br>      #  2     System       39       Good<br>      ProcessHistory("COMMENTS","keysort","C1",<br>              "! Unit\tDescription\tStatus\n");<br>      ProcessHistory("COMMENTS","keysort","C1",<br>              "! ----\t-----------\t------\n");<br>      while (<INPUT>) {<br>        /\(celsius\)/i && next;<br>        s/^\s+\015//g;<br>        tr/\015//d;<br>        goto ENDSHOWSYS if(/$prompt/);<br>        /(\d+)\s+(\w+)\s+\d+\s+(.*)$/ &&<br>        ProcessHistory("COMMENTS","keysort","C1","! $1\t$2\t\t$3\n");<br>        /^\s*$/ && last;<br>      }<br>    }<br><br>    # filter power rates and tmestamps from 7024 power supply info<br>    # Power Supplies:<br>    #  <br>    # Unit  Description   Status   Average   Current      Since<br>    #                  Power    Power     Date/Time<br>    #                 (Watts)   (Watts)<br>    # ----  -----------  -----------  ----------  --------  -------------------<br>    # 1   System    OK       1.4     65.2<br>    # 1   Internal   OK      N/A     N/A    10/05/2017 20:18:35<br>    if (/power supplies/i) {<br>      ProcessHistory("COMMENTS","keysort","C1", "!\n");<br>      ProcessHistory("COMMENTS","keysort","C1",<br>        "! Unit\tDescription\tStatus\n");<br>      ProcessHistory("COMMENTS","keysort","C1",<br>        "! ----\t-----------\t------\n");<br>      while (<INPUT>) {<br>        s/^\s+\015//g;<br>        tr/\015//d;<br>        goto ENDSHOWSYS if(/$prompt/);<br>        /^(unit\s|--+\s|\s)/i && next;<br>        if (/(\d+)\s+(\w+)\s+(\w+(\s\w+)?)\s/) {<br>          if (length($2) >= 8) {<br>            ProcessHistory("COMMENTS","keysort","C1","! $1\t$2\t$3\n");<br>          } else {<br>            ProcessHistory("COMMENTS","keysort","C1","! $1\t$2\t\t$3\n");<br>          }<br>        }<br>        /^\s*$/ && last;<br>      }<br>    }<br><br>    /system description: (.*)/i &&<br>      ProcessHistory("COMMENTS","keysort","A1", "!Chassis type: $1\n") &&<br>      next;<br><br>    ProcessHistory("COMMENTS","keysort","C1","! $_");<br>  }<br>ENDSHOWSYS:<br>  return(0);<br>}</font></i></div><div><br></div><div>Thanks<br></div></div>