<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RX-DRP monitor in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/RX-DRP-monitor/m-p/99745#M19421</link>
    <description>&lt;P&gt;You can also use the expert mode command &lt;STRONG&gt;sar -n EDEV&lt;/STRONG&gt; to see when network error counters were incremented for the last 30 days per interface, averaged out per second over 10-minute sampling periods:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sarnedev.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/8530iD024C710FEBFEDCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="sarnedev.png" alt="sarnedev.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2020 02:37:42 GMT</pubDate>
    <dc:creator>Timothy_Hall</dc:creator>
    <dc:date>2020-10-22T02:37:42Z</dc:date>
    <item>
      <title>RX-DRP monitor</title>
      <link>https://community.checkpoint.com/t5/General-Topics/RX-DRP-monitor/m-p/99678#M19402</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whilst working on tuning our 23800 and 26000T performance issues I realised that couple of one-liners that are already available here in the community only provide cumulative statistics from time when counters were restarted and that might give inaccurate picture if some past event created RX drops that are not occurring anymore. So instead I wrote a script that evaluates "current" state by making two readings (set to 30mins apart but you can change it yourself) and then calculating drop rate based on diff&lt;/P&gt;
&lt;P&gt;It's ugly as i had only 3 mins&amp;nbsp; to write it but does the trick. Note it reads RX-DRP counter only!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;source /etc/profile.d/CP.sh
if [[ -e /etc/profile.d/vsenv.sh ]]; then
    source /etc/profile.d/vsenv.sh
    vsenv
fi

runme=true

if [ ! -f rxdrop.curr ]; then touch rxdrop.curr; fi

while $runme; do
  echo `date`
  mv rxdrop.curr rxdrop.prev
  netstat -ni | awk '{print $1" "$4" "$6}' | egrep "^bond|^eth" &amp;gt; rxdrop.curr
  while read line; do
    if_name=`echo "$line" | awk '{print $1}'`
    rx_tot_curr=`echo "$line" | awk '{print $2}'`
    rx_drp_curr=`echo "$line" | awk '{print $3}'`
    rx_tot_prev=`grep $if_name rxdrop.prev | awk '{print $2}'`
    rx_drp_prev=`grep $if_name rxdrop.prev | awk '{print $3}'`
    if [ ! $rx_tot_prev ]; then rx_tot_prev=0; fi
    if [ ! $rx_drp_prev ]; then rx_drp_prev=0; fi
    let diff_tot=rx_tot_curr-rx_tot_prev+1
    let diff_drp=rx_drp_curr-rx_drp_prev
    rate=`echo 100*$diff_drp/$diff_tot | bc -l`
    echo "$if_name ${rate:0:5}%" | sed 's/ \./ 0./'
  done &amp;lt; rxdrop.curr
  echo
  sleep 1800  # time in seconds
done
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="2020-10-21_10-04-01.jpg" style="width: 295px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/8525iB5D00BF74C2371C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-10-21_10-04-01.jpg" alt="2020-10-21_10-04-01.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 09:22:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/RX-DRP-monitor/m-p/99678#M19402</guid>
      <dc:creator>Kaspars_Zibarts</dc:creator>
      <dc:date>2021-02-19T09:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: RX-DRP monitor</title>
      <link>https://community.checkpoint.com/t5/General-Topics/RX-DRP-monitor/m-p/99745#M19421</link>
      <description>&lt;P&gt;You can also use the expert mode command &lt;STRONG&gt;sar -n EDEV&lt;/STRONG&gt; to see when network error counters were incremented for the last 30 days per interface, averaged out per second over 10-minute sampling periods:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sarnedev.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/8530iD024C710FEBFEDCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="sarnedev.png" alt="sarnedev.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 02:37:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/RX-DRP-monitor/m-p/99745#M19421</guid>
      <dc:creator>Timothy_Hall</dc:creator>
      <dc:date>2020-10-22T02:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: RX-DRP monitor</title>
      <link>https://community.checkpoint.com/t5/General-Topics/RX-DRP-monitor/m-p/99748#M19424</link>
      <description>&lt;P&gt;awesome! thanks heaps!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 20:03:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/RX-DRP-monitor/m-p/99748#M19424</guid>
      <dc:creator>Kaspars_Zibarts</dc:creator>
      <dc:date>2020-10-21T20:03:31Z</dc:date>
    </item>
  </channel>
</rss>

